fix: enable Laya language detection and harden live analysis (#18 #19 #20)

Ensure Docker images keep their container-built native dependencies, wait for the Laya sidecar healthcheck, expose accurate Laya readiness, and treat empty AI language batches as fallback failures.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
blomios
2026-10-05 23:10:31 +02:00
parent 9cc86485cb
commit 1abc56c90e
7 changed files with 258 additions and 5 deletions

View File

@ -384,6 +384,9 @@ class ChannelList {
(response.results || []).forEach(result => results.set(String(result.id), result));
}
if (requestId !== this._languageDetectionRequest) return;
if (descriptors.length > 0 && results.size === 0) {
throw new Error('Local AI language detection returned no results');
}
this.layaLanguageResults = results;
this.languageDetectionNotice = '';
this.languageDetectionFallback = false;