Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

Show an engine icon instead of the model name in the composer's model picker

Claudec79e251dbcec
diff --git a/package.json b/package.json
index c2913a0c1..b86f58798 100644
--- a/package.json
+++ b/package.json
@@ -98,7 +98,7 @@
"test:chat-draft-recovery": "node --test test/native-chat-pre-enter-draft.mjs test/chat-draft-dispatch-ownership.mjs && node test/quality/native-chat-presubmit-mv3.mjs",
"test:upload-owner": "node --test test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs",
"test:shard:quick": "npm run test:cms && npm run test:markdown && npm run test:generative-media && npm run test:systemone && npm run test:systemone:fast && node --test test/guard-policy.mjs test/browser-dialogs.mjs test/capsolver-cloud-broker.mjs test/captcha-providers.mjs test/captcha-weighted-fallback.mjs test/captcha-hcaptcha-providers.mjs test/captcha-native-providers.mjs test/captcha-runtime-policy.mjs test/captcha-callback-bridge.mjs test/captcha-bridge-registration.mjs test/captcha-aws-recovery.mjs test/captcha-documented-contracts.mjs test/huggingface-signup-recovery.mjs test/trace-full-export.mjs test/feedback-traces.mjs && npm run test:firefox-bidi && npm run test:billing-notice && npm run test:compass-quota && npm run test:provider-limits && npm run test:provider-catalog && npm run test:provider-instances:ui && npm run test:openrouter-capabilities && npm run test:anthropic && npm run test:browser-batch && npm run test:accessibility-tree-benchmark && npm run test:toolbar-guard && npm run test:cloud-bridge-approval && npm run test:discord && npm run test:pdf-read && npm run test:pdf-selection && npm run test:social-contract && npm run test:safesocial && npm run test:build-unpacked && npm run test:attachment-drop && npm run test:workflow-editor && node --test test/profile-sync-stats.mjs && node --test test/memcode-recall.mjs",
- "test:shard:runtime-unit": "node --test test/skill-download-wait.mjs && node --test test/agent-lifecycle.mjs test/runtime-startup.mjs test/run-ui-scheduled-lifecycle.mjs test/transport-deadlines.mjs test/cdp-worker-restart.mjs test/bot-memory.mjs test/bot-memory-click-guard.mjs test/bot-memory-registries.mjs test/bot-memory-cloud-controller.mjs test/cdp-clear-receipt.mjs test/cdp-field-submit-recovery.mjs test/conversation-persistence.mjs test/context-live-tool-group.mjs test/integration-races.mjs test/watch-completion-checkpoint.mjs test/runtime-model-identity.mjs test/provider-message-privacy.mjs test/runtime-task-authority.mjs test/planner-repair-authority.mjs test/runtime-progress-continuation.mjs test/chat-resume-chain.mjs test/chat-resume-completion.mjs test/native-chat-execution-ledger.mjs test/chat-send-dispatch-result.mjs test/chat-reply-dedup-race.mjs test/memcode-lifecycle.mjs test/runtime-peer-review.mjs test/read-continuation-schema.mjs test/completion-submit-acknowledgement.mjs test/completion-live-status.mjs test/completion-iframe-submit.mjs test/form-validation-alert-readings.mjs test/control-effect-readings.mjs test/trusted-retry-readings.mjs test/completion-semantic-commit.mjs test/completion-diagnostics.mjs test/mastodon-publication.mjs test/calculator.mjs test/chat-recovery-protocol.mjs test/chat-pending-reconciliation.mjs test/semantic-page-retry.mjs test/pdf-detection.mjs test/runtime-lifecycle.mjs test/collection-read-progress.mjs test/network-lifecycle.mjs test/text-write-cancellation.mjs test/guard-advisory-writes.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/codemirror-text.mjs test/rich-text-frameworks.mjs test/cdp-managed-text-selection.mjs test/firefox-rich-text-readback.mjs test/contenteditable-beforeinput.mjs test/trusted-field-preparation-ownership.mjs test/typing-preparation-geometry.mjs test/chat-steering.mjs test/resource-mutation-guards.mjs test/completion-steering-receipt-authority.mjs test/steering-revision-recovery.mjs test/pending-clarification-hydration.mjs test/clarify-timeout-policy.mjs test/guard-ask-cards.mjs test/permission-steering-wakeup.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/page-feedback-unbindable-target.mjs test/guard-advisory-actions.mjs test/rich-text-preflight-page-change.mjs test/keyboard-receiver-frame.mjs test/ask-response-scope.mjs test/auto-mode.mjs test/ask-completion-churn.mjs test/page-feedback-policy.mjs test/research-escalation-page-feedback.mjs test/page-feedback-transport-races.mjs test/page-feedback-recovery.mjs test/telegram-read-preparation-agent.mjs test/media-download-agent-handler.mjs test/code-scanning-url-recipient.mjs test/apocalypse-comm-parsing.mjs test/apocalypse-scalar-decoding.mjs test/bitgpu-chat-security.mjs test/social-media-url-upgrades.mjs test/downloaded-file-saved-bytes.mjs test/downloaded-file-local-probe.mjs test/formless-verification-recovery.mjs test/file-upload-accept.mjs test/file-upload-accept-agent.mjs test/workflow-route-generic-completion.mjs test/release-publication-completion.mjs test/workflow-implicit-metadata.mjs test/workflow-field-readings.mjs test/workflow-field-anchors.mjs test/user-turn-kind.mjs test/follow-up-task-context.mjs test/completion-current-execution-evidence.mjs test/video-upload-attachment.mjs test/feedback-automatic-churn.mjs test/feedback-navigation-idle.mjs test/feedback-run-boundaries.mjs test/feedback-ask-viewing.mjs test/lifecycle-terminal-done.mjs test/incomplete-completion-recovery.mjs test/guard-advisory-completion.mjs test/lean-mode.mjs test/lifecycle-planner-digest.mjs test/lifecycle-steering-latency.mjs test/lifecycle-steering-restart.mjs test/lifecycle-vision-fallback.mjs test/delivery-click-locks.mjs test/guards-steering-receipts.mjs test/terminal-user-messages.mjs test/improver-providers.mjs test/improver-providers-agent.mjs test/improver-guards-ledger.mjs test/improver-guards-tools.mjs test/improver-clarify.mjs test/improver-clarify-scheduler.mjs test/improver-misc.mjs test/improver-forms.mjs test/improver-forms-strict-secrets.mjs test/improver-content-press-keys-hint.mjs && npm run test:plan-notifications",
+ "test:shard:runtime-unit": "node --test test/skill-download-wait.mjs && node --test test/agent-lifecycle.mjs test/runtime-startup.mjs test/run-ui-scheduled-lifecycle.mjs test/transport-deadlines.mjs test/cdp-worker-restart.mjs test/bot-memory.mjs test/bot-memory-click-guard.mjs test/bot-memory-registries.mjs test/bot-memory-cloud-controller.mjs test/cdp-clear-receipt.mjs test/cdp-field-submit-recovery.mjs test/conversation-persistence.mjs test/context-live-tool-group.mjs test/integration-races.mjs test/watch-completion-checkpoint.mjs test/runtime-model-identity.mjs test/provider-message-privacy.mjs test/runtime-task-authority.mjs test/planner-repair-authority.mjs test/runtime-progress-continuation.mjs test/chat-resume-chain.mjs test/chat-resume-completion.mjs test/native-chat-execution-ledger.mjs test/chat-send-dispatch-result.mjs test/chat-reply-dedup-race.mjs test/memcode-lifecycle.mjs test/runtime-peer-review.mjs test/read-continuation-schema.mjs test/completion-submit-acknowledgement.mjs test/completion-live-status.mjs test/completion-iframe-submit.mjs test/form-validation-alert-readings.mjs test/control-effect-readings.mjs test/trusted-retry-readings.mjs test/completion-semantic-commit.mjs test/completion-diagnostics.mjs test/mastodon-publication.mjs test/calculator.mjs test/chat-recovery-protocol.mjs test/chat-pending-reconciliation.mjs test/semantic-page-retry.mjs test/pdf-detection.mjs test/runtime-lifecycle.mjs test/collection-read-progress.mjs test/network-lifecycle.mjs test/text-write-cancellation.mjs test/guard-advisory-writes.mjs test/trusted-field-preparation.mjs test/draftjs-text.mjs test/codemirror-text.mjs test/rich-text-frameworks.mjs test/cdp-managed-text-selection.mjs test/firefox-rich-text-readback.mjs test/contenteditable-beforeinput.mjs test/trusted-field-preparation-ownership.mjs test/typing-preparation-geometry.mjs test/chat-steering.mjs test/resource-mutation-guards.mjs test/completion-steering-receipt-authority.mjs test/steering-revision-recovery.mjs test/pending-clarification-hydration.mjs test/clarify-timeout-policy.mjs test/guard-ask-cards.mjs test/permission-steering-wakeup.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/page-feedback-unbindable-target.mjs test/guard-advisory-actions.mjs test/rich-text-preflight-page-change.mjs test/keyboard-receiver-frame.mjs test/ask-response-scope.mjs test/auto-mode.mjs test/model-picker-icon.mjs test/ask-completion-churn.mjs test/page-feedback-policy.mjs test/research-escalation-page-feedback.mjs test/page-feedback-transport-races.mjs test/page-feedback-recovery.mjs test/telegram-read-preparation-agent.mjs test/media-download-agent-handler.mjs test/code-scanning-url-recipient.mjs test/apocalypse-comm-parsing.mjs test/apocalypse-scalar-decoding.mjs test/bitgpu-chat-security.mjs test/social-media-url-upgrades.mjs test/downloaded-file-saved-bytes.mjs test/downloaded-file-local-probe.mjs test/formless-verification-recovery.mjs test/file-upload-accept.mjs test/file-upload-accept-agent.mjs test/workflow-route-generic-completion.mjs test/release-publication-completion.mjs test/workflow-implicit-metadata.mjs test/workflow-field-readings.mjs test/workflow-field-anchors.mjs test/user-turn-kind.mjs test/follow-up-task-context.mjs test/completion-current-execution-evidence.mjs test/video-upload-attachment.mjs test/feedback-automatic-churn.mjs test/feedback-navigation-idle.mjs test/feedback-run-boundaries.mjs test/feedback-ask-viewing.mjs test/lifecycle-terminal-done.mjs test/incomplete-completion-recovery.mjs test/guard-advisory-completion.mjs test/lean-mode.mjs test/lifecycle-planner-digest.mjs test/lifecycle-steering-latency.mjs test/lifecycle-steering-restart.mjs test/lifecycle-vision-fallback.mjs test/delivery-click-locks.mjs test/guards-steering-receipts.mjs test/terminal-user-messages.mjs test/improver-providers.mjs test/improver-providers-agent.mjs test/improver-guards-ledger.mjs test/improver-guards-tools.mjs test/improver-clarify.mjs test/improver-clarify-scheduler.mjs test/improver-misc.mjs test/improver-forms.mjs test/improver-forms-strict-secrets.mjs test/improver-content-press-keys-hint.mjs && npm run test:plan-notifications",
"test:shard:browser-a": "node --test test/captcha-draft-content.mjs test/captcha-challenge-surfaces.mjs && node test/bot-memory-dom.mjs && node test/bot-memory-click-dom.mjs && node test/ui-content-lifecycle.mjs && node --test test/native-telegram-chat.mjs test/native-telegram-recipient.mjs test/telegram-native-baseline.mjs test/telegram-native-latest.mjs test/native-chat-pre-enter-draft.mjs test/chat-draft-dispatch-ownership.mjs test/native-telegram-alias-preparation.mjs test/telegram-read-preparation-content.mjs test/queued-composer-ownership.mjs test/onboarding-provider-ready.mjs test/sidepanel-permission-gate-ui.mjs test/workflow-native-targets.mjs test/native-whatsapp-chat.mjs test/native-chat-context-identity.mjs test/native-whatsapp-contact.mjs test/whatsapp-native-bootstrap.mjs test/whatsapp-drawer-identity.mjs test/whatsapp-read-latest.mjs test/whatsapp-read-preparation.mjs test/whatsapp-chat-completion.mjs test/whatsapp-chat-restart.mjs test/chat-goal-lifecycle.mjs test/chat-completion.mjs test/chat-generic-dispatch.mjs test/completion-live-status-browser.mjs test/native-confirmation-visibility.mjs test/native-button-preparation.mjs test/read-continuation-browser.mjs test/iframe-preparation-focus.mjs test/contenteditable-literal.mjs test/native-chat-empty-editor.mjs test/native-chat-trusted-clear.mjs test/chat-steering-ui.mjs test/recipient-confirmation-ui.mjs test/assistant-message-visibility-ui.mjs test/page-monitor-ui.mjs test/x-compose-trusted-typing.mjs test/page-monitor-dialog.mjs test/page-monitor-dialog-native.mjs test/page-monitor-inline-post.mjs test/bluesky-composer-context.mjs test/page-monitor-anchored.mjs test/page-monitor-upload-owner.mjs test/page-monitor-upload-release.mjs test/page-monitor-native-controls.mjs test/page-monitor-native-preparation.mjs test/native-preparation-cold.mjs test/page-monitor-navigation.mjs test/page-monitor-main-owner.mjs test/page-monitor-collateral-controls.mjs test/accessibility-tree-scoped-budget.mjs test/ax-reference-origin.mjs test/page-monitor-decorative-hit.mjs test/social-ui-navigation.mjs test/native-resource-deletion-binding.mjs test/native-mastodon-confirmation.mjs test/dropdown-menu-inventory.mjs test/page-monitor-passive-progress.mjs test/page-monitor-feed-items.mjs test/media-download-binding.mjs test/media-download-capture-integration.mjs test/social-media-downloader-reinjection.mjs test/upload-file-local-state-guidance.mjs test/monitor-intervention-contract.mjs test/monitor-owned-geometry.mjs test/monitor-viewport-remainder.mjs test/monitor-scroll-churn.mjs test/monitor-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/lifecycle-run-ui.mjs test/lifecycle-menu-prompts-held.mjs test/delivery-cdp-input.mjs test/delivery-click-ax-response-loss.mjs test/delivery-native-button-geometry.mjs test/delivery-hover-transition.mjs test/delivery-native-button-route.mjs test/delivery-dispatch-boundary.mjs test/delivery-stop-compound.mjs test/guards-control-classification.mjs test/guards-unbound-deletion.mjs test/submit-probe-readings.mjs test/improver-content-account-chrome.mjs test/improver-content-recipient.mjs test/improver-content-truncated-replacement.mjs test/improver-forms-probe.mjs test/improver-misc-trace-browser.mjs",
"test:shard:browser-b1": "node test/message-recipient-upload.mjs && node test/message-recipient-clarify-binding.mjs && node --test test/message-recipient-whatsapp.mjs test/message-control-readings.mjs && node test/quality/integration-mv3.mjs --full-form && node test/quality/integration-mv3.mjs --batch && node test/quality/literal-calculate-midrun-mv3.mjs && node test/quality/ask-completion-churn-mv3.mjs && node test/quality/ask-person-activity-mv3.mjs && node test/quality/telegram-cold-preparation-mv3.mjs && node test/quality/native-chat-mv3.mjs && node test/quality/native-chat-presubmit-mv3.mjs && node test/quality/cloud-bot-memory-mv3.mjs",
"test:shard:browser-b2": "node test/quality/whatsapp-contact-matrix.mjs && node test/quality/pdf-detection-mv3.mjs && node test/quality/download-upload-mv3.mjs && node test/quality/upload-release-binding-mv3.mjs && node test/quality/upload-release-binding-mv3.mjs --selector-recovery && node test/quality/upload-release-binding-mv3.mjs --sequential-assets && node test/quality/release-review-world-mv3.mjs && node test/quality/downloaded-file-saved-bytes-mv3.mjs && node test/quality/file-upload-accept-mv3.mjs && node test/quality/bulk-resume-mv3.mjs && node test/quality/shared-action-guards-mv3.mjs && node test/quality/video-upload-attachment-mv3.mjs",
diff --git a/src/chrome/src/ui/locales/ar.js b/src/chrome/src/ui/locales/ar.js
index d2675283c..9273f5145 100644
--- a/src/chrome/src/ui/locales/ar.js
+++ b/src/chrome/src/ui/locales/ar.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "تعذرت استعادة المحادثة.",
'sp.history.changed': "تغيّر رابط الصفحة.",
'sp.providers.more': 'المزيد…',
+ 'sp.provider_picker.current': 'النموذج: {name}',
+ 'sp.provider_picker.none': 'اختر نموذجًا',
"st.system_one.desc_html": "تحقق إضافي من المراقبة المجدولة وإتمام المهام.",
"st.system_one.enabled.label": "تفعيل Jev",
"st.system_one.api_key.label": "مفتاح API لـ TypeSafe",
diff --git a/src/chrome/src/ui/locales/bn.js b/src/chrome/src/ui/locales/bn.js
index 87deb2d60..4ded70caf 100644
--- a/src/chrome/src/ui/locales/bn.js
+++ b/src/chrome/src/ui/locales/bn.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': "কথোপকথন পুনরুদ্ধার করা যায়নি।",
'sp.history.changed': "পৃষ্ঠার URL পরিবর্তিত হয়েছে।",
'sp.providers.more': "আরও…",
+ 'sp.provider_picker.current': 'মডেল: {name}',
+ 'sp.provider_picker.none': 'মডেল বেছে নিন',
'st.providers.selected': "নির্বাচিত",
'st.providers.select_for_chat': "চ্যাটের জন্য নির্বাচন করুন",
// Brand name: kept in English across locales.
diff --git a/src/chrome/src/ui/locales/de.js b/src/chrome/src/ui/locales/de.js
index b450305f4..7947a2a05 100644
--- a/src/chrome/src/ui/locales/de.js
+++ b/src/chrome/src/ui/locales/de.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Unterhaltung konnte nicht wiederhergestellt werden.",
'sp.history.changed': "Die Seiten-URL hat sich geändert.",
'sp.providers.more': 'Mehr…',
+ 'sp.provider_picker.current': 'Modell: {name}',
+ 'sp.provider_picker.none': 'Modell wählen',
'st.providers.selected': 'AUSGEWÄHLT',
'st.providers.select_for_chat': 'Für Chat auswählen',
'brand': 'WebBrain',
diff --git a/src/chrome/src/ui/locales/en.js b/src/chrome/src/ui/locales/en.js
index 3d160ec0a..ed3e876e8 100644
--- a/src/chrome/src/ui/locales/en.js
+++ b/src/chrome/src/ui/locales/en.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': 'Unable to recover conversation.',
'sp.history.changed': 'The page URL has changed.',
'sp.providers.more': 'More…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Choose a model',
'st.providers.selected': 'SELECTED',
'st.providers.select_for_chat': 'Select for chat',
// Brand name: kept in English across locales.
diff --git a/src/chrome/src/ui/locales/es.js b/src/chrome/src/ui/locales/es.js
index ce802ddc5..b1e2f5f2d 100644
--- a/src/chrome/src/ui/locales/es.js
+++ b/src/chrome/src/ui/locales/es.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "No se pudo recuperar la conversación.",
'sp.history.changed': "La URL de la página ha cambiado.",
'sp.providers.more': 'Más…',
+ 'sp.provider_picker.current': 'Modelo: {name}',
+ 'sp.provider_picker.none': 'Elige un modelo',
"st.system_one.desc_html": "Verificación adicional de seguimientos y tareas programadas.",
"st.system_one.enabled.label": "Activar Jev",
"st.system_one.api_key.label": "Clave API de TypeSafe",
diff --git a/src/chrome/src/ui/locales/fa.js b/src/chrome/src/ui/locales/fa.js
index 307646e3c..9d36eb3b6 100644
--- a/src/chrome/src/ui/locales/fa.js
+++ b/src/chrome/src/ui/locales/fa.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': "بازیابی گفتگو ممکن نشد.",
'sp.history.changed': "نشانی صفحه تغییر کرده است.",
'sp.providers.more': "بیشتر…",
+ 'sp.provider_picker.current': 'مدل: {name}',
+ 'sp.provider_picker.none': 'انتخاب مدل',
'st.providers.selected': "انتخاب شد",
'st.providers.select_for_chat': "برای چت انتخاب کنید",
// Brand name: kept in English across locales.
diff --git a/src/chrome/src/ui/locales/fr.js b/src/chrome/src/ui/locales/fr.js
index 0ba200e77..8d2d97493 100644
--- a/src/chrome/src/ui/locales/fr.js
+++ b/src/chrome/src/ui/locales/fr.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Impossible de restaurer la conversation.",
'sp.history.changed': "L’URL de la page a changé.",
'sp.providers.more': 'Plus…',
+ 'sp.provider_picker.current': 'Modèle : {name}',
+ 'sp.provider_picker.none': 'Choisir un modèle',
"st.system_one.desc_html": "Vérification supplémentaire des surveillances et tâches planifiées.",
"st.system_one.enabled.label": "Activer Jev",
"st.system_one.api_key.label": "Clé API TypeSafe",
diff --git a/src/chrome/src/ui/locales/he.js b/src/chrome/src/ui/locales/he.js
index 3b1dde430..f33d01d5b 100644
--- a/src/chrome/src/ui/locales/he.js
+++ b/src/chrome/src/ui/locales/he.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "לא ניתן לשחזר את השיחה.",
'sp.history.changed': "כתובת הדף השתנתה.",
'sp.providers.more': 'עוד…',
+ 'sp.provider_picker.current': 'מודל: {name}',
+ 'sp.provider_picker.none': 'בחירת מודל',
"st.system_one.desc_html": "אימות נוסף למעקבים מתוזמנים ולהשלמת משימות.",
"st.system_one.enabled.label": "הפעלת Jev",
"st.system_one.api_key.label": "מפתח API של TypeSafe",
diff --git a/src/chrome/src/ui/locales/hi.js b/src/chrome/src/ui/locales/hi.js
index 47b1c45a2..df9bee11f 100644
--- a/src/chrome/src/ui/locales/hi.js
+++ b/src/chrome/src/ui/locales/hi.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': "बातचीत पुनर्प्राप्त नहीं हो सकी।",
'sp.history.changed': "पृष्ठ का URL बदल गया है।",
'sp.providers.more': "अधिक...",
+ 'sp.provider_picker.current': 'मॉडल: {name}',
+ 'sp.provider_picker.none': 'मॉडल चुनें',
'st.providers.selected': "चयनित",
'st.providers.select_for_chat': "चैट के लिए चयन करें",
// Brand name: kept in English across locales.
diff --git a/src/chrome/src/ui/locales/id.js b/src/chrome/src/ui/locales/id.js
index 5e2614466..a16e345f9 100644
--- a/src/chrome/src/ui/locales/id.js
+++ b/src/chrome/src/ui/locales/id.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Percakapan tidak dapat dipulihkan.",
'sp.history.changed': "URL halaman telah berubah.",
'sp.providers.more': 'Lainnya…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Pilih model',
"st.system_one.desc_html": "Verifikasi tambahan untuk pemantauan terjadwal dan penyelesaian tugas.",
"st.system_one.enabled.label": "Aktifkan Jev",
"st.system_one.api_key.label": "Kunci API TypeSafe",
diff --git a/src/chrome/src/ui/locales/ja.js b/src/chrome/src/ui/locales/ja.js
index 6a568b62c..40703792e 100644
--- a/src/chrome/src/ui/locales/ja.js
+++ b/src/chrome/src/ui/locales/ja.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "会話を復元できませんでした。",
'sp.history.changed': "ページのURLが変更されました。",
'sp.providers.more': 'その他…',
+ 'sp.provider_picker.current': 'モデル: {name}',
+ 'sp.provider_picker.none': 'モデルを選択',
"st.system_one.desc_html": "定期監視と予約タスクの完了を追加検証します。",
"st.system_one.enabled.label": "Jev を有効にする",
"st.system_one.api_key.label": "TypeSafe API キー",
diff --git a/src/chrome/src/ui/locales/ko.js b/src/chrome/src/ui/locales/ko.js
index 804b9a146..656abd66a 100644
--- a/src/chrome/src/ui/locales/ko.js
+++ b/src/chrome/src/ui/locales/ko.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "대화를 복원할 수 없습니다.",
'sp.history.changed': "페이지 URL이 변경되었습니다.",
'sp.providers.more': '더 보기…',
+ 'sp.provider_picker.current': '모델: {name}',
+ 'sp.provider_picker.none': '모델 선택',
"st.system_one.desc_html": "예약된 모니터링과 작업 완료를 추가로 검증합니다.",
"st.system_one.enabled.label": "Jev 활성화",
"st.system_one.api_key.label": "TypeSafe API 키",
diff --git a/src/chrome/src/ui/locales/ms.js b/src/chrome/src/ui/locales/ms.js
index 44e268ea0..43f60be5f 100644
--- a/src/chrome/src/ui/locales/ms.js
+++ b/src/chrome/src/ui/locales/ms.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Perbualan tidak dapat dipulihkan.",
'sp.history.changed': "URL halaman telah berubah.",
'sp.providers.more': 'Lagi…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Pilih model',
"st.system_one.desc_html": "Pengesahan tambahan bagi pemantauan berjadual dan penyelesaian tugas.",
"st.system_one.enabled.label": "Dayakan Jev",
"st.system_one.api_key.label": "Kunci API TypeSafe",
diff --git a/src/chrome/src/ui/locales/nl.js b/src/chrome/src/ui/locales/nl.js
index 5420e9ca3..f2465356d 100644
--- a/src/chrome/src/ui/locales/nl.js
+++ b/src/chrome/src/ui/locales/nl.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Gesprek kon niet worden hersteld.",
'sp.history.changed': "De pagina-URL is gewijzigd.",
'sp.providers.more': 'Meer…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Kies een model',
'st.providers.selected': 'GEGEVEZEN',
'st.providers.select_for_chat': 'Selecteren voor chat',
'brand': 'WebBrain',
diff --git a/src/chrome/src/ui/locales/pl.js b/src/chrome/src/ui/locales/pl.js
index a3d51a1fe..ea630874b 100644
--- a/src/chrome/src/ui/locales/pl.js
+++ b/src/chrome/src/ui/locales/pl.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Nie udało się przywrócić rozmowy.",
'sp.history.changed': "Adres URL strony uległ zmianie.",
'sp.providers.more': 'Więcej…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Wybierz model',
'st.providers.selected': 'WYBRANO',
'st.providers.select_for_chat': 'Wybierz do czatu',
'brand': 'WebBrain',
diff --git a/src/chrome/src/ui/locales/pt.js b/src/chrome/src/ui/locales/pt.js
index 04a3465e1..97c104fd4 100644
--- a/src/chrome/src/ui/locales/pt.js
+++ b/src/chrome/src/ui/locales/pt.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': "Não foi possível recuperar a conversa.",
'sp.history.changed': "O URL da página mudou.",
'sp.providers.more': "Mais…",
+ 'sp.provider_picker.current': 'Modelo: {name}',
+ 'sp.provider_picker.none': 'Escolha um modelo',
'st.providers.selected': "SELECIONADO",
'st.providers.select_for_chat': "Selecione para bate-papo",
// Brand name: kept in English across locales.
diff --git a/src/chrome/src/ui/locales/ru.js b/src/chrome/src/ui/locales/ru.js
index b390c2216..07a41fc34 100644
--- a/src/chrome/src/ui/locales/ru.js
+++ b/src/chrome/src/ui/locales/ru.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Не удалось восстановить беседу.",
'sp.history.changed': "URL страницы изменился.",
'sp.providers.more': 'Ещё…',
+ 'sp.provider_picker.current': 'Модель: {name}',
+ 'sp.provider_picker.none': 'Выберите модель',
"st.system_one.desc_html": "Дополнительная проверка запланированных наблюдений и завершения задач.",
"st.system_one.enabled.label": "Включить Jev",
"st.system_one.api_key.label": "Ключ API TypeSafe",
diff --git a/src/chrome/src/ui/locales/th.js b/src/chrome/src/ui/locales/th.js
index 856958f9f..6e51f8786 100644
--- a/src/chrome/src/ui/locales/th.js
+++ b/src/chrome/src/ui/locales/th.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "ไม่สามารถกู้คืนการสนทนาได้",
'sp.history.changed': "URL ของหน้าเปลี่ยนไปแล้ว",
'sp.providers.more': 'เพิ่มเติม…',
+ 'sp.provider_picker.current': 'โมเดล: {name}',
+ 'sp.provider_picker.none': 'เลือกโมเดล',
"st.system_one.desc_html": "ตรวจสอบเพิ่มเติมสำหรับการเฝ้าดูและการทำงานตามกำหนดเวลา",
"st.system_one.enabled.label": "เปิดใช้ Jev",
"st.system_one.api_key.label": "คีย์ API ของ TypeSafe",
diff --git a/src/chrome/src/ui/locales/tl.js b/src/chrome/src/ui/locales/tl.js
index 47a934c46..f414413c8 100644
--- a/src/chrome/src/ui/locales/tl.js
+++ b/src/chrome/src/ui/locales/tl.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Hindi maibalik ang pag-uusap.",
'sp.history.changed': "Nagbago ang URL ng pahina.",
'sp.providers.more': 'Higit pa…',
+ 'sp.provider_picker.current': 'Modelo: {name}',
+ 'sp.provider_picker.none': 'Pumili ng modelo',
"st.system_one.desc_html": "Dagdag na pagtiyak sa nakaiskedyul na pagsubaybay at pagkumpleto ng gawain.",
"st.system_one.enabled.label": "Paganahin ang Jev",
"st.system_one.api_key.label": "TypeSafe API key",
diff --git a/src/chrome/src/ui/locales/tr.js b/src/chrome/src/ui/locales/tr.js
index b81d4d131..566b03e3d 100644
--- a/src/chrome/src/ui/locales/tr.js
+++ b/src/chrome/src/ui/locales/tr.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': 'Konuşma geri yüklenemedi.',
'sp.history.changed': 'Sayfanın URL’si değişti.',
'sp.providers.more': 'Daha fazla…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Model seç',
"st.system_one.desc_html": "Zamanlanmış izlemeler ve görev tamamlanması için ek doğrulama.",
"st.system_one.enabled.label": "Jev’i etkinleştir",
"st.system_one.api_key.label": "TypeSafe API anahtarı",
diff --git a/src/chrome/src/ui/locales/uk.js b/src/chrome/src/ui/locales/uk.js
index abca9969a..efd9581ce 100644
--- a/src/chrome/src/ui/locales/uk.js
+++ b/src/chrome/src/ui/locales/uk.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Не вдалося відновити розмову.",
'sp.history.changed': "URL-адреса сторінки змінилася.",
'sp.providers.more': 'Більше…',
+ 'sp.provider_picker.current': 'Модель: {name}',
+ 'sp.provider_picker.none': 'Оберіть модель',
"st.system_one.desc_html": "Додаткова перевірка запланованих спостережень і завершення завдань.",
"st.system_one.enabled.label": "Увімкнути Jev",
"st.system_one.api_key.label": "Ключ API TypeSafe",
diff --git a/src/chrome/src/ui/locales/vi.js b/src/chrome/src/ui/locales/vi.js
index 2e0ae9b4e..71828a2b0 100644
--- a/src/chrome/src/ui/locales/vi.js
+++ b/src/chrome/src/ui/locales/vi.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': "Không thể khôi phục cuộc trò chuyện.",
'sp.history.changed': "URL của trang đã thay đổi.",
'sp.providers.more': "Thêm…",
+ 'sp.provider_picker.current': 'Mô hình: {name}',
+ 'sp.provider_picker.none': 'Chọn mô hình',
'st.providers.selected': "ĐÃ CHỌN",
'st.providers.select_for_chat': "Chọn để trò chuyện",
// Brand name: kept in English across locales.
diff --git a/src/chrome/src/ui/locales/zh.js b/src/chrome/src/ui/locales/zh.js
index 056f361d8..049768a3f 100644
--- a/src/chrome/src/ui/locales/zh.js
+++ b/src/chrome/src/ui/locales/zh.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "无法恢复对话。",
'sp.history.changed': "页面网址已更改。",
'sp.providers.more': '更多…',
+ 'sp.provider_picker.current': '模型:{name}',
+ 'sp.provider_picker.none': '选择模型',
"st.system_one.desc_html": "为定时监测和任务完成提供额外验证。",
"st.system_one.enabled.label": "启用 Jev",
"st.system_one.api_key.label": "TypeSafe API 密钥",
diff --git a/src/chrome/src/ui/sidepanel.html b/src/chrome/src/ui/sidepanel.html
index 4011291c5..f2e7053f8 100644
--- a/src/chrome/src/ui/sidepanel.html
+++ b/src/chrome/src/ui/sidepanel.html
@@ -391,9 +391,18 @@
</button>
<div class="provider-picker" id="provider-picker">
<!-- Native select kept as the value source for existing handlers.
- Closed button is text-only; brand icons show only in the open menu. -->
+ The closed button shows an engine icon, not the model's name, to
+ save toolbar room: the name is its tooltip and accessible name,
+ and the open menu marks it. Brand icons show only in the menu. -->
<select id="provider-select" class="provider-select-native" title="LLM Provider" tabindex="-1" aria-hidden="true"></select>
<button type="button" id="provider-picker-btn" class="provider-picker-btn" aria-haspopup="listbox" aria-expanded="false" aria-controls="provider-picker-menu" aria-label="LLM Provider">
+ <svg class="provider-picker-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <path d="M10 4h6"/>
+ <path d="M13 4v3"/>
+ <path d="M7 7h9l2 2h2v8h-3l-2 2H9l-2-2z"/>
+ <path d="M3 11v4"/>
+ <path d="M3 13h4"/>
+ </svg>
<span class="provider-picker-label" id="provider-picker-label"></span>
<span class="provider-picker-caret" aria-hidden="true">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
diff --git a/src/chrome/src/ui/sidepanel.js b/src/chrome/src/ui/sidepanel.js
index 0d67575cd..a58b2a90c 100644
--- a/src/chrome/src/ui/sidepanel.js
+++ b/src/chrome/src/ui/sidepanel.js
@@ -8063,7 +8063,11 @@ function syncProviderPickerButton() {
|| '';
providerPickerLabel.textContent = shortLabel;
if (providerPickerBtn) {
- providerPickerBtn.title = providerSelect.selectedOptions?.[0]?.textContent || shortLabel;
+ // The button shows an icon only, so its name says which model is active.
+ const name = providerSelect.selectedOptions?.[0]?.textContent || shortLabel;
+ const label = name ? t('sp.provider_picker.current', { name }) : t('sp.provider_picker.none');
+ providerPickerBtn.title = label;
+ providerPickerBtn.setAttribute('aria-label', label);
}
if (providerPickerMenu) {
providerPickerMenu.querySelectorAll('.provider-picker-option').forEach((btn) => {
@@ -16456,6 +16460,7 @@ if (languageSelect) {
await setLocale(languageSelect.value);
applyDOMTranslations(document);
syncLanguagePicker();
+ syncProviderPickerButton();
updateInputPlaceholder();
syncSelectionScopeUi();
scheduleChatNavigationUpdate();
@@ -16463,6 +16468,7 @@ if (languageSelect) {
document.addEventListener('wb-locale-changed', () => {
languageSelect.value = getLocale();
syncLanguagePicker();
+ syncProviderPickerButton();
updateInputPlaceholder();
syncSelectionScopeUi();
scheduleChatNavigationUpdate();
diff --git a/src/chrome/styles/sidepanel.css b/src/chrome/styles/sidepanel.css
index c8bbaece3..9a5bbd14b 100644
--- a/src/chrome/styles/sidepanel.css
+++ b/src/chrome/styles/sidepanel.css
@@ -3434,7 +3434,18 @@ html[data-ui-scale="175"] .conversation-action-label {
background: transparent;
border-color: transparent;
color: var(--text-secondary);
- padding: 4px 6px;
+ gap: 2px;
+ padding: 4px 4px 4px 5px;
+}
+
+/* In the composer the picker is an engine icon: the model's name is its
+ tooltip and accessible name, so a long name never crowds the toolbar. */
+.provider-picker-icon {
+ flex: 0 0 auto;
+}
+
+.composer-toolbar .provider-picker-label {
+ display: none;
}
.composer-toolbar .provider-picker-btn:hover,
@@ -3455,23 +3466,15 @@ html[dir="rtl"] .composer-toolbar .provider-picker-menu {
}
/* Narrow panel at a large UI scale (150%/175% leave ~160-200px inside the
- composer): the model picker fills the first row next to the attach button, so
- the fixed-width controls (status, permissions, mic, send) wrap to a second row
- instead of squeezing it to a few pixels. The DOM order is unchanged, so
- keyboard focus follows the visual order. */
+ composer): if the controls do not fit on one row they wrap to a second one
+ instead of being squeezed. The DOM order is unchanged, so keyboard focus
+ follows the visual order. */
html[data-ui-scale="150"] .composer-toolbar,
html[data-ui-scale="175"] .composer-toolbar {
flex-wrap: wrap;
row-gap: 4px;
}
-html[data-ui-scale="150"] .composer-toolbar .provider-picker,
-html[data-ui-scale="175"] .composer-toolbar .provider-picker {
- /* 100% minus the 28px attach button and the 6px gap */
- flex: 1 1 calc(100% - 34px);
- max-width: none;
-}
-
#input-wrapper:focus-within {
border-color: var(--accent);
}
diff --git a/src/firefox/src/ui/locales/ar.js b/src/firefox/src/ui/locales/ar.js
index db3352c7c..f8b7efc8a 100644
--- a/src/firefox/src/ui/locales/ar.js
+++ b/src/firefox/src/ui/locales/ar.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "تعذرت استعادة المحادثة.",
'sp.history.changed': "تغيّر رابط الصفحة.",
'sp.providers.more': 'المزيد…',
+ 'sp.provider_picker.current': 'النموذج: {name}',
+ 'sp.provider_picker.none': 'اختر نموذجًا',
"st.system_one.desc_html": "تحقق إضافي من المراقبة المجدولة وإتمام المهام.",
"st.system_one.enabled.label": "تفعيل Jev",
"st.system_one.api_key.label": "مفتاح API لـ TypeSafe",
diff --git a/src/firefox/src/ui/locales/bn.js b/src/firefox/src/ui/locales/bn.js
index 028835d3c..7da4c1b5d 100644
--- a/src/firefox/src/ui/locales/bn.js
+++ b/src/firefox/src/ui/locales/bn.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': "কথোপকথন পুনরুদ্ধার করা যায়নি।",
'sp.history.changed': "পৃষ্ঠার URL পরিবর্তিত হয়েছে।",
'sp.providers.more': "আরও…",
+ 'sp.provider_picker.current': 'মডেল: {name}',
+ 'sp.provider_picker.none': 'মডেল বেছে নিন',
'st.providers.selected': "নির্বাচিত",
'st.providers.select_for_chat': "চ্যাটের জন্য নির্বাচন করুন",
// Brand name: kept in English across locales.
diff --git a/src/firefox/src/ui/locales/de.js b/src/firefox/src/ui/locales/de.js
index aedfd8e15..b90f1b342 100644
--- a/src/firefox/src/ui/locales/de.js
+++ b/src/firefox/src/ui/locales/de.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Unterhaltung konnte nicht wiederhergestellt werden.",
'sp.history.changed': "Die Seiten-URL hat sich geändert.",
'sp.providers.more': 'Mehr…',
+ 'sp.provider_picker.current': 'Modell: {name}',
+ 'sp.provider_picker.none': 'Modell wählen',
'st.providers.selected': 'AUSGEWÄHLT',
'st.providers.select_for_chat': 'Für Chat auswählen',
'brand': 'WebBrain',
diff --git a/src/firefox/src/ui/locales/en.js b/src/firefox/src/ui/locales/en.js
index 8b5e01dcf..b6333696e 100644
--- a/src/firefox/src/ui/locales/en.js
+++ b/src/firefox/src/ui/locales/en.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': 'Unable to recover conversation.',
'sp.history.changed': 'The page URL has changed.',
'sp.providers.more': 'More…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Choose a model',
'st.providers.selected': 'SELECTED',
'st.providers.select_for_chat': 'Select for chat',
// Brand name: kept in English across locales.
diff --git a/src/firefox/src/ui/locales/es.js b/src/firefox/src/ui/locales/es.js
index b0a9f9012..70a64a4f7 100644
--- a/src/firefox/src/ui/locales/es.js
+++ b/src/firefox/src/ui/locales/es.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "No se pudo recuperar la conversación.",
'sp.history.changed': "La URL de la página ha cambiado.",
'sp.providers.more': 'Más…',
+ 'sp.provider_picker.current': 'Modelo: {name}',
+ 'sp.provider_picker.none': 'Elige un modelo',
"st.system_one.desc_html": "Verificación adicional de seguimientos y tareas programadas.",
"st.system_one.enabled.label": "Activar Jev",
"st.system_one.api_key.label": "Clave API de TypeSafe",
diff --git a/src/firefox/src/ui/locales/fa.js b/src/firefox/src/ui/locales/fa.js
index 0c6515e40..d7feebfb1 100644
--- a/src/firefox/src/ui/locales/fa.js
+++ b/src/firefox/src/ui/locales/fa.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': "بازیابی گفتگو ممکن نشد.",
'sp.history.changed': "نشانی صفحه تغییر کرده است.",
'sp.providers.more': "بیشتر…",
+ 'sp.provider_picker.current': 'مدل: {name}',
+ 'sp.provider_picker.none': 'انتخاب مدل',
'st.providers.selected': "انتخاب شد",
'st.providers.select_for_chat': "برای چت انتخاب کنید",
// Brand name: kept in English across locales.
diff --git a/src/firefox/src/ui/locales/fr.js b/src/firefox/src/ui/locales/fr.js
index 5fb945dad..5917739ae 100644
--- a/src/firefox/src/ui/locales/fr.js
+++ b/src/firefox/src/ui/locales/fr.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Impossible de restaurer la conversation.",
'sp.history.changed': "L’URL de la page a changé.",
'sp.providers.more': 'Plus…',
+ 'sp.provider_picker.current': 'Modèle : {name}',
+ 'sp.provider_picker.none': 'Choisir un modèle',
"st.system_one.desc_html": "Vérification supplémentaire des surveillances et tâches planifiées.",
"st.system_one.enabled.label": "Activer Jev",
"st.system_one.api_key.label": "Clé API TypeSafe",
diff --git a/src/firefox/src/ui/locales/he.js b/src/firefox/src/ui/locales/he.js
index f2454ddda..3aed37b3b 100644
--- a/src/firefox/src/ui/locales/he.js
+++ b/src/firefox/src/ui/locales/he.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "לא ניתן לשחזר את השיחה.",
'sp.history.changed': "כתובת הדף השתנתה.",
'sp.providers.more': 'עוד…',
+ 'sp.provider_picker.current': 'מודל: {name}',
+ 'sp.provider_picker.none': 'בחירת מודל',
"st.system_one.desc_html": "אימות נוסף למעקבים מתוזמנים ולהשלמת משימות.",
"st.system_one.enabled.label": "הפעלת Jev",
"st.system_one.api_key.label": "מפתח API של TypeSafe",
diff --git a/src/firefox/src/ui/locales/hi.js b/src/firefox/src/ui/locales/hi.js
index 978834940..c69185733 100644
--- a/src/firefox/src/ui/locales/hi.js
+++ b/src/firefox/src/ui/locales/hi.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': "बातचीत पुनर्प्राप्त नहीं हो सकी।",
'sp.history.changed': "पृष्ठ का URL बदल गया है।",
'sp.providers.more': "अधिक...",
+ 'sp.provider_picker.current': 'मॉडल: {name}',
+ 'sp.provider_picker.none': 'मॉडल चुनें',
'st.providers.selected': "चयनित",
'st.providers.select_for_chat': "चैट के लिए चयन करें",
// Brand name: kept in English across locales.
diff --git a/src/firefox/src/ui/locales/id.js b/src/firefox/src/ui/locales/id.js
index dfee0f73e..b481ed9d3 100644
--- a/src/firefox/src/ui/locales/id.js
+++ b/src/firefox/src/ui/locales/id.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Percakapan tidak dapat dipulihkan.",
'sp.history.changed': "URL halaman telah berubah.",
'sp.providers.more': 'Lainnya…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Pilih model',
"st.system_one.desc_html": "Verifikasi tambahan untuk pemantauan terjadwal dan penyelesaian tugas.",
"st.system_one.enabled.label": "Aktifkan Jev",
"st.system_one.api_key.label": "Kunci API TypeSafe",
diff --git a/src/firefox/src/ui/locales/ja.js b/src/firefox/src/ui/locales/ja.js
index 77392acb6..5d40e355a 100644
--- a/src/firefox/src/ui/locales/ja.js
+++ b/src/firefox/src/ui/locales/ja.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "会話を復元できませんでした。",
'sp.history.changed': "ページのURLが変更されました。",
'sp.providers.more': 'その他…',
+ 'sp.provider_picker.current': 'モデル: {name}',
+ 'sp.provider_picker.none': 'モデルを選択',
"st.system_one.desc_html": "定期監視と予約タスクの完了を追加検証します。",
"st.system_one.enabled.label": "Jev を有効にする",
"st.system_one.api_key.label": "TypeSafe API キー",
diff --git a/src/firefox/src/ui/locales/ko.js b/src/firefox/src/ui/locales/ko.js
index 36ab2bb27..37647d741 100644
--- a/src/firefox/src/ui/locales/ko.js
+++ b/src/firefox/src/ui/locales/ko.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "대화를 복원할 수 없습니다.",
'sp.history.changed': "페이지 URL이 변경되었습니다.",
'sp.providers.more': '더 보기…',
+ 'sp.provider_picker.current': '모델: {name}',
+ 'sp.provider_picker.none': '모델 선택',
"st.system_one.desc_html": "예약된 모니터링과 작업 완료를 추가로 검증합니다.",
"st.system_one.enabled.label": "Jev 활성화",
"st.system_one.api_key.label": "TypeSafe API 키",
diff --git a/src/firefox/src/ui/locales/ms.js b/src/firefox/src/ui/locales/ms.js
index 98034e3bb..d2d019810 100644
--- a/src/firefox/src/ui/locales/ms.js
+++ b/src/firefox/src/ui/locales/ms.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Perbualan tidak dapat dipulihkan.",
'sp.history.changed': "URL halaman telah berubah.",
'sp.providers.more': 'Lagi…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Pilih model',
"st.system_one.desc_html": "Pengesahan tambahan bagi pemantauan berjadual dan penyelesaian tugas.",
"st.system_one.enabled.label": "Dayakan Jev",
"st.system_one.api_key.label": "Kunci API TypeSafe",
diff --git a/src/firefox/src/ui/locales/nl.js b/src/firefox/src/ui/locales/nl.js
index 0b56b6103..32904db07 100644
--- a/src/firefox/src/ui/locales/nl.js
+++ b/src/firefox/src/ui/locales/nl.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Gesprek kon niet worden hersteld.",
'sp.history.changed': "De pagina-URL is gewijzigd.",
'sp.providers.more': 'Meer…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Kies een model',
'st.providers.selected': 'GEGEVEZEN',
'st.providers.select_for_chat': 'Selecteren voor chat',
'brand': 'WebBrain',
diff --git a/src/firefox/src/ui/locales/pl.js b/src/firefox/src/ui/locales/pl.js
index 117fa6903..b192780d9 100644
--- a/src/firefox/src/ui/locales/pl.js
+++ b/src/firefox/src/ui/locales/pl.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Nie udało się przywrócić rozmowy.",
'sp.history.changed': "Adres URL strony uległ zmianie.",
'sp.providers.more': 'Więcej…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Wybierz model',
'st.providers.selected': 'WYBRANO',
'st.providers.select_for_chat': 'Wybierz do czatu',
'brand': 'WebBrain',
diff --git a/src/firefox/src/ui/locales/pt.js b/src/firefox/src/ui/locales/pt.js
index b4293827b..2f7e5548f 100644
--- a/src/firefox/src/ui/locales/pt.js
+++ b/src/firefox/src/ui/locales/pt.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': "Não foi possível recuperar a conversa.",
'sp.history.changed': "O URL da página mudou.",
'sp.providers.more': "Mais…",
+ 'sp.provider_picker.current': 'Modelo: {name}',
+ 'sp.provider_picker.none': 'Escolha um modelo',
'st.providers.selected': "SELECIONADO",
'st.providers.select_for_chat': "Selecione para bate-papo",
// Brand name: kept in English across locales.
diff --git a/src/firefox/src/ui/locales/ru.js b/src/firefox/src/ui/locales/ru.js
index 6b7bf9c17..481ef0835 100644
--- a/src/firefox/src/ui/locales/ru.js
+++ b/src/firefox/src/ui/locales/ru.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Не удалось восстановить беседу.",
'sp.history.changed': "URL страницы изменился.",
'sp.providers.more': 'Ещё…',
+ 'sp.provider_picker.current': 'Модель: {name}',
+ 'sp.provider_picker.none': 'Выберите модель',
"st.system_one.desc_html": "Дополнительная проверка запланированных наблюдений и завершения задач.",
"st.system_one.enabled.label": "Включить Jev",
"st.system_one.api_key.label": "Ключ API TypeSafe",
diff --git a/src/firefox/src/ui/locales/th.js b/src/firefox/src/ui/locales/th.js
index 328333fdd..04320b220 100644
--- a/src/firefox/src/ui/locales/th.js
+++ b/src/firefox/src/ui/locales/th.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "ไม่สามารถกู้คืนการสนทนาได้",
'sp.history.changed': "URL ของหน้าเปลี่ยนไปแล้ว",
'sp.providers.more': 'เพิ่มเติม…',
+ 'sp.provider_picker.current': 'โมเดล: {name}',
+ 'sp.provider_picker.none': 'เลือกโมเดล',
"st.system_one.desc_html": "ตรวจสอบเพิ่มเติมสำหรับการเฝ้าดูและการทำงานตามกำหนดเวลา",
"st.system_one.enabled.label": "เปิดใช้ Jev",
"st.system_one.api_key.label": "คีย์ API ของ TypeSafe",
diff --git a/src/firefox/src/ui/locales/tl.js b/src/firefox/src/ui/locales/tl.js
index 482e9d8e7..97dba37e9 100644
--- a/src/firefox/src/ui/locales/tl.js
+++ b/src/firefox/src/ui/locales/tl.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Hindi maibalik ang pag-uusap.",
'sp.history.changed': "Nagbago ang URL ng pahina.",
'sp.providers.more': 'Higit pa…',
+ 'sp.provider_picker.current': 'Modelo: {name}',
+ 'sp.provider_picker.none': 'Pumili ng modelo',
"st.system_one.desc_html": "Dagdag na pagtiyak sa nakaiskedyul na pagsubaybay at pagkumpleto ng gawain.",
"st.system_one.enabled.label": "Paganahin ang Jev",
"st.system_one.api_key.label": "TypeSafe API key",
diff --git a/src/firefox/src/ui/locales/tr.js b/src/firefox/src/ui/locales/tr.js
index 268e2f92b..abb2a9ca5 100644
--- a/src/firefox/src/ui/locales/tr.js
+++ b/src/firefox/src/ui/locales/tr.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': 'Konuşma geri yüklenemedi.',
'sp.history.changed': 'Sayfanın URL’si değişti.',
'sp.providers.more': 'Daha fazla…',
+ 'sp.provider_picker.current': 'Model: {name}',
+ 'sp.provider_picker.none': 'Model seç',
"st.system_one.desc_html": "Zamanlanmış izlemeler ve görev tamamlanması için ek doğrulama.",
"st.system_one.enabled.label": "Jev’i etkinleştir",
"st.system_one.api_key.label": "TypeSafe API anahtarı",
diff --git a/src/firefox/src/ui/locales/uk.js b/src/firefox/src/ui/locales/uk.js
index 03bf45f0d..b95b32184 100644
--- a/src/firefox/src/ui/locales/uk.js
+++ b/src/firefox/src/ui/locales/uk.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "Не вдалося відновити розмову.",
'sp.history.changed': "URL-адреса сторінки змінилася.",
'sp.providers.more': 'Більше…',
+ 'sp.provider_picker.current': 'Модель: {name}',
+ 'sp.provider_picker.none': 'Оберіть модель',
"st.system_one.desc_html": "Додаткова перевірка запланованих спостережень і завершення завдань.",
"st.system_one.enabled.label": "Увімкнути Jev",
"st.system_one.api_key.label": "Ключ API TypeSafe",
diff --git a/src/firefox/src/ui/locales/vi.js b/src/firefox/src/ui/locales/vi.js
index 5965eab6e..72ec57f68 100644
--- a/src/firefox/src/ui/locales/vi.js
+++ b/src/firefox/src/ui/locales/vi.js
@@ -44,6 +44,8 @@ export default {
'sp.history.failed': "Không thể khôi phục cuộc trò chuyện.",
'sp.history.changed': "URL của trang đã thay đổi.",
'sp.providers.more': "Thêm…",
+ 'sp.provider_picker.current': 'Mô hình: {name}',
+ 'sp.provider_picker.none': 'Chọn mô hình',
'st.providers.selected': "ĐÃ CHỌN",
'st.providers.select_for_chat': "Chọn để trò chuyện",
// Brand name: kept in English across locales.
diff --git a/src/firefox/src/ui/locales/zh.js b/src/firefox/src/ui/locales/zh.js
index 1a4bcb3fb..28470e455 100644
--- a/src/firefox/src/ui/locales/zh.js
+++ b/src/firefox/src/ui/locales/zh.js
@@ -47,6 +47,8 @@ export default {
'sp.history.failed': "无法恢复对话。",
'sp.history.changed': "页面网址已更改。",
'sp.providers.more': '更多…',
+ 'sp.provider_picker.current': '模型:{name}',
+ 'sp.provider_picker.none': '选择模型',
"st.system_one.desc_html": "为定时监测和任务完成提供额外验证。",
"st.system_one.enabled.label": "启用 Jev",
"st.system_one.api_key.label": "TypeSafe API 密钥",
diff --git a/src/firefox/src/ui/sidepanel.html b/src/firefox/src/ui/sidepanel.html
index d08f8608d..15aba7c06 100644
--- a/src/firefox/src/ui/sidepanel.html
+++ b/src/firefox/src/ui/sidepanel.html
@@ -353,9 +353,18 @@
</button>
<div class="provider-picker" id="provider-picker">
<!-- Native select kept as the value source for existing handlers.
- Closed button is text-only; brand icons show only in the open menu. -->
+ The closed button shows an engine icon, not the model's name, to
+ save toolbar room: the name is its tooltip and accessible name,
+ and the open menu marks it. Brand icons show only in the menu. -->
<select id="provider-select" class="provider-select-native" title="LLM Provider" tabindex="-1" aria-hidden="true"></select>
<button type="button" id="provider-picker-btn" class="provider-picker-btn" aria-haspopup="listbox" aria-expanded="false" aria-controls="provider-picker-menu" aria-label="LLM Provider">
+ <svg class="provider-picker-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
+ <path d="M10 4h6"/>
+ <path d="M13 4v3"/>
+ <path d="M7 7h9l2 2h2v8h-3l-2 2H9l-2-2z"/>
+ <path d="M3 11v4"/>
+ <path d="M3 13h4"/>
+ </svg>
<span class="provider-picker-label" id="provider-picker-label"></span>
<span class="provider-picker-caret" aria-hidden="true">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
diff --git a/src/firefox/src/ui/sidepanel.js b/src/firefox/src/ui/sidepanel.js
index 5734ef2ce..fab85af2c 100644
--- a/src/firefox/src/ui/sidepanel.js
+++ b/src/firefox/src/ui/sidepanel.js
@@ -7898,7 +7898,11 @@ function syncProviderPickerButton() {
|| '';
providerPickerLabel.textContent = shortLabel;
if (providerPickerBtn) {
- providerPickerBtn.title = providerSelect.selectedOptions?.[0]?.textContent || shortLabel;
+ // The button shows an icon only, so its name says which model is active.
+ const name = providerSelect.selectedOptions?.[0]?.textContent || shortLabel;
+ const label = name ? t('sp.provider_picker.current', { name }) : t('sp.provider_picker.none');
+ providerPickerBtn.title = label;
+ providerPickerBtn.setAttribute('aria-label', label);
}
if (providerPickerMenu) {
providerPickerMenu.querySelectorAll('.provider-picker-option').forEach((btn) => {
@@ -15921,6 +15925,7 @@ if (languageSelect) {
await setLocale(languageSelect.value);
applyDOMTranslations(document);
syncLanguagePicker();
+ syncProviderPickerButton();
updateInputPlaceholder();
syncSelectionScopeUi();
scheduleChatNavigationUpdate();
@@ -15928,6 +15933,7 @@ if (languageSelect) {
document.addEventListener('wb-locale-changed', () => {
languageSelect.value = getLocale();
syncLanguagePicker();
+ syncProviderPickerButton();
updateInputPlaceholder();
syncSelectionScopeUi();
scheduleChatNavigationUpdate();
diff --git a/src/firefox/styles/sidepanel.css b/src/firefox/styles/sidepanel.css
index b4ca2a6fe..d7af7e140 100644
--- a/src/firefox/styles/sidepanel.css
+++ b/src/firefox/styles/sidepanel.css
@@ -3260,7 +3260,18 @@ html[data-ui-scale="175"] .conversation-action-label {
background: transparent;
border-color: transparent;
color: var(--text-secondary);
- padding: 4px 6px;
+ gap: 2px;
+ padding: 4px 4px 4px 5px;
+}
+
+/* In the composer the picker is an engine icon: the model's name is its
+ tooltip and accessible name, so a long name never crowds the toolbar. */
+.provider-picker-icon {
+ flex: 0 0 auto;
+}
+
+.composer-toolbar .provider-picker-label {
+ display: none;
}
.composer-toolbar .provider-picker-btn:hover,
@@ -3281,23 +3292,15 @@ html[dir="rtl"] .composer-toolbar .provider-picker-menu {
}
/* Narrow panel at a large UI scale (150%/175% leave ~160-200px inside the
- composer): the model picker fills the first row next to the attach button, so
- the fixed-width controls (status, permissions, mic, send) wrap to a second row
- instead of squeezing it to a few pixels. The DOM order is unchanged, so
- keyboard focus follows the visual order. */
+ composer): if the controls do not fit on one row they wrap to a second one
+ instead of being squeezed. The DOM order is unchanged, so keyboard focus
+ follows the visual order. */
html[data-ui-scale="150"] .composer-toolbar,
html[data-ui-scale="175"] .composer-toolbar {
flex-wrap: wrap;
row-gap: 4px;
}
-html[data-ui-scale="150"] .composer-toolbar .provider-picker,
-html[data-ui-scale="175"] .composer-toolbar .provider-picker {
- /* 100% minus the 28px attach button and the 6px gap */
- flex: 1 1 calc(100% - 34px);
- max-width: none;
-}
-
#input-wrapper:focus-within {
border-color: var(--accent);
}
diff --git a/test/model-picker-icon.mjs b/test/model-picker-icon.mjs
new file mode 100644
index 000000000..e263b60cd
--- /dev/null
+++ b/test/model-picker-icon.mjs
@@ -0,0 +1,64 @@
+// The composer's model picker shows an engine icon instead of the model's
+// name; the name is its tooltip and accessible name (src/*/src/ui/sidepanel.*).
+import assert from 'node:assert/strict';
+import { readFileSync } from 'node:fs';
+import { test } from 'node:test';
+import vm from 'node:vm';
+
+const read = (build, file) => readFileSync(new URL(`../src/${build}/${file}`, import.meta.url), 'utf8');
+const extract = (source, name) => {
+ const start = source.search(new RegExp(`^function ${name}\\(`, 'm'));
+ assert.ok(start >= 0, name);
+ return source.slice(start, source.indexOf('\n}', start) + 2);
+};
+
+for (const build of ['chrome', 'firefox']) {
+ test(`${build}: the closed model picker is an engine icon`, () => {
+ const html = read(build, 'src/ui/sidepanel.html');
+ const button = html.match(/<button type="button" id="provider-picker-btn"[\s\S]*?<\/button>/)[0];
+ assert.match(button, /<svg class="provider-picker-icon"[^>]*aria-hidden="true">[\s\S]*?<\/svg>\s*<span class="provider-picker-label" id="provider-picker-label"><\/span>/,
+ 'the icon comes first, hidden from assistive technology');
+ const css = read(build, 'styles/sidepanel.css');
+ assert.match(css, /\.composer-toolbar \.provider-picker-label \{\s*display: none;\s*\}/, 'the name is not shown in the composer');
+ assert.doesNotMatch(css, /\.composer-toolbar \.provider-picker \{\s*\/\* 100% minus/, 'the picker no longer claims a whole row at large scales');
+ });
+
+ test(`${build}: the picker's tooltip and accessible name say which model is active`, async () => {
+ const en = (await import(`../src/${build}/src/ui/locales/en.js`)).default;
+ const panel = read(build, 'src/ui/sidepanel.js');
+ const attributes = {};
+ const options = [{ dataset: { value: 'openrouter' }, attrs: {}, setAttribute(k, v) { this.attrs[k] = v; } },
+ { dataset: { value: 'local' }, attrs: {}, setAttribute(k, v) { this.attrs[k] = v; } }];
+ const context = vm.createContext({
+ t: (key, params = {}) => String(en[key] || key).replace(/\{(\w+)\}/g, (_, k) => params[k] ?? ''),
+ providerSelect: { value: 'openrouter', selectedOptions: [{ textContent: 'OpenRouter · openai/gpt-6-luna' }] },
+ providerPickerLabel: { textContent: '' },
+ providerPickerLabelById: new Map([['openrouter', 'OpenRouter']]),
+ providerPickerBtn: { title: '', setAttribute(k, v) { attributes[k] = v; } },
+ providerPickerMenu: { querySelectorAll: () => options },
+ });
+ vm.runInContext(extract(panel, 'syncProviderPickerButton'), context);
+ context.syncProviderPickerButton();
+ assert.equal(context.providerPickerBtn.title, 'Model: OpenRouter · openai/gpt-6-luna');
+ assert.equal(attributes['aria-label'], 'Model: OpenRouter · openai/gpt-6-luna');
+ assert.deepEqual(options.map(option => option.attrs['aria-selected']), ['true', 'false'], 'the open menu marks it');
+ // Nothing selected yet.
+ context.providerSelect = { value: '', selectedOptions: [] };
+ context.syncProviderPickerButton();
+ assert.equal(attributes['aria-label'], 'Choose a model');
+ // A locale change renders the name again.
+ for (const handler of ['applyDOMTranslations(document);\n syncLanguagePicker();\n syncProviderPickerButton();', 'languageSelect.value = getLocale();\n syncLanguagePicker();\n syncProviderPickerButton();']) {
+ assert.ok(panel.includes(handler), handler.split('\n')[0]);
+ }
+ });
+}
+
+test('every language names the active model', async () => {
+ for (const build of ['chrome', 'firefox']) {
+ for (const code of ['en', 'tr', 'es', 'fr', 'de', 'nl', 'pt', 'pl', 'ru', 'uk', 'zh', 'ja', 'ko', 'ar', 'he', 'fa', 'hi', 'bn', 'id', 'ms', 'tl', 'th', 'vi']) {
+ const dict = (await import(`../src/${build}/src/ui/locales/${code}.js`)).default;
+ assert.match(dict['sp.provider_picker.current'] || '', /\{name\}/, `${build} ${code}`);
+ assert.ok(dict['sp.provider_picker.none'], `${build} ${code}`);
+ }
+ }
+});
diff --git a/test/sidepanel-permission-gate-ui.mjs b/test/sidepanel-permission-gate-ui.mjs
index 8e01996f1..7af8acf64 100644
--- a/test/sidepanel-permission-gate-ui.mjs
+++ b/test/sidepanel-permission-gate-ui.mjs
@@ -193,22 +193,34 @@ for (const [build, engine, api] of [['chrome', chromium, 'chrome'], ['firefox',
await page.evaluate(() => {
document.documentElement.dataset.uiScale = '175';
document.documentElement.style.setProperty('--ui-scale-zoom', '1.75');
+ // The name is only the tooltip now: a long one cannot widen the button.
document.getElementById('provider-picker-label').textContent = 'OpenRouter · a long model name';
});
const rects = await page.evaluate(() => {
const rect = (selector) => { const r = document.querySelector(selector).getBoundingClientRect(); return { left: r.left, right: r.right, top: r.top, bottom: r.bottom, width: r.width }; };
return {
picker: rect('#provider-picker-btn'),
+ icon: rect('#provider-picker-btn .provider-picker-icon'),
+ label: getComputedStyle(document.getElementById('provider-picker-label')).display,
wrapper: rect('#input-wrapper'),
- permission: rect('#btn-permission-gate'),
- mic: rect('#btn-mic'),
+ controls: [...document.querySelectorAll('.composer-toolbar > button, .composer-toolbar > .provider-picker, .composer-toolbar > .permission-gate-menu')]
+ .map((el) => { const r = el.getBoundingClientRect(); return { id: el.id || el.className, left: r.left, right: r.right, top: r.top, bottom: r.bottom, width: r.width }; })
+ .filter((r) => r.width > 0),
};
});
- // The picker keeps (nearly) the whole composer width instead of being squeezed to a few pixels.
- assert.ok(rects.picker.width >= rects.wrapper.width * 0.6, `picker stays wide (${rects.picker.width} of ${rects.wrapper.width})`);
- assert.ok(rects.permission.top >= rects.picker.bottom - 1, 'permission and mic controls sit below the picker, not on top of it');
- assert.ok(rects.mic.top >= rects.picker.bottom - 1);
- assert.ok(rects.permission.right <= rects.wrapper.right && rects.mic.right <= rects.wrapper.right, 'controls stay inside the composer');
+ assert.equal(rects.label, 'none', 'the closed picker shows no model name');
+ assert.ok(rects.icon.width > 0, 'it shows the engine icon');
+ assert.ok(rects.picker.width <= 56 * 1.75, `the picker stays an icon button (${rects.picker.width})`);
+ for (const control of rects.controls) {
+ assert.ok(control.left >= rects.wrapper.left - 1 && control.right <= rects.wrapper.right + 1, `${control.id} stays inside the composer`);
+ }
+ for (let i = 0; i < rects.controls.length; i++) {
+ for (let j = i + 1; j < rects.controls.length; j++) {
+ const a = rects.controls[i], b = rects.controls[j];
+ const overlap = Math.min(a.right, b.right) - Math.max(a.left, b.left) > 1 && Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top) > 1;
+ assert.ok(!overlap, `${a.id} and ${b.id} do not overlap`);
+ }
+ }
// No visual reordering: tabbing through the toolbar reads top-to-bottom, left-to-right.
const order = await page.evaluate(() => [...document.querySelectorAll('.composer-toolbar button:not([hidden]), .composer-toolbar [tabindex]:not([tabindex="-1"])')]
.filter((el) => el.getBoundingClientRect().width > 0)