
--
You received this message because you are subscribed to the Google Groups "Chrome Built-in AI Early Preview Program Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-ai-dev-previe...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chrome-ai-dev-preview-discuss/b46853d8-10ca-4678-bdac-0c3d320742b2n%40chromium.org.
Problem: On iframe-heavy sites (X.com has 10+), concurrent Translator.create() calls hit "The on-device translation is not available" or "service count exceeded" despite having coordination logic.
Root Cause: The background registry tracked translators after creation succeeded. By the time it detected the limit and evicted, Chrome had already rejected the new create() call.
Solution: Gate creation before calling Translator.create(), not after.
Protocol:
Key difference: Eviction is now synchronous. the content.js wait for the old translator to be destroyed (confirmed via ACK) before approving a new creation. This ensures Chrome's internal count decrements first.
Config: Max 3 concurrent translators, 5s ACK timeout, LRU eviction preferring idle instances.
Here are my questions: