Classify a silent translate-worker crash as out of memory

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Opus 5.5 committed 2026-10-29 22:51:47 +01:00
1 parent a569b4003c
commit 7dc77978a9
1 file changed
+7 -1
+7 -1
View File
@@ -158,7 +158,13 @@ export function TranslatePanel({
break;
}
};
worker.onerror = (event) => fail(event.message ?? "", "worker-crash");
// An empty crash message is the silent OOM tab-kill signature (D-027,
// D-030) — say so in words the "translate" stage classifies as OOM.
worker.onerror = (event) =>
fail(
event.message || "The translation stopped: the browser ran out of memory.",
"worker-crash",
);
const request: TranslateRequest = {
type: "translate",
requestId,