Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
Merge branch 'main' into feat/falai-generative-media
azghrd4d32dc6c8ee
diff --cc docs/providers-and-models.mdindex 6a176830d,1775d768e..8d9859f1b--- a/docs/providers-and-models.md+++ b/docs/providers-and-models.md@@@ -137,15 -123,15 +137,15 @@@ WebBrain also ships 79 disabled-by-defafrom the OpenCode provider catalog snapshot at commit`62e4641235d7847dadc60da37cca8a023dd54fc1`; provider-specific additions usetheir official API documentation. Together with the original cards, Settings- contains **111 built-in providers on Chromium** and **110 on Firefox**; the+ contains **112 built-in providers on Chromium** and **111 on Firefox**; thedifference is the Chromium-only in-browser WebGPU runtime.-| IDs |-|---|+| IDs |+| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- || `302ai`, `abacus`, `aihubmix`, `alibaba-coding-plan`, `alibaba-coding-plan-cn`, `azure-cognitive-services`, `bailing`, `baseten`, `berget`, `cerebras`, `chutes`, `clarifai`, `cloudferro-sherlock`, `cohere`, `cortecs`, `deepinfra`, `digitalocean`, `dinference`, `drun`, `evroc`, `fastrouter`, `friendli` |-| `google-vertex`, `google-vertex-anthropic`, `helicone`, `iflowcn`, `inception`, `inference`, `io-net`, `jiekou`, `kilo`, `kimi-for-coding`, `kuae-cloud-coding-plan`, `llama`, `lucidquery`, `meganova`, `minimax-cn-coding-plan`, `minimax-coding-plan`, `moark`, `modelscope`, `morph` |-| `nano-gpt`, `nearai`, `nebius`, `nova`, `novita-ai`, `ollama-cloud`, `opencode`, `opencode-go`, `orcarouter`, `ovhcloud`, `perplexity`, `perplexity-agent`, `poe`, `pollinations`, `privatemode-ai`, `qihang-ai`, `qiniu-ai`, `requesty`, `scaleway`, `siliconflow`, `siliconflow-cn`, `stackit` |-| `stepfun`, `submodel`, `synthetic`, `tencent-coding-plan`, `upstage`, `v0`, `venice`, `vercel`, `vivgrid`, `vultr`, `wandb`, `xiaomi`, `zai-coding-plan`, `zenmux`, `zhipuai`, `zhipuai-coding-plan` |+| `google-vertex`, `google-vertex-anthropic`, `helicone`, `iflowcn`, `inception`, `inference`, `io-net`, `jiekou`, `kilo`, `kimi-for-coding`, `kuae-cloud-coding-plan`, `llama`, `lucidquery`, `meganova`, `minimax-cn-coding-plan`, `minimax-coding-plan`, `moark`, `modelscope`, `morph` |+| `nano-gpt`, `nearai`, `nebius`, `nova`, `novita-ai`, `ollama-cloud`, `opencode`, `opencode-go`, `orcarouter`, `ovhcloud`, `perplexity`, `perplexity-agent`, `poe`, `pollinations`, `privatemode-ai`, `qihang-ai`, `qiniu-ai`, `requesty`, `scaleway`, `siliconflow`, `siliconflow-cn`, `stackit` |+| `stepfun`, `submodel`, `synthetic`, `tencent-coding-plan`, `upstage`, `v0`, `venice`, `vercel`, `vivgrid`, `vultr`, `wandb`, `xiaomi`, `zai-coding-plan`, `zenmux`, `zhipuai`, `zhipuai-coding-plan` |Most use the OpenAI-compatible Chat Completions contract and bearer API keys.The exceptions are:diff --cc src/chrome/src/background.jsindex d8d129386,a46bffa1d..c8e11e76a--- a/src/chrome/src/background.js+++ b/src/chrome/src/background.js@@@ -40,8 -40,9 +40,11 @@@ importgetClaudeOAuthStatus,} from './providers/oauth-claude.js';import { getBalance as capsolverGetBalance } from './agent/captcha-solver.js';+import { isCapsolverEnabled } from './agent/capsolver-config.js';+import { testImageGenProvider } from './agent/fal-media.js';+ import { CAPTCHA_SETTINGS_KEYS, getCaptchaProviders } from './agent/captcha-provider-config.js';+ import { getAdditionalCaptchaBalance } from './agent/captcha-additional-providers.js';+ import { getTwoCaptchaBalance } from './agent/two-captcha.js';import { createSystemOneJudge } from './agent/systemone-judge.js';import { cloudSafeScheduledJob, createCloudRunController } from './cloud-runs.js';import { ensureOffscreen } from './offscreen/ensure.js';@@@ -142,7 -143,7 +145,7 @@@ const VISION_OFFSCREEN_URL = chrome.run// eviction registers its in-memory state first; the Traces page can also// request an immediate scan via WB_TRACE_REPAIR_STALE_RUNS.const TRACE_REPAIR_STARTUP_DELAY_MS = 15_000;--setTimeout(() => { void workflowTrace.repairStaleRuns().catch(() => {}); }, TRACE_REPAIR_STARTUP_DELAY_MS);++setTimeout(() => { void workflowTrace.repairStaleRuns().catch(() => { }); }, TRACE_REPAIR_STARTUP_DELAY_MS);function normalizeVisionDownloadState(state) {return {@@@ -574,7 -575,7 +577,7 @@@ async function loadScreenshotRedaction(const stored = await chrome.storage.local.get('screenshotRedaction');if (stored.screenshotRedaction != null) agent.screenshotRedaction = !!stored.screenshotRedaction;}--const screenshotRedactionReady = loadScreenshotRedaction().catch(() => {});++const screenshotRedactionReady = loadScreenshotRedaction().catch(() => { });// Image budget (issue #311): screenshot quality + how many screenshots the// agent may capture per turn, and the max image dimension. Defaults preserve@@@ -628,7 -629,7 +631,7 @@@ async function syncAgentUserMemoryFromS});return store;}--const userMemoryReady = syncAgentUserMemoryFromStorage().catch(() => {});++const userMemoryReady = syncAgentUserMemoryFromStorage().catch(() => { });const USER_MEMORY_EXTRACTION_MAX_QUEUE = 10;const USER_MEMORY_EXTRACTION_DELAY_MS = 1200;@@@ -1650,7 -1649,7 +1651,7 @@@ async function handleContextMenuAsk(inf}chrome.contextMenus?.onClicked?.addListener?.((info, tab) => {-- handleContextMenuAsk(info, tab).catch(() => {});++ handleContextMenuAsk(info, tab).catch(() => { });});// Only this instance knows which runs are live in memory, so it owns the@@@ -2128,7 -2127,7 +2129,7 @@@ async function stopActiveRunBeforeConve// first leaves the per-tab run guard active while the UI already looks like// a fresh chat, so the next send fails with "run already in progress".if (activeStart?.promise) {-- await activeStart.promise.catch(() => {});++ await activeStart.promise.catch(() => { });}// Direct chat/chat_stream callers do not have a detached-start promise.// Do not clear their conversation until processMessage's finally block has@@@ -3957,7 -3956,7 +3958,7 @@@ async function handleMessage(msg, sendeawait providerManager.load();} catch (error) {if (previousEnabled !== msg.enabled) {-- await chrome.storage.local.set({ helpImproveWebBrain: previousEnabled }).catch(() => {});++ await chrome.storage.local.set({ helpImproveWebBrain: previousEnabled }).catch(() => { });}throw error;}diff --cc src/chrome/src/ui/locales/ar.jsindex 23f38e78d,a0c47f9c0..6a7658bc7--- a/src/chrome/src/ui/locales/ar.js+++ b/src/chrome/src/ui/locales/ar.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "هل تريد تفعيل المزامنة المشفرة؟ سيرسل WebBrain نسخة مشفرة من طرف إلى طرف من ذكرياتك، والملء التلقائي لملفك الشخصي، وإعدادات موفر مفتاح واجهة برمجة التطبيقات (API) إلى WebBrain Compass. لا تتم مزامنة سجل الدردشة وتسجيلات الدخول عبر OAuth.","st.sync.consent.denied": "لم يتم منح إذن المزامنة المشفرة.",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/es.jsindex 5deebcac1,9ec02cc08..f980588c3--- a/src/chrome/src/ui/locales/es.js+++ b/src/chrome/src/ui/locales/es.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "¿Activar sincronización cifrada? WebBrain transmitirá una copia cifrada de extremo a extremo de sus recuerdos, el autocompletado de perfiles y la configuración del proveedor de claves API a WebBrain Compass. El historial de chat y los inicios de sesión de OAuth no están sincronizados.","st.sync.consent.denied": "No se concedió el permiso de sincronización cifrada.",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/fr.jsindex 3e711d49b,9e0f30a38..6814fdb8e--- a/src/chrome/src/ui/locales/fr.js+++ b/src/chrome/src/ui/locales/fr.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "Activer la synchronisation chiffrée ? WebBrain transmettra une copie cryptée de bout en bout de vos souvenirs, du remplissage automatique de votre profil et des paramètres du fournisseur de clé API à WebBrain Compass. L'historique des discussions et les connexions OAuth ne sont pas synchronisés.","st.sync.consent.denied": "L'autorisation de synchronisation chiffrée n'a pas été accordée.",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/id.jsindex 329bb8f7f,e18ed6f8a..8ae98e63c--- a/src/chrome/src/ui/locales/id.js+++ b/src/chrome/src/ui/locales/id.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "Aktifkan sinkronisasi terenkripsi? WebBrain akan mengirimkan salinan memori Anda yang terenkripsi ujung ke ujung, pengisian otomatis profil, dan pengaturan penyedia kunci API ke WebBrain Compass. Riwayat obrolan dan proses masuk OAuth tidak disinkronkan.","st.sync.consent.denied": "Izin sinkronisasi terenkripsi tidak diberikan.",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/ja.jsindex 1fe8db3a5,8c6431a0b..58f0e8997--- a/src/chrome/src/ui/locales/ja.js+++ b/src/chrome/src/ui/locales/ja.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "暗号化された同期をオンにしますか? WebBrain は、エンドツーエンドで暗号化された思い出、プロファイルの自動入力、API キー プロバイダー設定のコピーを WebBrain Compass に送信します。チャット履歴と OAuth サインインは同期されません。","st.sync.consent.denied": "暗号化された同期権限が付与されませんでした。",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/ko.jsindex 9af426bd9,19bd7bc4d..69bc68f5d--- a/src/chrome/src/ui/locales/ko.js+++ b/src/chrome/src/ui/locales/ko.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "암호화된 동기화를 사용하시겠습니까? WebBrain은 추억, 프로필 자동 완성 및 API 키 제공자 설정의 엔드 투 엔드 암호화 사본을 WebBrain Compass로 전송합니다. 채팅 기록과 OAuth 로그인은 동기화되지 않습니다.","st.sync.consent.denied": "암호화된 동기화 권한이 부여되지 않았습니다.",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/ms.jsindex fefaba6e3,e85355489..1e371c95a--- a/src/chrome/src/ui/locales/ms.js+++ b/src/chrome/src/ui/locales/ms.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "Hidupkan penyegerakan yang disulitkan? WebBrain akan menghantar salinan memori anda yang disulitkan hujung ke hujung, autolengkap profil dan tetapan pembekal kunci API ke WebBrain Compass. Sejarah sembang dan log masuk OAuth tidak disegerakkan.","st.sync.consent.denied": "Kebenaran penyegerakan yang disulitkan tidak diberikan.",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/ru.jsindex 4fe847f44,71ee708cf..b25bc0e0a--- a/src/chrome/src/ui/locales/ru.js+++ b/src/chrome/src/ui/locales/ru.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "Включить шифрованную синхронизацию? WebBrain передаст сквозную зашифрованную копию ваших воспоминаний, автозаполнение профиля и настройки поставщика ключей API в WebBrain Compass. История чата и входы по OAuth не синхронизируются.","st.sync.consent.denied": "Разрешение на зашифрованную синхронизацию не предоставлено.",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/th.jsindex 82dc98447,3d9a61e62..85e8932da--- a/src/chrome/src/ui/locales/th.js+++ b/src/chrome/src/ui/locales/th.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "เปิดการซิงค์ที่เข้ารหัสไหม WebBrain จะส่งสำเนาความทรงจำของคุณ การกรอกโปรไฟล์อัตโนมัติ และการตั้งค่าผู้ให้บริการคีย์ API ที่เข้ารหัสจากต้นทางถึงปลายทางไปยัง WebBrain Compass ประวัติการแชทและการลงชื่อเข้าใช้ OAuth จะไม่ซิงค์กัน","st.sync.consent.denied": "ไม่ได้รับสิทธิ์การซิงค์ที่เข้ารหัส",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/tl.jsindex c7f395025,47c6a1c32..11ad4c871--- a/src/chrome/src/ui/locales/tl.js+++ b/src/chrome/src/ui/locales/tl.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "I-on ang naka-encrypt na pag-sync? Magpapadala ang WebBrain ng end-to-end na naka-encrypt na kopya ng iyong mga alaala, profile autofill, at API-key na mga setting ng provider sa WebBrain Compass. Hindi naka-sync ang history ng chat at OAuth sign-in.","st.sync.consent.denied": "Hindi ibinigay ang naka-encrypt na pahintulot sa pag-sync.",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/tr.jsindex 3fa204062,526861eb9..5b1b14996--- a/src/chrome/src/ui/locales/tr.js+++ b/src/chrome/src/ui/locales/tr.js@@@ -1187,7 -1176,7 +1187,7 @@@ export default"st.sync.consent.legacy": "Şifreli senkronizasyon açılsın mı? WebBrain, anılarınızın, profil otomatik doldurmanızın ve API anahtarı sağlayıcı ayarlarınızın uçtan uca şifrelenmiş bir kopyasını WebBrain Compass'a iletecektir. Sohbet geçmişi ve OAuth oturum açma işlemleri senkronize edilmez.","st.sync.consent.denied": "Şifrelenmiş senkronizasyon izni verilmedi.",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/uk.jsindex 760a395c3,1766f264c..985f142a3--- a/src/chrome/src/ui/locales/uk.js+++ b/src/chrome/src/ui/locales/uk.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "Увімкнути зашифровану синхронізацію? WebBrain передасть наскрізну зашифровану копію ваших спогадів, автозаповнення профілю та налаштувань постачальника ключа API до WebBrain Compass. Історія чату та вхід OAuth не синхронізуються.","st.sync.consent.denied": "Дозвіл на зашифровану синхронізацію не надано.",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/chrome/src/ui/locales/zh.jsindex 533cfbc0f,0340b7684..9d943993a--- a/src/chrome/src/ui/locales/zh.js+++ b/src/chrome/src/ui/locales/zh.js@@@ -1188,7 -1177,7 +1188,7 @@@ export default"st.sync.consent.legacy": "开启加密同步? WebBrain 会将您的记忆、个人资料自动填充和 API 密钥提供商设置的端到端加密副本传输到 WebBrain Compass。聊天历史记录和 OAuth 登录不同步。","st.sync.consent.denied": "未授予加密同步权限。",'st.providers.webgpu_note.body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat.',--'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.',++ 'st.providers.webgpu_note.managed_body': '{modelLink} runs entirely in Chrome with no API endpoint. Download it in Settings > Providers > WebGPU or Apocalypse Mode, then use the nuclear control in standalone chat. It does not replace your selected provider.','st.providers.webgpu_download.title': 'WebGPU model files','st.providers.webgpu_download.progress_label': 'WebGPU model download progress','st.providers.webgpu_download.checking': 'Checking local model files…',diff --cc src/firefox/src/background.jsindex 54913a3d7,5cf6ecfa8..1a8a3c3e8--- a/src/firefox/src/background.js+++ b/src/firefox/src/background.js@@@ -39,8 -39,9 +39,11 @@@ importgetClaudeOAuthStatus,} from './providers/oauth-claude.js';import { getBalance as capsolverGetBalance } from './agent/captcha-solver.js';+import { isCapsolverEnabled } from './agent/capsolver-config.js';+import { testImageGenProvider } from './agent/fal-media.js';+ import { CAPTCHA_SETTINGS_KEYS, getCaptchaProviders } from './agent/captcha-provider-config.js';+ import { getAdditionalCaptchaBalance } from './agent/captcha-additional-providers.js';+ import { getTwoCaptchaBalance } from './agent/two-captcha.js';import { createSystemOneJudge } from './agent/systemone-judge.js';import {SELECTION_CONTEXT_SOURCE_GROUNDING,@@@ -121,7 -122,7 +124,7 @@@ let emergencyDownloads = null// eviction registers its in-memory state first; the Traces page can also// request an immediate scan via WB_TRACE_REPAIR_STALE_RUNS.const TRACE_REPAIR_STARTUP_DELAY_MS = 15_000;--setTimeout(() => { void workflowTrace.repairStaleRuns().catch(() => {}); }, TRACE_REPAIR_STARTUP_DELAY_MS);++setTimeout(() => { void workflowTrace.repairStaleRuns().catch(() => { }); }, TRACE_REPAIR_STARTUP_DELAY_MS);function emergencyDownloadController() {if (!emergencyDownloads) {@@@ -166,7 -167,7 +169,7 @@@ agent.setConversationScopeChangeListenetabId,type: 'conversation_scope',data: state,-- }).catch(() => {});++ }).catch(() => { });});const userMemoryStore = createUserMemoryStore(browser.storage.local);const savedWorkflowStore = createSavedWorkflowStore(browser.storage.local);@@@ -199,7 -200,7 +202,7 @@@ const scheduler = new ScheduledJobManagtabId,type,data,-- }).catch(() => {});++ }).catch(() => { });maybeFlashScheduledTerminalEvent(tabId, type, data);},showIndicator: (tabId) => sendIndicatorMessage(tabId, 'WB_SHOW_AGENT_INDICATORS'),@@@ -231,7 -232,7 +234,7 @@@ const selectionShortcutLocaleReady = br.then((stored) => {selectionShortcutLocale = resolveStoredSelectionShortcutLocale(stored?.wbLocale);})-- .catch(() => {});++ .catch(() => { });function getContextMenuApi() {return browser.contextMenus || browser.menus || null;@@@ -386,7 -387,7 +389,7 @@@ async function createContextMenus()};try {-- await Promise.resolve(api.removeAll()).catch(() => {});++ await Promise.resolve(api.removeAll()).catch(() => { });create();} catch {create();@@@ -431,7 -432,7 +434,7 @@@ async function loadClarifyTimeout()updates.clarifyTimeoutSec = CLARIFY_TIMEOUT_OFF_SLIDER;stored.clarifyTimeoutSec = CLARIFY_TIMEOUT_OFF_SLIDER;}-- await browser.storage.local.set(updates).catch(() => {});++ await browser.storage.local.set(updates).catch(() => { });}agent.clarifyTimeoutSec = normalizeClarifyTimeoutSec(stored.clarifyTimeoutSec != null ? stored.clarifyTimeoutSec : 60,@@@ -456,13 -457,13 +459,13 @@@ async function loadResearchEscalation(agent.researchEscalationEnabled = stored.researchEscalationEnabled === true;agent.researchEscalationEngine = String(stored.researchEscalationEngine || 'chatgpt');}--const researchEscalationReady = loadResearchEscalation().catch(() => {});++const researchEscalationReady = loadResearchEscalation().catch(() => { });async function loadStrictSecretMode() {const stored = await browser.storage.local.get('strictSecretMode').catch(() => ({}));agent.strictSecretMode = stored?.strictSecretMode === true;}--const strictSecretModeReady = loadStrictSecretMode().catch(() => {});++const strictSecretModeReady = loadStrictSecretMode().catch(() => { });async function loadProfile() {const stored = await browser.storage.local.get(['profileEnabled', 'profileText']);@@@ -478,7 -479,7 +481,7 @@@ async function loadScreenshotRedaction(const stored = await browser.storage.local.get('screenshotRedaction');if (stored.screenshotRedaction != null) agent.screenshotRedaction = !!stored.screenshotRedaction;}--const screenshotRedactionReady = loadScreenshotRedaction().catch(() => {});++const screenshotRedactionReady = loadScreenshotRedaction().catch(() => { });// Image budget (issue #311): screenshot quality + how many screenshots the// agent may capture per turn, and the max image dimension. Defaults preserve@@@ -487,7 -488,7 +490,7 @@@ async function loadImageBudget()const stored = await browser.storage.local.get(['imageDetail', 'maxScreenshotsPerTurn', 'maxImageDimension']);agent.applyImageBudgetFromStorage(stored);}--const imageBudgetReady = loadImageBudget().catch(() => {});++const imageBudgetReady = loadImageBudget().catch(() => { });async function syncAgentUserMemoryFromStorage() {const [store, settings] = await Promise.all([@@@ -504,7 -505,7 +507,7 @@@});return store;}--const userMemoryReady = syncAgentUserMemoryFromStorage().catch(() => {});++const userMemoryReady = syncAgentUserMemoryFromStorage().catch(() => { });const USER_MEMORY_EXTRACTION_MAX_QUEUE = 10;const USER_MEMORY_EXTRACTION_DELAY_MS = 1200;@@@ -538,7 -539,7 +541,7 @@@ function recordClarificationMemoryCandiif (!normalizedAnswer) return;const normalizedQuestion = normalizeUserMemoryText(question, 500);if (looksLikeSensitiveMemoryText(normalizedAnswer)-- || (normalizedQuestion && looksLikeSensitiveMemoryText(normalizedQuestion))) {++ || (normalizedQuestion && looksLikeSensitiveMemoryText(normalizedQuestion))) {return;}const context = getUserMemoryTurnContext(tabId);@@@ -625,7 -626,7 +628,7 @@@ async function isUserMemoryFormCaptureEasync function withUserMemoryExtractionQueueLock(task) {const run = userMemoryExtractionQueueLock.then(task, task);-- userMemoryExtractionQueueLock = run.catch(() => {});++ userMemoryExtractionQueueLock = run.catch(() => { });return run;}@@@ -691,13 -692,13 +694,13 @@@ async function markUserMemoryExtractionasync function withUserMemoryStoreLock(task) {const run = userMemoryStoreLock.then(task, task);-- userMemoryStoreLock = run.catch(() => {});++ userMemoryStoreLock = run.catch(() => { });return run;}async function withSavedWorkflowStoreLock(task) {const run = savedWorkflowStoreLock.then(task, task);-- savedWorkflowStoreLock = run.catch(() => {});++ savedWorkflowStoreLock = run.catch(() => { });return run;}@@@ -746,7 -747,7 +749,7 @@@ function notifyUserMemoryCreated()browser.runtime.sendMessage({target: 'sidepanel',action: 'user_memory_created',-- }).catch(() => {});++ }).catch(() => { });}function scheduleUserMemoryExtractionDrain(delayMs = USER_MEMORY_EXTRACTION_DELAY_MS) {@@@ -1048,14 -1047,14 +1049,14 @@@ browser.runtime.onInstalled.addListenerawait loadMaxSteps();await loadClarifyTimeout();await loadAutoScreenshot();-- await syncAgentUserMemoryFromStorage().catch(() => {});++ await syncAgentUserMemoryFromStorage().catch(() => { });scheduleUserMemoryExtractionDrain(5000);console.log('[WebBrain] Extension installed, providers loaded.');});browser.runtime.onStartup?.addListener?.(async () => {await createContextMenus();-- syncAgentUserMemoryFromStorage().catch(() => {});++ syncAgentUserMemoryFromStorage().catch(() => { });scheduleUserMemoryExtractionDrain(5000);});@@@ -1063,10 -1062,10 +1064,10 @@@browser.storage.onChanged.addListener((changes) => {if (changes.wbLocale) {selectionShortcutLocale = normalizeSelectionShortcutLocale(changes.wbLocale.newValue);-- createContextMenus().catch(() => {});++ createContextMenus().catch(() => { });}-- if (PROFILE_SYNC_DATA_KEYS.some((key) => changes[key])) profileSync.noteChanges(changes).catch(() => {});-- if (changes.providers || changes.activeProvider || changes.helpImproveWebBrain) providerManager.load().catch(() => {});++ if (PROFILE_SYNC_DATA_KEYS.some((key) => changes[key])) profileSync.noteChanges(changes).catch(() => { });++ if (changes.providers || changes.activeProvider || changes.helpImproveWebBrain) providerManager.load().catch(() => { });if (changes.maxAgentSteps) {agent.maxSteps = normalizeMaxAgentSteps(changes.maxAgentSteps.newValue);}@@@ -1225,7 -1224,7 +1226,7 @@@ async function loadWebBrainGroups()function saveWebBrainGroups() {browser.storage.session?.set({[WB_GROUPS_KEY]: Array.from(webBrainGroupByWindow.entries()),-- }).catch(() => {});++ }).catch(() => { });}loadWebBrainGroups();@@@ -1296,8 -1295,8 +1297,8 @@@ browser.runtime.onMessage.addListener((browser.tabs.get(tabId).then((tab) => {if (tab?.url !== installGuideUrl) return;-- ensureWebBrainGroup(tab).catch(() => {});-- }).catch(() => {});++ ensureWebBrainGroup(tab).catch(() => { });++ }).catch(() => { });});// Tracks the pending 250 ms retry timer per tab so it can be cancelled if the@@@ -1313,21 -1312,21 +1314,21 @@@ function notifySidePanelOfContextMenuPrprompt: payload,};clearTimeout(pendingContextMenuNotifications.get(tabId));-- browser.runtime.sendMessage(msg).catch(() => {});++ browser.runtime.sendMessage(msg).catch(() => { });const timerId = setTimeout(() => {pendingContextMenuNotifications.delete(tabId);-- browser.runtime.sendMessage(msg).catch(() => {});++ browser.runtime.sendMessage(msg).catch(() => { });}, 250);pendingContextMenuNotifications.set(tabId, timerId);}function openSidebarForContextMenu(tab) {if (browser.sidebarAction?.open) {-- browser.sidebarAction.open().catch(() => {});++ browser.sidebarAction.open().catch(() => { });} else {-- browser.sidebarAction?.toggle?.().catch(() => {});++ browser.sidebarAction?.toggle?.().catch(() => { });}-- if (tab?.id) ensureWebBrainGroup(tab).catch(() => {});++ if (tab?.id) ensureWebBrainGroup(tab).catch(() => { });}async function handleContextMenuAsk(info, tab) {@@@ -1374,12 -1373,12 +1375,12 @@@openSidebarForContextMenu(tab);try {await contextMenuStorage.save(tab.id, payload);-- } catch {}++ } catch { }notifySidePanelOfContextMenuPrompt(payload);}getContextMenuApi()?.onClicked?.addListener?.((info, tab) => {-- handleContextMenuAsk(info, tab).catch(() => {});++ handleContextMenuAsk(info, tab).catch(() => { });});getContextMenuApi()?.onShown?.addListener?.((info, tab) => {const menuApi = getContextMenuApi();@@@ -1390,7 -1389,7 +1391,7 @@@try {await menuApi?.update?.(CONTEXT_MENU_OPEN_PDF_VIEWER_ID, { visible });await menuApi?.refresh?.();-- } catch {}++ } catch { }})();});browser.tabs.onRemoved?.addListener?.((tabId) => pdfResponseTabs.delete(tabId));@@@ -1450,7 -1449,7 +1451,7 @@@ function queueFirefoxSelectionShortcutP(async () => {try {await contextMenuStorage.save(tab.id, payload);-- } catch {}++ } catch { }notifySidePanelOfContextMenuPrompt(payload);return { ok: true, queued: true, requiresManualOpen: true };})().then(sendResponse).catch((error) => {@@@ -1514,10 -1513,10 +1515,10 @@@ browser.tabs.onRemoved.addListener((tabclearTimeout(pendingContextMenuNotifications.get(tabId));pendingContextMenuNotifications.delete(tabId);contextMenuStorage.cleanup(tabId);-- tabChatHandoff.clear(tabId).catch(() => {});-- clearStagedScreenshots(browser.storage.local, tabId).catch(() => {});-- scheduler.cancelForTab(tabId).catch(() => {});-- withTeacherSessionStoreLock(() => teacherSessionStore.clear(tabId)).catch(() => {});++ tabChatHandoff.clear(tabId).catch(() => { });++ clearStagedScreenshots(browser.storage.local, tabId).catch(() => { });++ scheduler.cancelForTab(tabId).catch(() => { });++ withTeacherSessionStoreLock(() => teacherSessionStore.clear(tabId)).catch(() => { });try { agent._cleanupTab(tabId); } catch { /* ignore */ }});@@@ -1532,11 -1531,11 +1533,11 @@@ function invalidateContextMenuForTab(tatarget: 'sidepanel',action: 'context_menu_tab_navigated',tabId,-- }).catch(() => {});++ }).catch(() => { });}function recordTeacherNavigation(tabId, url, options) {-- teacherRunInterlock.navigation(tabId, url, options).catch(() => {});++ teacherRunInterlock.navigation(tabId, url, options).catch(() => { });}const TEACHER_EXPLICIT_NAVIGATION_TYPES = new Set([@@@ -1546,7 -1545,7 +1547,7 @@@browser.webNavigation?.onCommitted?.addListener?.((details) => {if (details.frameId !== 0) return;agent.clearLastTypeFieldIdent(details.tabId);-- agent.observeCloudflareManagedChallengeNavigation(details).catch(() => {});++ agent.observeCloudflareManagedChallengeNavigation(details).catch(() => { });recordTeacherNavigation(details.tabId, details.url, {force: TEACHER_EXPLICIT_NAVIGATION_TYPES.has(details.transitionType),});@@@ -1555,14 -1554,14 +1556,14 @@@browser.webNavigation?.onHistoryStateUpdated?.addListener?.((details) => {if (details.frameId !== 0) return;agent.clearLastTypeFieldIdent(details.tabId);-- agent.observeCloudflareManagedChallengeNavigation(details).catch(() => {});++ agent.observeCloudflareManagedChallengeNavigation(details).catch(() => { });recordTeacherNavigation(details.tabId, details.url);invalidateContextMenuForTab(details.tabId);});browser.webNavigation?.onReferenceFragmentUpdated?.addListener?.((details) => {if (details.frameId !== 0) return;agent.clearLastTypeFieldIdent(details.tabId);-- agent.observeCloudflareManagedChallengeNavigation(details).catch(() => {});++ agent.observeCloudflareManagedChallengeNavigation(details).catch(() => { });invalidateContextMenuForTab(details.tabId);});@@@ -1572,10 -1571,10 +1573,10 @@@// detection and embedded widgets may use the same managed endpoint.const observeCloudflareManagedChallengeResponse = details => {trackPdfResponse(details);-- agent.observeCloudflareManagedChallengeResponse(details).catch(() => {});++ agent.observeCloudflareManagedChallengeResponse(details).catch(() => { });};const observeCloudflareChallengePlatformRequest = details => {-- agent.observeCloudflareChallengePlatformRequest(details).catch(() => {});++ agent.observeCloudflareChallengePlatformRequest(details).catch(() => { });};browser.webRequest?.onHeadersReceived?.addListener?.(observeCloudflareManagedChallengeResponse,@@@ -1634,7 -1633,7 +1635,7 @@@ function extractApiReplayBody(requestBoconst text = params.toString();return text.length <= API_REPLAY_BODY_LIMIT ? text : null;}-- } catch (_) {}++ } catch (_) { }return null;}@@@ -1760,7 -1759,7 +1761,7 @@@ browser.tabs.onRemoved.addListener((tabbrowser.browserAction.onClicked.addListener((tab) => {browser.sidebarAction.toggle();// Async — sidebar toggle doesn't need to wait on grouping.-- if (tab?.id) ensureWebBrainGroup(tab).catch(() => {});++ if (tab?.id) ensureWebBrainGroup(tab).catch(() => { });});// ────────────────────────────────────────────────────────────────────────@@@ -1807,8 -1806,8 +1808,8 @@@ function startIndicatorHeartbeat(tabIdsendIndicatorMessage(tabId, 'WB_SHOW_AGENT_INDICATORS');}})-- .catch(() => {});-- } catch {}++ .catch(() => { });++ } catch { }}, INDICATOR_HEARTBEAT_INTERVAL_MS);indicatorHeartbeatTimers.set(tabId, timer);}@@@ -1896,7 -1895,7 +1897,7 @@@ async function showCompletionNotificatiif (!notificationId) return;setTimeout(() => {completionNotificationFocusHandlers.delete(notificationId);-- browser.notifications.clear(notificationId).catch(() => {});++ browser.notifications.clear(notificationId).catch(() => { });}, COMPLETION_NOTIFICATION_VISIBLE_MS);if (Number.isInteger(tabId)) {completionNotificationFocusHandlers.set(notificationId, async () => {@@@ -1913,7 -1912,7 +1914,7 @@@ browser.tabs.onActivated.addListener((flashedBadgeTabs.delete(tabId);// Clear unconditionally so badge cleanup never depends on volatile state.// Resetting the per-tab override is idempotent and restores any global badge.-- browser.browserAction.setBadgeText({ tabId, text: '' }).catch(() => {});++ browser.browserAction.setBadgeText({ tabId, text: '' }).catch(() => { });});// Focusing a window does not fire tabs.onActivated for its already-active@@@ -2059,7 -2058,7 +2060,7 @@@ function persistRunUiSnapshot(tabId, snrunUiPersistenceQueues.set(tabId, write);write.finally(() => {if (runUiPersistenceQueues.get(tabId) === write) runUiPersistenceQueues.delete(tabId);-- }).catch(() => {});++ }).catch(() => { });return write;}@@@ -2178,7 -2177,7 +2179,7 @@@ async function getRunUiSnapshot(tabId)if (snapshot && typeof snapshot === 'object') {return runUiJournal.restore(tabId, snapshot);}-- } catch {}++ } catch { }return null;}@@@ -2187,11 -2186,11 +2188,11 @@@ function clearRunUiSnapshot(tabId)runUiJournal.clear(tabId);runUiPersistenceFailures.delete(tabId);const previous = runUiPersistenceQueues.get(tabId) || Promise.resolve();-- const removal = previous.catch(() => {}).then(() => browser.storage.session?.remove(RUN_UI_PREFIX + tabId));++ const removal = previous.catch(() => { }).then(() => browser.storage.session?.remove(RUN_UI_PREFIX + tabId));runUiPersistenceQueues.set(tabId, removal);removal.finally(() => {if (runUiPersistenceQueues.get(tabId) === removal) runUiPersistenceQueues.delete(tabId);-- }).catch(() => {});++ }).catch(() => { });}function sendAgentUpdate(tabId, requestId, type, data) {@@@ -2201,7 -2200,7 +2202,7 @@@target: 'sidepanel', action: 'agent_update', tabId, requestId,runId: event?.runId || agent.currentRunId.get(tabId) || null,seq: event?.seq || null, type, data: event?.data ?? data,-- }).catch(() => {});++ }).catch(() => { });}function assertNoActiveTabRun(tabId) {@@@ -2293,7 -2292,7 +2294,7 @@@ async function stopActiveRunBeforeConve// first leaves the per-tab run guard active while the UI already looks like// a fresh chat, so the next send fails with "run already in progress".if (activeStart?.promise) {-- await activeStart.promise.catch(() => {});++ await activeStart.promise.catch(() => { });}// Direct chat/chat_stream callers do not have a detached-start promise.// Do not clear their conversation until processMessage's finally block has@@@ -2320,8 -2319,8 +2321,8 @@@ function acquireRunKeepalive()let released = false;const touch = () => {try {-- browser.runtime.getPlatformInfo().catch(() => {});-- } catch {}++ browser.runtime.getPlatformInfo().catch(() => { });++ } catch { }};touch();const timer = setInterval(touch, RUN_KEEPALIVE_INTERVAL_MS);@@@ -2375,7 -2374,7 +2376,7 @@@ async function sendAgentRunComplete(tabflashTabAttention({tabId,success: liveStatus === 'completed' && snapshot.runSucceeded === true,-- }).catch(() => {});++ }).catch(() => { });}const submittedTurnDurable = snapshot.kind === 'continue'|| await agent.hasDurableSubmittedTurn(@@@ -2411,7 -2410,7 +2412,7 @@@submittedTurnDurable,attachmentDeliveryState,},-- }).catch(() => {});++ }).catch(() => { });}// Stop button on the page → abort the agent run for that tab. Mirrors@@@ -2670,9 -2669,9 +2671,9 @@@ async function handleMessage(msg, sendeconst compiled = draft?.conversationId === conversationId? finalizeSavedWorkflowDraft(draft, { name: msg.name }): await compileLatestSuccessfulWorkflow(workflowTrace, {-- conversationId,-- name: msg.name,-- });++ conversationId,++ name: msg.name,++ });if (!compiled.workflow) return { ok: false, ...compiled };const saved = await withSavedWorkflowStoreLock(() => savedWorkflowStore.put(compiled.workflow));return { ok: saved.changed, workflow: saved.workflow, warnings: compiled.warnings, reason: saved.reason || '' };@@@ -3058,7 -3057,7 +3059,7 @@@handoffOwnerId: tabChatClearResult.handoffOwnerId,handoffGeneration: tabChatClearResult.handoffGeneration,clearedContextMenuPromptId,-- }).catch(() => {});++ }).catch(() => { });}return { ok: true, clearedContextMenuPromptId };}@@@ -3277,7 -3276,7 +3278,7 @@@tabId,handoffOwnerId: result.handoffOwnerId,handoffGeneration: result.handoffGeneration,-- }).catch(() => {});++ }).catch(() => { });}return result;}@@@ -3291,7 -3290,7 +3292,7 @@@const tabId = msg.tabId || sender.tab?.id || null;let tab = null;if (tabId != null) {-- try { tab = await browser.tabs.get(tabId); } catch {}++ try { tab = await browser.tabs.get(tabId); } catch { }}return await scheduler.createTaskJob({tabId,@@@ -3307,7 -3306,7 +3308,7 @@@const tabId = msg.tabId || sender.tab?.id || null;let tab = null;if (tabId != null) {-- try { tab = await browser.tabs.get(tabId); } catch {}++ try { tab = await browser.tabs.get(tabId); } catch { }}return await scheduler.createWatchJob({args: msg.watch || msg.args || {},@@@ -3407,7 -3406,7 +3408,7 @@@await providerManager.load();} catch (error) {if (previousEnabled !== msg.enabled) {-- await browser.storage.local.set({ helpImproveWebBrain: previousEnabled }).catch(() => {});++ await browser.storage.local.set({ helpImproveWebBrain: previousEnabled }).catch(() => { });}throw error;}