Skip to content

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

feat: notify when plans are ready for review

Emre Sokullu7155ec76062b
diff --git a/package.json b/package.json
index 6fb0a8368..a5ecc077b 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"test:quality:relaxed-monitoring-retry": "node test/quality/relaxed-monitoring-retry-mv3.mjs",
"test:captcha:ui": "node test/captcha-settings-ui.mjs && node test/captcha-application-ui.mjs",
"test:captcha:bridge:ui": "node test/captcha-callback-bridge-ui.mjs",
+ "test:plan-notifications": "node --test test/plan-review-notifications.mjs test/attention-flash-markers.mjs",
"test:billing-notice": "node test/billing-payment-notice.mjs",
"test:provider-limits": "node test/provider-model-limits.mjs",
"test:provider-catalog": "node test/provider-catalog-integrations.mjs",
@@ -92,7 +93,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/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: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/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/trusted-field-preparation.mjs test/draftjs-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/permission-steering-wakeup.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/ask-response-scope.mjs test/ask-completion-churn.mjs test/page-feedback-policy.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/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/lifecycle-planner-digest.mjs test/lifecycle-steering-latency.mjs test/lifecycle-vision-fallback.mjs test/delivery-click-locks.mjs test/guards-steering-receipts.mjs test/terminal-user-messages.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/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/trusted-field-preparation.mjs test/draftjs-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/permission-steering-wakeup.mjs test/pure-calculation-reply.mjs test/pure-calculation-tools.mjs test/page-feedback.mjs test/page-feedback-progress.mjs test/ask-response-scope.mjs test/ask-completion-churn.mjs test/page-feedback-policy.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/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/lifecycle-planner-digest.mjs test/lifecycle-steering-latency.mjs test/lifecycle-vision-fallback.mjs test/delivery-click-locks.mjs test/guards-steering-receipts.mjs test/terminal-user-messages.mjs && npm run test:plan-notifications",
"test:shard:browser-a": "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/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/assistant-message-visibility-ui.mjs test/page-monitor-ui.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/dropdown-menu-inventory.mjs test/page-monitor-passive-progress.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-local-attribution.mjs test/monitor-lifecycle-leaks.mjs test/lifecycle-run-ui.mjs test/delivery-cdp-input.mjs test/delivery-click-ax-response-loss.mjs test/delivery-native-button-geometry.mjs test/delivery-stop-compound.mjs test/guards-control-classification.mjs",
"test:shard:browser-b1": "node test/message-recipient-upload.mjs && node --test test/message-recipient-whatsapp.mjs && node test/quality/integration-mv3.mjs --full-form && node test/quality/literal-calculate-midrun-mv3.mjs && node test/quality/ask-completion-churn-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/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/icons/plan-review.png b/src/chrome/icons/plan-review.png
new file mode 100644
index 000000000..363095407
Binary files /dev/null and b/src/chrome/icons/plan-review.png differ
diff --git a/src/chrome/src/background.js b/src/chrome/src/background.js
index f247912f7..7a6fceb9d 100644
--- a/src/chrome/src/background.js
+++ b/src/chrome/src/background.js
@@ -269,14 +269,17 @@ agent.setRunStartGuard(async (tabId, context) => {
});
const profileSync = new ProfileSyncManager(chrome.storage.local);
-async function playWatchAlert({ style = 'default' } = {}) {
+async function playWatchAlert({ style = 'default', isCurrent = () => true, planReview = null } = {}) {
const stored = await chrome.storage.local.get('notifySound');
if (stored?.notifySound === false) return { ok: true, muted: true };
+ if (!isCurrent()) return { ok: true, stale: true };
await ensureOffscreen();
+ if (!isCurrent()) return { ok: true, stale: true };
const result = await chrome.runtime.sendMessage({
target: 'offscreen-watch-audio',
action: 'play_watch_alert',
style,
+ ...(planReview ? { planReview } : {}),
});
if (result?.ok === false) throw new Error(result.error || 'Watch alert playback failed.');
return result || { ok: true };
@@ -1957,6 +1960,7 @@ const runUiJournal = new RunUiJournal({
const runUiSnapshotReads = new Map();
function beginRunUiSnapshot(tabId, requestId, metadata = {}) {
+ clearPlanReviewAttention(tabId);
runUiSnapshotReads.delete(tabId);
runUiPersistenceFailures.delete(tabId);
return runUiJournal.begin(tabId, requestId, metadata);
@@ -2089,6 +2093,7 @@ async function getRunUiSnapshot(tabId) {
}
function clearRunUiSnapshot(tabId) {
+ clearPlanReviewAttention(tabId);
runUiSnapshotReads.delete(tabId);
runUiSnapshotPersistence.cancel(tabId);
runUiJournal.clear(tabId);
@@ -2104,6 +2109,8 @@ function clearRunUiSnapshot(tabId) {
function sendAgentUpdate(tabId, requestId, type, data) {
const event = recordRunUiEvent(tabId, requestId, type, data);
if (!event) return;
+ if (type === 'plan_review') notifyPlanReview(tabId, requestId, event.data ?? data);
+ if (type === 'plan_resolved') clearPlanReviewAttention(tabId, requestId, data?.planId);
if (type === 'clarify') agent._capturePendingClarificationForUi?.(tabId, requestId, event.data ?? data, event);
chrome.runtime.sendMessage({
target: 'sidepanel',
@@ -2117,6 +2124,56 @@ function sendAgentUpdate(tabId, requestId, type, data) {
}).catch(() => {});
}
+// Alert only for newly emitted plans. Journal replay never passes through
+// this dispatcher, and each live plan can be delivered more than once.
+const planReviewAlertIds = new WeakMap();
+const planReviewAttentionByTab = new Map();
+const attentionBadgeOwners = new Map();
+
+async function clearAttentionBadge(tabId, owner) {
+ const current = attentionBadgeOwners.get(tabId);
+ if (current && current !== owner) return;
+ attentionBadgeOwners.delete(tabId);
+ flashedBadgeTabs.delete(tabId);
+ await chrome.action.setBadgeText({ tabId, text: '' });
+}
+
+function clearPlanReviewAttention(tabId, requestId = null, planId = null) {
+ const attention = planReviewAttentionByTab.get(tabId);
+ if (!attention || (requestId && attention.requestId !== requestId)
+ || (planId && attention.planId !== String(planId))) return;
+ planReviewAttentionByTab.delete(tabId);
+ void chrome.tabs.sendMessage(tabId, {
+ target: 'content', action: 'attention_flash_stop', params: { attentionId: attention.id },
+ }).catch(() => {});
+ const badgeOwner = attentionBadgeOwners.get(tabId);
+ if (attention.badge && badgeOwner?.attentionId === attention.id) {
+ void clearAttentionBadge(tabId, badgeOwner).catch(() => {});
+ }
+ if (attention.notificationId) {
+ completionNotificationFocusHandlers.delete(attention.notificationId);
+ chrome.notifications.clear(attention.notificationId, () => {});
+ }
+}
+
+function notifyPlanReview(tabId, requestId, data) {
+ const snapshot = runUiJournal.get(tabId);
+ const planId = String(data?.planId || '');
+ const isCurrent = () => !!planId && runUiJournal.get(tabId) === snapshot
+ && snapshot?.requestId === requestId && snapshot.status === 'awaiting_plan'
+ && snapshot.pendingPlanId === planId;
+ if (!isCurrent()) return;
+ let alerted = planReviewAlertIds.get(snapshot);
+ if (!alerted) planReviewAlertIds.set(snapshot, alerted = new Set());
+ if (alerted.has(planId)) return;
+ alerted.add(planId);
+ clearPlanReviewAttention(tabId);
+ const attentionId = JSON.stringify([tabId, requestId, planId]);
+ planReviewAttentionByTab.set(tabId, { id: attentionId, requestId, planId });
+ void playWatchAlert({ style: 'plan_review', isCurrent, planReview: { tabId, requestId, planId } }).catch(() => {});
+ void flashTabAttention({ tabId, success: false, reason: 'plan_review', isCurrent, attentionId }).catch(() => {});
+}
+
function sendScheduledAgentUpdate(tabId, type, data, owner) {
if (tabId == null || !owner?.jobId || !owner?.executionId) return;
const requestId = `scheduled:${owner.jobId}:${owner.executionId}`;
@@ -2349,6 +2406,7 @@ async function sendAgentRunComplete(tabId, snapshot = null) {
&& snapshot.requestId === requestId && snapshot.status === status
&& snapshot.endedAt === endedAt && snapshot.seq === seq;
if (endedAt == null || !['completed', 'stopped', 'failed', 'cancelled', 'clarification_required'].includes(status)) return;
+ clearPlanReviewAttention(tabId, snapshot.requestId);
await flushRunUiSnapshot(tabId, snapshot.requestId);
if (!isCurrent()) return;
// Live runs continue in the background even if their side panel is closed
@@ -2751,10 +2809,11 @@ chrome.tabs.onRemoved.addListener((tabId) => {
if (replay?.tabId === tabId) apiRequestReplayById.delete(id);
}
flashedBadgeTabs.delete(tabId);
+ attentionBadgeOwners.delete(tabId);
});
-// ─── Completion attention flash ─────────────────────────────────────
-// When a run settles on a background tab, the side panel asks us to make
+// ─── Completion and plan attention flash ─────────────────────────────────────
+// When a run settles or presents a plan on a background tab, make
// that tab noticeable. The preferred path blinks the page title/favicon
// via the content script; when no receiver answers (chrome:// pages, the
// Chrome Web Store, discarded tabs, …) we fall back to a per-tab toolbar
@@ -2779,22 +2838,30 @@ chrome.notifications.onClosed.addListener((notificationId) => {
completionNotificationFocusHandlers.delete(notificationId);
});
-async function showCompletionNotification(tabId, success) {
+async function showCompletionNotification(tabId, success, reason = 'completion', isCurrent = () => true) {
let tab = null;
try {
tab = await chrome.tabs.get(tabId);
} catch { return; }
- const message = tab?.title || tab?.url || 'A background task finished.';
+ if (!isCurrent()) return;
+ const planReview = reason === 'plan_review';
+ const attention = planReview ? planReviewAttentionByTab.get(tabId) : null;
+ const message = tab?.title || tab?.url || (planReview ? 'A plan is waiting for your review.' : 'A background task finished.');
await new Promise((resolve) => {
try {
chrome.notifications.create({
type: 'basic',
- iconUrl: chrome.runtime.getURL('icons/icon48.png'),
- title: `WebBrain — ${success ? 'Task finished' : 'Task needs attention'}`,
+ iconUrl: chrome.runtime.getURL(planReview ? 'icons/plan-review.png' : 'icons/icon48.png'),
+ title: planReview ? 'WebBrain — ⚠️ Plan ready for review' : `WebBrain — ${success ? 'Task finished' : 'Task needs attention'}`,
message,
silent: true,
}, (notificationId) => {
if (!notificationId) return resolve();
+ if (!isCurrent()) {
+ chrome.notifications.clear(notificationId, () => {});
+ return resolve();
+ }
+ if (attention) attention.notificationId = notificationId;
setTimeout(() => {
completionNotificationFocusHandlers.delete(notificationId);
chrome.notifications.clear(notificationId, () => {});
@@ -2816,6 +2883,7 @@ async function showCompletionNotification(tabId, success) {
chrome.tabs.onActivated.addListener(({ tabId } = {}) => {
flashedBadgeTabs.delete(tabId);
+ attentionBadgeOwners.delete(tabId);
syncPdfContextMenuForActiveTab().catch(() => {});
// Clear unconditionally: the Set only lives in service-worker memory, but
// a tab-scoped badge survives MV3 worker suspension/restarts. Resetting
@@ -2836,6 +2904,7 @@ chrome.windows.onFocusChanged.addListener(async (windowId) => {
if (!Number.isInteger(activeTabId)) return;
setPdfContextMenuVisibility(pdfResponseTabs.has(activeTabId) || isPdfUrl(activeTab?.url));
flashedBadgeTabs.delete(activeTabId);
+ attentionBadgeOwners.delete(activeTabId);
await chrome.action.setBadgeText({ tabId: activeTabId, text: '' });
} catch { /* best-effort cleanup */ }
});
@@ -2865,12 +2934,17 @@ async function maybeFlashScheduledTerminalEvent(_tabId, type, data) {
}
async function flashTabAttention(msg) {
+ const isCurrent = typeof msg?.isCurrent === 'function' ? msg.isCurrent : () => true;
try {
const stored = await chrome.storage.local.get('completionFlashTab');
if (stored?.completionFlashTab === false) return { ok: true, mode: 'disabled' };
} catch { /* setting defaults to on */ }
+ if (!isCurrent()) return { ok: true, mode: 'stale' };
const tabId = Number(msg?.tabId);
const success = msg?.success !== false;
+ const reason = msg?.reason === 'plan_review' ? 'plan_review' : 'completion';
+ const planReview = reason === 'plan_review';
+ const attentionId = String(msg?.attentionId || '');
if (!Number.isInteger(tabId) || tabId < 0) {
return { ok: false, error: 'flash_tab_attention requires a valid tabId.' };
}
@@ -2879,6 +2953,7 @@ async function flashTabAttention(msg) {
} catch {
return { ok: false, error: `Tab ${tabId} no longer exists.` };
}
+ if (!isCurrent()) return { ok: true, mode: 'stale' };
// Discarded/unloaded tabs and pages whose content script declines to
// blink (document already visible) both fall through to the badge
// fallback — which works without touching the page and survives until
@@ -2888,13 +2963,24 @@ async function flashTabAttention(msg) {
const response = await chrome.tabs.sendMessage(tabId, {
target: 'content',
action: 'attention_flash_start',
- params: { success },
+ params: { success, reason, attentionId },
});
flashAccepted = response?.started === true;
} catch {
flashAccepted = false;
}
- if (flashAccepted) return { ok: true, mode: 'title-flash' };
+ if (!isCurrent()) {
+ if (flashAccepted && attentionId) {
+ void chrome.tabs.sendMessage(tabId, {
+ target: 'content', action: 'attention_flash_stop', params: { attentionId },
+ }).catch(() => {});
+ }
+ return { ok: true, mode: 'stale' };
+ }
+ if (flashAccepted) {
+ if (planReview) await showCompletionNotification(tabId, false, reason, isCurrent);
+ return { ok: true, mode: planReview ? 'title-flash+notification' : 'title-flash' };
+ }
// No content-script receiver (or it declined) — fall back to a per-tab
// toolbar badge. But re-check first whether the user is actually looking
// at the tab: "active" only means selected within its own window, so an
@@ -2913,17 +2999,30 @@ async function flashTabAttention(msg) {
} catch {
return { ok: false, error: `Tab ${tabId} no longer exists.` };
}
+ if (!isCurrent()) return { ok: true, mode: 'stale' };
if (tabIsWatched) return { ok: true, mode: 'skipped-tab-watched' };
+ const badgeOwner = { attentionId };
+ attentionBadgeOwners.set(tabId, badgeOwner);
+ const attention = planReviewAttentionByTab.get(tabId);
+ if (attention?.id === attentionId) attention.badge = true;
try {
- await chrome.action.setBadgeText({ tabId, text: success ? '✓' : '!' });
+ await chrome.action.setBadgeText({ tabId, text: planReview ? '⚠' : success ? '✓' : '!' });
+ if (!isCurrent()) {
+ await clearAttentionBadge(tabId, badgeOwner);
+ return { ok: true, mode: 'stale' };
+ }
await chrome.action.setBadgeBackgroundColor({
tabId,
- color: success ? '#22c55e' : '#ef4444',
+ color: planReview ? '#f59e0b' : success ? '#22c55e' : '#ef4444',
});
+ if (!isCurrent()) {
+ await clearAttentionBadge(tabId, badgeOwner);
+ return { ok: true, mode: 'stale' };
+ }
flashedBadgeTabs.add(tabId);
// The badge itself is invisible while another tab is selected — pair it
// with a system notification so the completion is discoverable anyway.
- await showCompletionNotification(tabId, success);
+ await showCompletionNotification(tabId, success, reason, isCurrent);
return { ok: true, mode: 'badge+notification' };
} catch (error) {
return { ok: false, error: String(error?.message || error) };
@@ -2933,6 +3032,19 @@ async function flashTabAttention(msg) {
/**
* Central message handler.
*/
+function isCurrentPlanReviewAudio(message, sender) {
+ if (sender?.id !== chrome.runtime.id
+ || sender?.url !== chrome.runtime.getURL('src/offscreen/offscreen.html')) return false;
+ const snapshot = runUiJournal.get(message?.tabId);
+ return !!message?.planId && snapshot?.requestId === message.requestId
+ && snapshot.status === 'awaiting_plan' && snapshot.pendingPlanId === message.planId;
+}
+
+chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
+ if (message?.target !== 'background-plan-audio' || message?.action !== 'is_current') return;
+ sendResponse({ current: isCurrentPlanReviewAudio(message, sender) });
+});
+
chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
if (msg.target !== 'background') return;
diff --git a/src/chrome/src/content/content.js b/src/chrome/src/content/content.js
index 40491b123..ef6ae5c66 100644
--- a/src/chrome/src/content/content.js
+++ b/src/chrome/src/content/content.js
@@ -8433,10 +8433,10 @@
'wait_for_element': () => waitForElement(msg.params || {}),
'get_selection': () => ({ text: window.getSelection()?.toString() || '' }),
'find_text': () => findText(msg.params || {}),
- // ── Completion attention flash (tab title/favicon blink) ─────────
+ // ── Completion / plan attention flash (tab title/favicon blink) ──
'attention_flash_start': () => {
try {
- return { success: true, started: startAttentionFlash() };
+ return { success: true, started: startAttentionFlash(msg.params || {}) };
} catch (error) {
if (error?.code === 'page_feedback_pending') throw error;
return { success: false, error: error?.message || String(error) };
@@ -8444,7 +8444,7 @@
},
'attention_flash_stop': () => {
try {
- stopAttentionFlash();
+ stopAttentionFlash(msg.params || {});
return { success: true };
} catch (error) {
if (error?.code === 'page_feedback_pending') throw error;
@@ -10337,11 +10337,11 @@
});
// ─── Tab attention flash ────────────────────────────────────────────
- // When a run finishes on a tab the user has navigated away from, the side
- // panel asks this page to blink its title and favicon so the finished tab
+ // When a run finishes or a plan needs review on a tab the user has left,
+ // the background asks this page to blink its title and favicon so the tab
// can be found at a glance. With many tabs open the strip only shows the
// favicon, so the favicon itself alternates between the site's own icons
- // and a bell alert icon — swapping the site's <link> hrefs outright,
+ // and an alert icon — swapping the site's <link> hrefs outright,
// because an appended icon link loses to favicons the page injects later.
// Blinking stops when the tab becomes visible, after
// ATTENTION_FLASH_TIMEOUT_MS, or on an explicit stop message.
@@ -10356,12 +10356,15 @@
const ATTENTION_FLASH_INTERVAL_MS = 700;
const ATTENTION_FLASH_TIMEOUT_MS = 300000;
const ATTENTION_FLASH_MARKER = '\u{1F514} ';
+ const ATTENTION_FLASH_PLAN_MARKER = '\u26A0\uFE0F ';
+ let attentionFlashMarker = ATTENTION_FLASH_MARKER;
+ let attentionFlashId = null;
let attentionFlashTimer = null;
let attentionFlashTimeout = null;
let attentionFlashOnVisible = null;
// Exact title string this flash last wrote — ownership marker. Stripping
// by prefix alone would eat a page's own title that legitimately starts
- // with the same bell character.
+ // with the same alert character.
let attentionFlashOwnTitle = null;
// Favicon blink state. Every icon <link> present when the flash started is
// remembered with its original href; the alert data URL replaces it each
@@ -10382,7 +10385,7 @@
ctx.font = '52px sans-serif';
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
- ctx.fillText(ATTENTION_FLASH_MARKER.trim(), 32, 36);
+ ctx.fillText(attentionFlashMarker.trim(), 32, 36);
}
return canvas.toDataURL('image/png');
} catch {
@@ -10392,8 +10395,8 @@
function attentionFlashStripMarker(title) {
const text = String(title ?? '');
- return text.startsWith(ATTENTION_FLASH_MARKER)
- ? text.slice(ATTENTION_FLASH_MARKER.length)
+ return text.startsWith(attentionFlashMarker)
+ ? text.slice(attentionFlashMarker.length)
: text;
}
@@ -10455,7 +10458,11 @@
} catch { /* favicon swap is best-effort */ }
}
- function stopAttentionFlash() {
+ function stopAttentionFlash(params = {}) {
+ // A delayed cancellation belongs only to the alert that requested it.
+ // Internal stops omit the ID and always clear the current flash.
+ if (params?.attentionId != null && String(params.attentionId) !== attentionFlashId) return;
+ attentionFlashId = null;
if (attentionFlashTimer) {
clearInterval(attentionFlashTimer);
attentionFlashTimer = null;
@@ -10494,11 +10501,15 @@
attentionFlashAlertUrl = null;
}
- function startAttentionFlash() {
+ function startAttentionFlash(params = {}) {
if (typeof document === 'undefined') return false;
stopAttentionFlash();
+ // Restore the previous flash with its own marker before changing reason.
+ attentionFlashMarker = params?.reason === 'plan_review'
+ ? ATTENTION_FLASH_PLAN_MARKER : ATTENTION_FLASH_MARKER;
// Already looking at the page — nothing to draw attention to.
if (document.visibilityState === 'visible') return false;
+ attentionFlashId = params?.attentionId == null ? null : String(params.attentionId);
attentionFlashOnVisible = () => {
if (document.visibilityState === 'visible') stopAttentionFlash();
};
@@ -10509,7 +10520,7 @@
// minutes) and Memory Saver may freeze the tab outright, so the phase
// is derived from wall-clock time instead of a boolean flip: however
// sparse or late the wake-ups land, each one shows the correct side of
- // the blink and the bell is on immediately at start.
+ // the blink and the alert is on immediately at start.
const attentionFlashEpoch = Date.now();
const applyAttentionTick = () => {
const flashing = Math.floor((Date.now() - attentionFlashEpoch) / ATTENTION_FLASH_INTERVAL_MS) % 2 === 0;
@@ -10522,9 +10533,9 @@
// Only the marked phase is extension-owned — during the quiet phase
// the title belongs to the page even though we just wrote it, so it
// must never be stripped on stop.
- attentionFlashOwnTitle = flashing ? `${ATTENTION_FLASH_MARKER}${base}` : null;
+ attentionFlashOwnTitle = flashing ? `${attentionFlashMarker}${base}` : null;
document.title = flashing ? attentionFlashOwnTitle : base;
- // The favicon blinks with the title: the bell alert icon replaces the
+ // The favicon blinks with the title: the alert icon replaces the
// site's own icons during the marked phase and they return during the
// quiet one — with many tabs open the favicon is all that shows.
attentionFlashToggleFavicon(flashing);
diff --git a/src/chrome/src/offscreen/watch-audio.js b/src/chrome/src/offscreen/watch-audio.js
index 957e7bf29..f33bfb417 100644
--- a/src/chrome/src/offscreen/watch-audio.js
+++ b/src/chrome/src/offscreen/watch-audio.js
@@ -1,8 +1,7 @@
/**
- * Audio host for /watch alerts. The scheduler persists the event key before
- * asking this offscreen document to play, so restarts cannot double-play the
- * same event. These generated tones are intentionally distinct from the
- * ordinary task-completion mp3 used by the side panel.
+ * Audio host for /watch and plan-review alerts. The scheduler persists watch
+ * event keys before playback; plan alerts recheck their live owner below.
+ * These generated tones differ from the ordinary task-completion mp3.
*/
(() => {
@@ -10,6 +9,12 @@
let playback = Promise.resolve();
function patternFor(style) {
+ if (style === 'plan_review') {
+ return [
+ { at: 0, duration: 0.14, frequency: 880 },
+ { at: 0.2, duration: 0.2, frequency: 660 },
+ ];
+ }
if (style === 'short') {
return [{ at: 0, duration: 0.12, frequency: 740 }];
}
@@ -27,11 +32,19 @@
];
}
- async function play(style) {
+ async function play(style, planReview = null) {
const AudioContextCtor = globalThis.AudioContext || globalThis.webkitAudioContext;
if (!AudioContextCtor) throw new Error('Web Audio is unavailable in the offscreen document.');
if (!audioContext || audioContext.state === 'closed') audioContext = new AudioContextCtor();
if (audioContext.state === 'suspended') await audioContext.resume();
+ // A plan can be approved while another sound is playing or this audio
+ // context is resuming. Ask its background owner immediately before tones.
+ if (planReview) {
+ const result = await chrome.runtime.sendMessage({
+ ...planReview, target: 'background-plan-audio', action: 'is_current',
+ });
+ if (result?.current !== true) return;
+ }
const pattern = patternFor(style);
const start = audioContext.currentTime + 0.02;
@@ -55,7 +68,7 @@
chrome.runtime.onMessage.addListener((message, _sender, sendResponse) => {
if (message?.target !== 'offscreen-watch-audio' || message?.action !== 'play_watch_alert') return;
- playback = playback.catch(() => {}).then(() => play(message.style));
+ playback = playback.catch(() => {}).then(() => play(message.style, message.planReview));
playback.then(
() => sendResponse({ ok: true }),
(error) => sendResponse({ ok: false, error: String(error?.message || error) }),
diff --git a/src/chrome/src/ui/locales/ar.js b/src/chrome/src/ui/locales/ar.js
index 29002557c..11c36fde4 100644
--- a/src/chrome/src/ui/locales/ar.js
+++ b/src/chrome/src/ui/locales/ar.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'يحفظ أيضًا المطالبات والرسائل ومخططات الأدوات الكاملة لكل طلب نموذج لغوي بدلاً من الملخصات الخالية من المحتوى، ويحتفظ بما يصل إلى 200 كيلوبايت من كل نتيجة أداة. يتيح تصحيح الأخطاء العميق وإعادة بناء الطلبات. معطّل افتراضيًا لأنه يكتب محتوى محادثتك محليًا ويستهلك مساحة أكبر بكثير. يتطلب تفعيل تسجيل التتبعات.',
'st.display.allow_local_network.label': 'السماح للوكيل بالوصول إلى الشبكة المحلية',
'st.display.allow_local_network.desc': 'يسمح لأداة fetch_url للوكيل بالوصول إلى عناوين loopback (127.0.0.1، localhost) وعناوين RFC1918 الخاصة (10.x، 192.168.x، 172.16–31.x). مفيد لخوادم التطوير المحلية، وأدوات الإنترانت، وواجهات API ذاتية الاستضافة. مُعطَّل افتراضيًا. عند تعطيله، تُحظر عناوين IP الخاصة وloopback المكتوبة في URL وأسماء localhost. لا يتم فحص تحليل DNS، لذا قد تصل أسماء أخرى إلى عناوين محلية. تظل عناوين IP الحرفية لبيانات السحابة (169.254.169.254) وأسماء بيانات السحابة المدرجة أو *.internal/*.local محظورة حتى عند التفعيل.',
- 'st.display.notify_sound.label': 'صوت الإكمال',
- 'st.display.notify_sound.desc': 'تشغيل نغمة قصيرة في اللوحة الجانبية عندما ينهي الوكيل مهمته. لا تُشغَّل إذا ألغيت التشغيل.',
+ 'st.display.notify_sound.label': "أصوات الإشعارات",
+ 'st.display.notify_sound.desc': "تشغيل صوت مميز للخطط التي تنتظر المراجعة ونغمة قصيرة عند إكمال مهمة أو طلب توضيح. لا يصدر صوت عند إلغاء التشغيل.",
'st.display.completion_confetti.label': 'قصاصات احتفال عند الإكمال',
'st.display.completion_confetti.desc': 'يعرض حركة قصيرة لقصاصات احتفال من الأعلى عند اكتمال المهمة بنجاح. مفعّل افتراضيًا؛ أوقفه إذا أردت نهاية أهدأ.',
- 'st.display.completion_flash_tab.label': "وميض التبويب المكتمل",
- 'st.display.completion_flash_tab.desc': "عند انتهاء مهمة في تبويب غادرته، يومض عنوان ذلك التبويب وأيقونته لتعرف بنظرة واحدة أي تبويب اكتمل.",
+ 'st.display.completion_flash_tab.label': "وميض التبويبات للتنبيهات",
+ 'st.display.completion_flash_tab.desc': "يومض عنوان التبويب في الخلفية وأيقونته عندما تكون الخطة جاهزة للمراجعة أو تنتهي مهمة. تستخدم الخطط الأيقونة ⚠️.",
'st.display.max_steps.label': 'الحدّ الأقصى لخطوات الوكيل',
'st.display.max_steps.desc': 'العدد الأقصى لخطوات استخدام الأدوات في الرسالة الواحدة. القيم الأعلى تتيح مهامًا متعدّدة الخطوات أكثر تعقيدًا، لكنها قد تستهلك مزيدًا من الرموز. اضبط شريط التمرير على ∞ لخطوات غير محدودة.',
'st.display.traces_link.label': 'التتبّعات',
diff --git a/src/chrome/src/ui/locales/bn.js b/src/chrome/src/ui/locales/bn.js
index 45f500431..4e28e14e5 100644
--- a/src/chrome/src/ui/locales/bn.js
+++ b/src/chrome/src/ui/locales/bn.js
@@ -704,12 +704,12 @@ export default {
'st.display.scheduled_tasks.desc': "WebBrain কে পিছিয়ে যাওয়া কাজ পুনরায় শুরু করতে এবং ব্রাউজার অ্যালার্ম ব্যবহার করে ওয়ান-শট বা পুনরাবৃত্ত নির্ধারিত কাজ চালানোর অনুমতি দিন। ডিফল্টরূপে চালু",
'st.display.scheduled_confirm.label': "নির্ধারিত ফলাফলমূলক কর্ম নিশ্চিত করুন",
'st.display.scheduled_confirm.desc': "যখন চালু থাকে, তখনও অনুপস্থিত নির্ধারিত রানগুলি ফলস্বরূপ ক্রিয়াকলাপের আগে অনুমতির জন্য থামে। আপনি যদি সেই প্রম্পট ছাড়া কাজ করার জন্য নির্ধারিত কাজগুলিতে বিশ্বাস করেন তবেই বন্ধ করুন৷",
- 'st.display.notify_sound.label': "সমাপ্তির শব্দ",
- 'st.display.notify_sound.desc': "যখন এজেন্ট একটি কাজ শেষ করে তখন পাশের প্যানেলে একটি ছোট চাইম বাজান। আপনি রান বাতিল করলে খেলবেন না।",
+ 'st.display.notify_sound.label': "বিজ্ঞপ্তির শব্দ",
+ 'st.display.notify_sound.desc': "পর্যালোচনার অপেক্ষায় থাকা পরিকল্পনার জন্য আলাদা শব্দ এবং কাজ শেষ হলে বা ব্যাখ্যা চাওয়া হলে ছোট একটি ঘণ্টাধ্বনি বাজান। রান বাতিল করলে কোনো শব্দ বাজবে না।",
'st.display.completion_confetti.label': "সমাপ্তি কনফেটি",
'st.display.completion_confetti.desc': "একটি টাস্ক সফলভাবে সম্পন্ন হলে উপরে থেকে একটি ছোট কনফেটি অ্যানিমেশন ড্রপ করুন। ডিফল্টরূপে চালু; আপনি একটি শান্ত ফিনিস পছন্দ যদি এটি বন্ধ.",
- 'st.display.completion_flash_tab.label': "সম্পন্ন ট্যাব ঝলকান",
- 'st.display.completion_flash_tab.desc': "আপনি যে ট্যাব ছেড়ে এসেছেন সেখানে কোনো কাজ শেষ হলে সেই ট্যাবের শিরোনাম ও ফ্যাভিকন ঝলকায়, যাতে এক নজরে বোঝা যায় কোনটি শেষ হয়েছে।",
+ 'st.display.completion_flash_tab.label': "সতর্কতার জন্য ট্যাব ঝলকান",
+ 'st.display.completion_flash_tab.desc': "কোনো পরিকল্পনা পর্যালোচনার জন্য প্রস্তুত হলে বা কাজ শেষ হলে পটভূমির ট্যাবের শিরোনাম ও আইকন ঝলকায়। পরিকল্পনার জন্য ⚠️ আইকন ব্যবহার করা হয়।",
'st.display.max_steps.label': "সর্বোচ্চ এজেন্ট পদক্ষেপ",
'st.display.max_steps.desc': "প্রতি বার্তা প্রতি এজেন্ট সর্বোচ্চ সংখ্যক টুল-ব্যবহারের পদক্ষেপ নিতে পারে। উচ্চতর মানগুলি আরও জটিল বহু-পদক্ষেপের কাজগুলিকে অনুমতি দেয় তবে আরও টোকেন ব্যবহার করতে পারে৷ সীমাহীন পদক্ষেপের জন্য স্লাইডারটিকে ∞ এ সেট করুন।",
'st.display.request_timeout.label': "LLM অনুরোধের সময়সীমা",
diff --git a/src/chrome/src/ui/locales/de.js b/src/chrome/src/ui/locales/de.js
index ddb9d84b1..a9856c11a 100644
--- a/src/chrome/src/ui/locales/de.js
+++ b/src/chrome/src/ui/locales/de.js
@@ -701,12 +701,12 @@ export default {
'st.display.scheduled_tasks.desc': 'Ermöglicht es WebBrain, verschobene Arbeit fortzusetzen und einmalige oder wiederkehrende geplante Aufgaben über Browser-Alarms auszuführen.',
'st.display.scheduled_confirm.label': 'Geplante bedeutsame Aktionen bestätigen',
'st.display.scheduled_confirm.desc': 'Wenn aktiviert, halten auch unbeaufsichtigte geplante Durchläufe vor bedeutsamen Aktionen für eine Berechtigung an.',
- 'st.display.notify_sound.label': 'Abschlussklang',
- 'st.display.notify_sound.desc': 'Spielt einen kurzen Klang in der Seitenleiste, wenn der Agent eine Aufgabe abschließt.',
+ 'st.display.notify_sound.label': "Benachrichtigungstöne",
+ 'st.display.notify_sound.desc': "Spielt einen eigenen Ton für Pläne, die auf Prüfung warten, und einen kurzen Klang beim Abschluss oder bei Rückfragen. Beim Abbrechen eines Durchlaufs ertönt kein Ton.",
'st.display.completion_confetti.label': 'Abschluss-Konfetti',
'st.display.completion_confetti.desc': 'Lässt eine kurze Konfetti-Animation von oben fallen, wenn eine Aufgabe erfolgreich abgeschlossen wird.',
- 'st.display.completion_flash_tab.label': "Fertigen Tab aufblinken lassen",
- 'st.display.completion_flash_tab.desc': "Wenn eine Aufgabe in einem Tab abgeschlossen wird, den du verlassen hast, blinkt der Titel und das Favicon dieses Tabs, damit du auf einen Blick erkennst, welcher Tab fertig ist.",
+ 'st.display.completion_flash_tab.label': "Tabs bei Hinweisen blinken lassen",
+ 'st.display.completion_flash_tab.desc': "Lässt Titel und Symbol eines Hintergrund-Tabs blinken, wenn ein Plan zur Prüfung bereitsteht oder eine Aufgabe abgeschlossen ist. Pläne verwenden das Symbol ⚠️.",
'st.display.max_steps.label': 'Maximale Agent-Schritte',
'st.display.max_steps.desc': 'Maximale Anzahl an Tool-Schritten, die der Agent pro Nachricht ausführen kann. Höhere Werte ermöglichen komplexere mehrstufige Aufgaben, können aber mehr Token verbrauchen. Stellen Sie den Schieberegler für unbegrenzte Schritte auf ∞.',
'st.display.request_timeout.label': 'LLM-Anfrage-Timeout',
diff --git a/src/chrome/src/ui/locales/en.js b/src/chrome/src/ui/locales/en.js
index b907710b4..bebe42794 100644
--- a/src/chrome/src/ui/locales/en.js
+++ b/src/chrome/src/ui/locales/en.js
@@ -710,12 +710,12 @@ export default {
'st.display.scheduled_tasks.desc': 'Allow WebBrain to resume deferred work and run one-shot or recurring scheduled tasks using browser alarms. On by default.',
'st.display.scheduled_confirm.label': 'Confirm scheduled consequential actions',
'st.display.scheduled_confirm.desc': 'When on, unattended scheduled runs still stop for permission before consequential actions. Turn off only if you trust scheduled tasks to act without those prompts.',
- 'st.display.notify_sound.label': 'Completion sound',
- 'st.display.notify_sound.desc': 'Play a short chime in the side panel when the agent finishes a task. Won\'t play if you cancel the run.',
+ 'st.display.notify_sound.label': "Notification sounds",
+ 'st.display.notify_sound.desc': "Play a distinct sound for plans awaiting review and a short chime for completion or clarification. No sound when you cancel a run.",
'st.display.completion_confetti.label': 'Completion confetti',
'st.display.completion_confetti.desc': 'Drop a short confetti animation from the top when a task completes successfully. On by default; turn it off if you prefer a calmer finish.',
- 'st.display.completion_flash_tab.label': 'Flash finished tab',
- 'st.display.completion_flash_tab.desc': 'When a task finishes on a tab you\'ve navigated away from, blink that tab\'s title and favicon so you can find it at a glance.',
+ 'st.display.completion_flash_tab.label': "Flash tabs for alerts",
+ 'st.display.completion_flash_tab.desc': "Blink a background tab’s title and icon when a plan is ready for review or a task finishes. Plans use a ⚠️ icon.",
'st.display.max_steps.label': 'Max Agent Steps',
'st.display.max_steps.desc': 'Maximum number of tool-use steps the agent can take per message. Higher values allow more complex multi-step tasks but may use more tokens. Set the slider to ∞ for unlimited steps.',
'st.display.request_timeout.label': 'LLM request timeout',
diff --git a/src/chrome/src/ui/locales/es.js b/src/chrome/src/ui/locales/es.js
index a460eb998..446cf6221 100644
--- a/src/chrome/src/ui/locales/es.js
+++ b/src/chrome/src/ui/locales/es.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'También guarda los prompts, mensajes y esquemas de herramientas completos de cada solicitud LLM en lugar de resúmenes sin contenido, y conserva hasta 200 KB de cada resultado de herramienta. Permite depuración profunda y reconstrucción de solicitudes. Desactivado por defecto porque escribe el contenido de tu conversación localmente y usa mucho más disco. Requiere que Grabar trazas esté activado.',
'st.display.allow_local_network.label': 'Permitir al agente acceder a la red local',
'st.display.allow_local_network.desc': 'Permite que la herramienta fetch_url del agente alcance direcciones loopback (127.0.0.1, localhost) y privadas/RFC1918 (10.x, 192.168.x, 172.16–31.x). Útil para servidores de desarrollo locales, herramientas de intranet o APIs auto-alojadas. Desactivado por defecto. Al desactivarlo, se bloquean las URL escritas con IP privadas o de loopback y nombres localhost. No se comprueba la resolución DNS, por lo que otros nombres de host pueden alcanzar direcciones locales. Las IP literales de metadatos de la nube (169.254.169.254) y los nombres de metadatos incluidos en la lista o *.internal/*.local siguen bloqueados incluso al activarlo.',
- 'st.display.notify_sound.label': 'Sonido al terminar',
- 'st.display.notify_sound.desc': 'Reproduce un tono corto en el panel lateral cuando el agente termina una tarea. No suena si cancelas la ejecución.',
+ 'st.display.notify_sound.label': "Sonidos de notificación",
+ 'st.display.notify_sound.desc': "Reproduce un sonido distinto para los planes pendientes de revisión y un tono corto al terminar una tarea o pedir una aclaración. No suena si cancelas la ejecución.",
'st.display.completion_confetti.label': 'Confeti al completar',
'st.display.completion_confetti.desc': 'Muestra una breve animación de confeti desde arriba cuando una tarea termina correctamente. Activado de forma predeterminada; desactívalo si prefieres un final más discreto.',
- 'st.display.completion_flash_tab.label': "Hacer parpadear la pestaña terminada",
- 'st.display.completion_flash_tab.desc': "Cuando una tarea finaliza en una pestaña que has abandonado, el título y el favicon de esa pestaña parpadean para que veas de un vistazo cuál terminó.",
+ 'st.display.completion_flash_tab.label': "Hacer parpadear las pestañas con avisos",
+ 'st.display.completion_flash_tab.desc': "El título y el icono de una pestaña en segundo plano parpadean cuando un plan está listo para revisar o una tarea termina. Los planes usan el icono ⚠️.",
'st.display.max_steps.label': 'Pasos máximos del agente',
'st.display.max_steps.desc': 'Número máximo de pasos con herramientas que el agente puede dar por mensaje. Valores más altos permiten tareas más complejas pero pueden consumir más tokens. Pon el control en ∞ para pasos ilimitados.',
'st.display.traces_link.label': 'Trazas',
diff --git a/src/chrome/src/ui/locales/fa.js b/src/chrome/src/ui/locales/fa.js
index 7e03881ad..be17c7200 100644
--- a/src/chrome/src/ui/locales/fa.js
+++ b/src/chrome/src/ui/locales/fa.js
@@ -704,12 +704,12 @@ export default {
'st.display.scheduled_tasks.desc': "به WebBrain اجازه دهید کار معوق را از سر بگیرد و کارهای برنامه ریزی شده یکباره یا تکراری را با استفاده از آلارم های مرورگر اجرا کند. به طور پیش فرض روشن است.",
'st.display.scheduled_confirm.label': "اقدامات بعدی برنامه ریزی شده را تأیید کنید",
'st.display.scheduled_confirm.desc': "وقتی روشن است، اجراهای برنامه‌ریزی‌شده بدون نظارت همچنان برای دریافت مجوز قبل از اقدامات بعدی متوقف می‌شوند. فقط در صورتی خاموش کنید که به کارهای برنامه ریزی شده اعتماد دارید که بدون آن اعلان ها عمل کنند.",
- 'st.display.notify_sound.label': "صدای تکمیل",
- 'st.display.notify_sound.desc': "هنگامی که نماینده یک کار را تمام کرد، یک زنگ کوتاه در پانل کناری پخش کنید. اگر اجرا را لغو کنید، پخش نمی‌شود.",
+ 'st.display.notify_sound.label': "صداهای اعلان",
+ 'st.display.notify_sound.desc': "برای طرح‌های منتظر بررسی، صدایی متمایز و هنگام تکمیل کار یا درخواست توضیح، زنگی کوتاه پخش می‌کند. با لغو اجرا صدایی پخش نمی‌شود.",
'st.display.completion_confetti.label': "کانفتی تکمیل",
'st.display.completion_confetti.desc': "هنگامی که یک کار با موفقیت انجام شد، یک انیمیشن کوتاه کنفتی را از بالا رها کنید. به طور پیش فرض روشن؛ اگر رنگ آرام تری را ترجیح می دهید آن را خاموش کنید.",
- 'st.display.completion_flash_tab.label': "چشمک زدن تب پایان‌یافته",
- 'st.display.completion_flash_tab.desc': "وقتی کاری در تبی که آن را رها کرده‌اید به پایان می‌رسد، عنوان و نماد آن تب چشمک می‌زند تا یک نگاه مشخص شود کدام تب تمام شده است.",
+ 'st.display.completion_flash_tab.label': "چشمک زدن تب‌ها برای اعلان‌ها",
+ 'st.display.completion_flash_tab.desc': "وقتی طرحی آماده بررسی می‌شود یا کاری به پایان می‌رسد، عنوان و نماد تب پس‌زمینه چشمک می‌زنند. برای طرح‌ها از نماد ⚠️ استفاده می‌شود.",
'st.display.max_steps.label': "Max Agent Steps",
'st.display.max_steps.desc': "حداکثر تعداد مراحل استفاده از ابزار که نماینده می تواند در هر پیام بردارد. مقادیر بالاتر به وظایف چند مرحله ای پیچیده تری اجازه می دهد، اما ممکن است از نشانه های بیشتری استفاده کند. نوار لغزنده را برای مراحل نامحدود روی ∞ تنظیم کنید.",
'st.display.request_timeout.label': "مهلت درخواست LLM",
diff --git a/src/chrome/src/ui/locales/fr.js b/src/chrome/src/ui/locales/fr.js
index bc47b3c0d..c4a6b72ed 100644
--- a/src/chrome/src/ui/locales/fr.js
+++ b/src/chrome/src/ui/locales/fr.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Conserve aussi les prompts, messages et schémas d\'outils complets de chaque requête LLM au lieu de résumés sans contenu, et garde jusqu\'à 200 Ko de chaque résultat d\'outil. Permet un débogage approfondi et la reconstruction des requêtes. Désactivé par défaut car cela écrit localement le contenu de votre conversation et utilise beaucoup plus d\'espace disque. Nécessite que l\'enregistrement des traces soit activé.',
'st.display.allow_local_network.label': 'Autoriser l\'agent à accéder au réseau local',
'st.display.allow_local_network.desc': 'Permet à l\'outil fetch_url de l\'agent d\'atteindre les adresses loopback (127.0.0.1, localhost) et privées/RFC1918 (10.x, 192.168.x, 172.16–31.x). Utile pour les serveurs de dev locaux, outils intranet ou API auto-hébergées. Désactivé par défaut. Lorsqu’il est désactivé, les URL contenant une adresse IP privée ou de boucle locale écrite directement et les noms localhost sont bloqués. La résolution DNS n’est pas vérifiée : d’autres noms peuvent encore atteindre des adresses locales. Les adresses IP littérales de métadonnées cloud (169.254.169.254) et les noms de métadonnées répertoriés ou *.internal/*.local restent bloqués même lorsqu’il est activé.',
- 'st.display.notify_sound.label': 'Son de fin',
- 'st.display.notify_sound.desc': 'Joue un court carillon dans le panneau latéral quand l\'agent termine une tâche. Ne joue pas si vous annulez l\'exécution.',
+ 'st.display.notify_sound.label': "Sons de notification",
+ 'st.display.notify_sound.desc': "Joue un son distinct pour les plans en attente de validation et un court carillon à la fin d’une tâche ou pour demander une précision. Aucun son si vous annulez l’exécution.",
'st.display.completion_confetti.label': 'Confettis de fin',
'st.display.completion_confetti.desc': 'Affiche une courte pluie de confettis depuis le haut quand une tâche réussit. Activé par défaut; désactivez-le si vous préférez une fin plus discrète.',
- 'st.display.completion_flash_tab.label': "Faire clignoter l’onglet terminé",
- 'st.display.completion_flash_tab.desc': "Quand une tâche se termine dans un onglet que vous avez quitté, son titre et son favicon clignotent pour repérer d’un seul coup d’œil lequel est terminé.",
+ 'st.display.completion_flash_tab.label': "Faire clignoter les onglets pour les alertes",
+ 'st.display.completion_flash_tab.desc': "Le titre et l’icône d’un onglet en arrière-plan clignotent lorsqu’un plan est prêt à être examiné ou qu’une tâche se termine. Les plans utilisent l’icône ⚠️.",
'st.display.max_steps.label': 'Étapes maximum de l\'agent',
'st.display.max_steps.desc': 'Nombre maximum d\'étapes d\'outil que l\'agent peut effectuer par message. Des valeurs plus élevées permettent des tâches plus complexes mais peuvent consommer plus de tokens. Réglez le curseur sur ∞ pour des étapes illimitées.',
'st.display.traces_link.label': 'Traces',
diff --git a/src/chrome/src/ui/locales/he.js b/src/chrome/src/ui/locales/he.js
index 63c91291e..da49f310d 100644
--- a/src/chrome/src/ui/locales/he.js
+++ b/src/chrome/src/ui/locales/he.js
@@ -688,12 +688,12 @@ export default {
"st.display.scheduled_tasks.desc": "לְהַתִיר WebBrain כדי לחדש עבודה דחויה ולהפעיל משימות מתוזמנות חד פעמיות או חוזרות באמצעות אזעקות דפדפן. פועל כברירת מחדל.",
"st.display.scheduled_confirm.label": "אשר פעולות תוצאתיות מתוזמנות",
"st.display.scheduled_confirm.desc": "כאשר פועל, ריצות מתוזמנות ללא השגחה עדיין נעצרות לקבלת הרשאה לפני פעולות תוצאתיות. כבה רק אם אתה סומך על משימות מתוזמנות לפעול ללא הנחיות אלה.",
- "st.display.notify_sound.label": "צליל השלמה",
- "st.display.notify_sound.desc": "השמע צלצול קצר בלוח הצד כאשר הסוכן מסיים משימה. לא ישחק אם תבטל את הריצה.",
+ "st.display.notify_sound.label": "צלילי התראות",
+ "st.display.notify_sound.desc": "השמעת צליל ייחודי לתוכניות שממתינות לבדיקה וצלצול קצר בסיום משימה או בבקשת הבהרה. לא יושמע צליל בעת ביטול ההרצה.",
"st.display.completion_confetti.label": "קונפטי השלמה",
"st.display.completion_confetti.desc": "זרוק אנימציית קונפטי קצרה מלמעלה כאשר משימה הושלמה בהצלחה. פועל כברירת מחדל; כבה אותו אם אתה מעדיף גימור רגוע יותר.",
- 'st.display.completion_flash_tab.label': "הבהוב הכרטיסייה שהסתיימה",
- 'st.display.completion_flash_tab.desc': "כאשר משימה מסתיימת בכרטיסייה שעזבת, הכותרת והסמל של אותה כרטיסייה מהבהבים כדי שתזהה במבט אחד איזו הסתיי9מה.",
+ 'st.display.completion_flash_tab.label': "הבהוב כרטיסיות בהתראות",
+ 'st.display.completion_flash_tab.desc': "הכותרת והסמל של כרטיסייה ברקע מהבהבים כשתוכנית מוכנה לבדיקה או כשמשימה מסתיימת. תוכניות משתמשות בסמל ⚠️.",
"st.display.max_steps.label": "מקס סוכן צעדים",
"st.display.max_steps.desc": "המספר המרבי של צעדי שימוש בכלי שהסוכן יכול לבצע בכל הודעה. ערכים גבוהים יותר מאפשרים משימות מרובות שלבים מורכבות יותר אך עשויים להשתמש ביותר אסימונים. הגדר את המחוון ל-∞ עבור צעדים בלתי מוגבלים.",
"st.display.request_timeout.label": "זמן קצוב לבקשת LLM",
diff --git a/src/chrome/src/ui/locales/hi.js b/src/chrome/src/ui/locales/hi.js
index dfb76fc68..15c9ba38b 100644
--- a/src/chrome/src/ui/locales/hi.js
+++ b/src/chrome/src/ui/locales/hi.js
@@ -704,12 +704,12 @@ export default {
'st.display.scheduled_tasks.desc': "WebBrain को स्थगित कार्य को फिर से शुरू करने और ब्राउज़र अलार्म का उपयोग करके एक-शॉट या आवर्ती निर्धारित कार्यों को चलाने की अनुमति दें। डिफ़ॉल्ट रूप से चालू.",
'st.display.scheduled_confirm.label': "निर्धारित परिणामी कार्रवाइयों की पुष्टि करें",
'st.display.scheduled_confirm.desc': "चालू होने पर, अप्राप्य शेड्यूल किए गए रन परिणामी कार्रवाइयों से पहले अनुमति के लिए रुक जाते हैं। केवल तभी बंद करें जब आपको निर्धारित कार्यों पर उन संकेतों के बिना कार्य करने का भरोसा हो।",
- 'st.display.notify_sound.label': "समापन ध्वनि",
- 'st.display.notify_sound.desc': "जब एजेंट कोई कार्य पूरा कर ले तो साइड पैनल में एक छोटी सी घंटी बजाएं। यदि आप रन रद्द कर देंगे तो नहीं खेलेंगे।",
+ 'st.display.notify_sound.label': "सूचना ध्वनियाँ",
+ 'st.display.notify_sound.desc': "समीक्षा की प्रतीक्षा कर रही योजनाओं के लिए अलग ध्वनि और कार्य पूरा होने या स्पष्टीकरण माँगने पर छोटी घंटी बजाएँ। रन रद्द करने पर कोई ध्वनि नहीं बजेगी।",
'st.display.completion_confetti.label': "समापन कंफ़ेद्दी",
'st.display.completion_confetti.desc': "जब कोई कार्य सफलतापूर्वक पूरा हो जाए तो ऊपर से एक छोटा कंफ़ेटी एनीमेशन छोड़ें। डिफ़ॉल्ट रूप से चालू; यदि आप शांत समापन पसंद करते हैं तो इसे बंद कर दें।",
- 'st.display.completion_flash_tab.label': "पूर्ण हुए टैब को फ़्लैश करें",
- 'st.display.completion_flash_tab.desc': "जब कोई कार्य किसी ऐसे टैब में पूरा होता है जिसे आपने छोड় दिया है, तो उस टैब का शीर्षक और फ़ेविकॉन तीव्र पहचान के लिए टिमटिमाता है।",
+ 'st.display.completion_flash_tab.label': "अलर्ट के लिए टैब चमकाएँ",
+ 'st.display.completion_flash_tab.desc': "जब कोई योजना समीक्षा के लिए तैयार हो या कार्य पूरा हो, तो पृष्ठभूमि वाले टैब का शीर्षक और आइकन चमकते हैं। योजनाओं के लिए ⚠️ आइकन का उपयोग होता है।",
'st.display.max_steps.label': "मैक्स एजेंट कदम",
'st.display.max_steps.desc': "एजेंट प्रति संदेश उपकरण-उपयोग के चरणों की अधिकतम संख्या उठा सकता है। उच्च मान अधिक जटिल बहु-चरणीय कार्यों की अनुमति देते हैं लेकिन अधिक टोकन का उपयोग कर सकते हैं। असीमित चरणों के लिए स्लाइडर को ∞ पर सेट करें।",
'st.display.request_timeout.label': "एलएलएम अनुरोध समयबाह्य",
diff --git a/src/chrome/src/ui/locales/id.js b/src/chrome/src/ui/locales/id.js
index bbd14255d..60a5daa16 100644
--- a/src/chrome/src/ui/locales/id.js
+++ b/src/chrome/src/ui/locales/id.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Juga menyimpan prompt, pesan, dan skema alat lengkap dari setiap permintaan LLM alih-alih ringkasan tanpa konten, dan menyimpan hingga 200 KB setiap hasil alat. Memungkinkan debug mendalam dan rekonstruksi permintaan. Nonaktif secara default karena menulis konten percakapan Anda secara lokal dan memakai disk jauh lebih banyak. Memerlukan perekaman trace aktif.',
'st.display.allow_local_network.label': 'Izinkan agen mengakses jaringan lokal',
'st.display.allow_local_network.desc': 'Memungkinkan alat fetch_url agen menjangkau loopback (127.0.0.1, localhost) dan alamat privat/RFC1918 (10.x, 192.168.x, 172.16–31.x). Berguna untuk server pengembangan lokal, alat intranet, atau API yang di-host sendiri. Nonaktif secara bawaan. Saat nonaktif, URL dengan alamat IP privat atau loopback yang ditulis langsung dan nama localhost diblokir. Resolusi DNS tidak diperiksa, sehingga nama host lain masih dapat menjangkau alamat lokal. IP literal metadata cloud (169.254.169.254) dan nama metadata dalam daftar atau *.internal/*.local tetap diblokir meskipun diaktifkan.',
- 'st.display.notify_sound.label': 'Suara penyelesaian',
- 'st.display.notify_sound.desc': 'Mainkan dering singkat di panel samping saat agen menyelesaikan tugas. Tidak akan dimainkan jika Anda membatalkan proses.',
+ 'st.display.notify_sound.label': "Suara notifikasi",
+ 'st.display.notify_sound.desc': "Putar suara khusus untuk rencana yang menunggu peninjauan dan bunyi singkat saat tugas selesai atau memerlukan klarifikasi. Tidak ada suara saat Anda membatalkan proses.",
'st.display.completion_confetti.label': 'Konfeti selesai',
'st.display.completion_confetti.desc': 'Tampilkan animasi konfeti singkat dari atas saat tugas berhasil selesai. Aktif secara default; matikan jika Anda ingin penutup yang lebih tenang.',
- 'st.display.completion_flash_tab.label': "Kedipkan tab yang selesai",
- 'st.display.completion_flash_tab.desc': "Saat tugas selesai di tab yang sudah kamu tinggalkan, judul dan favicon tab itu berkedip agar kamu tahu sekilas tab mana yang selesai.",
+ 'st.display.completion_flash_tab.label': "Kedipkan tab untuk peringatan",
+ 'st.display.completion_flash_tab.desc': "Judul dan ikon tab di latar belakang berkedip saat rencana siap ditinjau atau tugas selesai. Rencana menggunakan ikon ⚠️.",
'st.display.max_steps.label': 'Langkah maksimum agen',
'st.display.max_steps.desc': 'Jumlah maksimum langkah pemanggilan alat yang dapat dilakukan agen per pesan. Nilai lebih tinggi memungkinkan tugas multi-langkah lebih kompleks tetapi mungkin memakai lebih banyak token. Geser ke ∞ untuk langkah tanpa batas.',
'st.display.traces_link.label': 'Jejak',
diff --git a/src/chrome/src/ui/locales/ja.js b/src/chrome/src/ui/locales/ja.js
index 8bb7e4707..47c2e3da4 100644
--- a/src/chrome/src/ui/locales/ja.js
+++ b/src/chrome/src/ui/locales/ja.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': '各LLMリクエストの完全なプロンプト・メッセージ・ツールスキーマを、内容を含まない要約の代わりに保存し、各ツール結果を最大200KB保持します。深いデバッグとリクエスト再構築が可能になります。会話内容をローカルに書き込み、ディスク消費が大幅に増えるため、既定ではオフです。トレース記録の有効化が必要です。',
'st.display.allow_local_network.label': 'エージェントにローカルネットワークへのアクセスを許可',
'st.display.allow_local_network.desc': 'エージェントの fetch_url ツールがループバック(127.0.0.1、localhost)やプライベート/RFC1918 アドレス(10.x、192.168.x、172.16–31.x)に届くようになります。ローカル開発サーバー、社内ツール、セルフホスト API に便利です。デフォルトはオフです。オフの場合、プライベート IP やループバック IP を直接記述した URL と localhost のホスト名をブロックします。DNS の名前解決は確認しないため、別のホスト名からローカルアドレスに接続できる場合があります。クラウドメタデータの IP リテラル(169.254.169.254)と、指定のメタデータ名または *.internal/*.local はオンでもブロックされます。',
- 'st.display.notify_sound.label': '完了サウンド',
- 'st.display.notify_sound.desc': 'エージェントがタスクを完了したときにサイドパネルで短いチャイムを鳴らします。実行をキャンセルした場合は鳴りません。',
+ 'st.display.notify_sound.label': "通知サウンド",
+ 'st.display.notify_sound.desc': "確認待ちのプランには専用のサウンドを、タスクの完了時や確認事項があるときには短いチャイムを鳴らします。実行をキャンセルした場合は鳴りません。",
'st.display.completion_confetti.label': '完了時の紙吹雪',
'st.display.completion_confetti.desc': 'タスクが正常に完了したとき、上から短い紙吹雪アニメーションを表示します。既定でオンです。落ち着いた完了表示にしたい場合はオフにできます。',
- 'st.display.completion_flash_tab.label': "完了したタブを点滅",
- 'st.display.completion_flash_tab.desc': "離れたタブでタスクが完了すると、そのタブのタイトルとアイコンが点滅し、どのタブが完了したかひと目でわかります。",
+ 'st.display.completion_flash_tab.label': "通知時にタブを点滅",
+ 'st.display.completion_flash_tab.desc': "プランの確認準備ができたときやタスクが完了したときに、バックグラウンドのタブのタイトルとアイコンを点滅させます。プランには ⚠️ アイコンを使用します。",
'st.display.max_steps.label': 'エージェントの最大ステップ数',
'st.display.max_steps.desc': '1 メッセージあたりに使えるツール呼び出しステップの上限です。値を大きくすると複雑な多段タスクが可能になりますが、トークン消費が増えることがあります。スライダーを ∞ にするとステップ数は無制限になります。',
'st.display.traces_link.label': 'トレース',
diff --git a/src/chrome/src/ui/locales/ko.js b/src/chrome/src/ui/locales/ko.js
index 01ab21c34..a4d291141 100644
--- a/src/chrome/src/ui/locales/ko.js
+++ b/src/chrome/src/ui/locales/ko.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': '각 LLM 요청의 전체 프롬프트·메시지·도구 스키마를 내용 없는 요약 대신 저장하고, 각 도구 결과를 최대 200KB까지 보관합니다. 심층 디버깅과 요청 재구성이 가능합니다. 대화 내용을 로컬에 기록하고 디스크를 훨씬 더 사용하므로 기본적으로 꺼져 있습니다. 트레이스 기록이 켜져 있어야 합니다.',
'st.display.allow_local_network.label': '에이전트의 로컬 네트워크 접근 허용',
'st.display.allow_local_network.desc': '에이전트의 fetch_url 도구가 루프백(127.0.0.1, localhost)과 사설/RFC1918 주소(10.x, 192.168.x, 172.16–31.x)에 접근할 수 있게 합니다. 로컬 개발 서버, 인트라넷 도구, 자체 호스팅 API에 유용합니다. 기본값은 끔입니다. 꺼져 있으면 사설 또는 루프백 IP를 직접 적은 URL과 localhost 이름을 차단합니다. DNS 해석은 확인하지 않으므로 다른 호스트명은 로컬 주소에 접근할 수 있습니다. 클라우드 메타데이터 IP 리터럴(169.254.169.254)과 목록에 있는 메타데이터 이름 또는 *.internal/*.local은 켜져 있어도 차단됩니다.',
- 'st.display.notify_sound.label': '완료 알림음',
- 'st.display.notify_sound.desc': '에이전트가 작업을 마치면 사이드 패널에서 짧은 알림음을 재생합니다. 실행을 취소한 경우에는 재생되지 않습니다.',
+ 'st.display.notify_sound.label': "알림 소리",
+ 'st.display.notify_sound.desc': "검토를 기다리는 계획에는 별도의 소리를, 작업이 완료되거나 추가 설명이 필요할 때는 짧은 알림음을 재생합니다. 실행을 취소하면 소리가 나지 않습니다.",
'st.display.completion_confetti.label': '완료 색종이',
'st.display.completion_confetti.desc': '작업이 성공적으로 끝나면 위에서 짧은 색종이 애니메이션을 표시합니다. 기본적으로 켜져 있으며, 더 차분한 마무리를 원하면 끌 수 있습니다.',
- 'st.display.completion_flash_tab.label': "완료된 탭 깜뗝이기",
- 'st.display.completion_flash_tab.desc': "떠나 있는 탭에서 작업이 끌나면 해당 탭의 제목과 아이콘이 깜뗝여 어떤 탭이 완료됐는지 한눈에 알 수 있습니다.",
+ 'st.display.completion_flash_tab.label': "알림이 있는 탭 깜빡이기",
+ 'st.display.completion_flash_tab.desc': "계획 검토 준비가 되었거나 작업이 완료되면 백그라운드 탭의 제목과 아이콘이 깜빡입니다. 계획에는 ⚠️ 아이콘을 사용합니다.",
'st.display.max_steps.label': '에이전트 최대 단계 수',
'st.display.max_steps.desc': '한 메시지당 에이전트가 사용할 수 있는 도구 호출 단계의 최대 수입니다. 값이 클수록 더 복잡한 다단계 작업이 가능하지만 토큰을 더 소비할 수 있습니다. 슬라이더를 ∞로 설정하면 단계 수가 무제한입니다.',
'st.display.traces_link.label': '트레이스',
diff --git a/src/chrome/src/ui/locales/ms.js b/src/chrome/src/ui/locales/ms.js
index a3d013974..5fe13b2f1 100644
--- a/src/chrome/src/ui/locales/ms.js
+++ b/src/chrome/src/ui/locales/ms.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Juga menyimpan prompt, mesej, dan skema alatan penuh bagi setiap permintaan LLM dan bukannya ringkasan tanpa kandungan, serta mengekalkan sehingga 200 KB bagi setiap hasil alatan. Membolehkan penyahpepijatan mendalam dan pembinaan semula permintaan. Dimatikan secara lalai kerana menulis kandungan perbualan anda secara setempat dan menggunakan lebih banyak cakera. Memerlukan rakaman jejak dihidupkan.',
'st.display.allow_local_network.label': 'Benarkan ejen mengakses rangkaian tempatan',
'st.display.allow_local_network.desc': 'Membenarkan alat fetch_url ejen mencapai loopback (127.0.0.1, localhost) dan alamat peribadi/RFC1918 (10.x, 192.168.x, 172.16–31.x). Berguna untuk pelayan pembangunan tempatan, alat intranet, atau API yang dihos sendiri. Dimatikan secara lalai. Apabila dimatikan, URL yang menggunakan IP peribadi atau loopback secara langsung dan nama localhost disekat. Resolusi DNS tidak diperiksa, jadi nama hos lain masih boleh mencapai alamat tempatan. IP literal metadata awan (169.254.169.254) dan nama metadata yang disenaraikan atau *.internal/*.local kekal disekat walaupun dihidupkan.',
- 'st.display.notify_sound.label': 'Bunyi selesai',
- 'st.display.notify_sound.desc': 'Mainkan bunyi pendek di panel sisi apabila ejen menyelesaikan tugas. Tidak akan dimainkan jika anda membatalkan larian.',
+ 'st.display.notify_sound.label': "Bunyi pemberitahuan",
+ 'st.display.notify_sound.desc': "Mainkan bunyi berbeza untuk pelan yang menunggu semakan dan nada pendek apabila tugas selesai atau memerlukan penjelasan. Tiada bunyi apabila anda membatalkan pelaksanaan.",
'st.display.completion_confetti.label': 'Konfeti selesai',
'st.display.completion_confetti.desc': 'Paparkan animasi konfeti pendek dari atas apabila tugas berjaya diselesaikan. Dihidupkan secara lalai; matikan jika anda mahukan penamat yang lebih tenang.',
- 'st.display.completion_flash_tab.label': "Kelipkan tab yang selesai",
- 'st.display.completion_flash_tab.desc': "Apabila tugasan selesai pada tab yang anda tinggalkan, tajuk dan ikon tab tersebut berkelip supaya anda tahu sekilas tab mana yang selesai.",
+ 'st.display.completion_flash_tab.label': "Kelipkan tab untuk amaran",
+ 'st.display.completion_flash_tab.desc': "Tajuk dan ikon tab di latar belakang berkelip apabila pelan sedia untuk disemak atau tugas selesai. Pelan menggunakan ikon ⚠️.",
'st.display.max_steps.label': 'Langkah maksimum ejen',
'st.display.max_steps.desc': 'Jumlah maksimum langkah penggunaan alat yang boleh dilakukan ejen bagi setiap mesej. Nilai lebih tinggi membenarkan tugas berbilang langkah yang lebih kompleks, tetapi mungkin menggunakan lebih banyak token. Tetapkan peluncur kepada ∞ untuk langkah tanpa had.',
'st.display.traces_link.label': 'Jejak',
diff --git a/src/chrome/src/ui/locales/nl.js b/src/chrome/src/ui/locales/nl.js
index 45596cb5d..efe578816 100644
--- a/src/chrome/src/ui/locales/nl.js
+++ b/src/chrome/src/ui/locales/nl.js
@@ -681,12 +681,12 @@ export default {
'st.display.scheduled_tasks.desc': 'Sta WebBrain toe om uitgesteld werk te hervatten en eenmalige of terugkerende geplande taken uit te voeren...',
'st.display.scheduled_confirm.label': 'Bevestig geplande gevolghebbende acties',
'st.display.scheduled_confirm.desc': 'Wanneer ingeschakeld, stoppen onbeheerde geplande uitvoeringen nog steeds voor machtiging...',
- 'st.display.notify_sound.label': 'Voltooiingsgeluid',
- 'st.display.notify_sound.desc': 'Speel een kort deuntje in het zijpaneel wanneer de agent een taak voltooit...',
+ 'st.display.notify_sound.label': "Meldingsgeluiden",
+ 'st.display.notify_sound.desc': "Speel een apart geluid voor plannen die op beoordeling wachten en een kort deuntje bij voltooiing of een vraag om verduidelijking. Geen geluid als je een uitvoering annuleert.",
'st.display.completion_confetti.label': 'Voltooiingsconfetti',
'st.display.completion_confetti.desc': 'Laat een korte confetti-animatie vallen van boven wanneer een taak succesvol wordt voltooid...',
- 'st.display.completion_flash_tab.label': "Voltooid tabblad laten knipperen",
- 'st.display.completion_flash_tab.desc': "Wanneer een taak klaar is in een tabblad dat je hebt verlaten, knippert de titel en het favicon van dat tabblad zodat je in één oogopslag ziet welke tab klaar is.",
+ 'st.display.completion_flash_tab.label': "Tabbladen laten knipperen bij meldingen",
+ 'st.display.completion_flash_tab.desc': "Laat de titel en het pictogram van een tabblad op de achtergrond knipperen wanneer een plan klaarstaat ter beoordeling of een taak is voltooid. Plannen gebruiken het pictogram ⚠️.",
'st.display.max_steps.label': 'Max Agentstappen',
'st.display.max_steps.desc': 'Maximaal aantal toolstappen dat de agent per bericht kan uitvoeren. Hogere waarden maken complexere taken met meerdere stappen mogelijk, maar kunnen meer tokens gebruiken. Zet de schuifregelaar op ∞ voor onbeperkte stappen.',
'st.display.request_timeout.label': 'LLM-verzoektime-out',
diff --git a/src/chrome/src/ui/locales/pl.js b/src/chrome/src/ui/locales/pl.js
index b9336809a..39a8eb094 100644
--- a/src/chrome/src/ui/locales/pl.js
+++ b/src/chrome/src/ui/locales/pl.js
@@ -516,12 +516,12 @@ export default {
'st.display.scheduled_tasks.desc': 'Pozwól WebBrain wznawiać odroczoną pracę oraz uruchamiać jednorazowe lub cykliczne zaplanowane zadania przy użyciu alarmów przeglądarki. Domyślnie włączone.',
'st.display.scheduled_confirm.label': 'Potwierdzaj istotne działania w zaplanowanych zadaniach',
'st.display.scheduled_confirm.desc': 'Po włączeniu nienadzorowane zaplanowane wykonania nadal zatrzymują się po pozwolenie przed istotnymi działaniami. Wyłącz tylko, jeśli ufasz, że zaplanowane zadania mogą działać bez tych pytań.',
- 'st.display.notify_sound.label': 'Dźwięk ukończenia',
- 'st.display.notify_sound.desc': 'Odtwarzaj krótki dźwięk w panelu bocznym, gdy agent ukończy zadanie. Nie zabrzmi, jeśli anulujesz wykonanie.',
+ 'st.display.notify_sound.label': "Dźwięki powiadomień",
+ 'st.display.notify_sound.desc': "Odtwarzaj osobny dźwięk dla planów oczekujących na sprawdzenie oraz krótki sygnał po ukończeniu zadania lub przy prośbie o wyjaśnienie. Bez dźwięku po anulowaniu uruchomienia.",
'st.display.completion_confetti.label': 'Konfetti po ukończeniu',
'st.display.completion_confetti.desc': 'Pokazuj krótką animację konfetti z góry, gdy zadanie zakończy się powodzeniem. Domyślnie włączone; wyłącz, jeśli wolisz spokojniejsze zakończenie.',
- 'st.display.completion_flash_tab.label': "Migaj zakończoną kartą",
- 'st.display.completion_flash_tab.desc': "Gdy zadanie kończy się w karcie, którą opuściłeś, tytuł i ikona tej karty migają, abyś jednym spojrzeniem widział, która karta ukończyła pracę.",
+ 'st.display.completion_flash_tab.label': "Migaj kartami przy powiadomieniach",
+ 'st.display.completion_flash_tab.desc': "Tytuł i ikona karty w tle migają, gdy plan jest gotowy do sprawdzenia lub zadanie się kończy. Plany używają ikony ⚠️.",
'st.display.max_steps.label': 'Maksymalna liczba kroków agenta',
'st.display.max_steps.desc': 'Maksymalna liczba kroków z użyciem narzędzi, jakie agent może wykonać na wiadomość. Wyższe wartości pozwalają na bardziej złożone wieloetapowe zadania, ale mogą zużywać więcej tokenów. Ustaw suwak na ∞, aby uzyskać nieograniczoną liczbę kroków.',
'st.display.request_timeout.label': 'Limit czasu żądania LLM',
diff --git a/src/chrome/src/ui/locales/pt.js b/src/chrome/src/ui/locales/pt.js
index b139dc860..3f4d63668 100644
--- a/src/chrome/src/ui/locales/pt.js
+++ b/src/chrome/src/ui/locales/pt.js
@@ -704,12 +704,12 @@ export default {
'st.display.scheduled_tasks.desc': "Permita que WebBrain retome o trabalho adiado e execute tarefas agendadas únicas ou recorrentes usando alarmes do navegador. Ativado por padrão.",
'st.display.scheduled_confirm.label': "Confirme as ações consequentes programadas",
'st.display.scheduled_confirm.desc': "Quando ativado, as execuções agendadas autônomas ainda serão interrompidas para permissão antes de ações consequentes. Desative apenas se você confiar que as tarefas agendadas agirão sem esses avisos.",
- 'st.display.notify_sound.label': "Som de conclusão",
- 'st.display.notify_sound.desc': "Toque um breve sinal sonoro no painel lateral quando o agente terminar uma tarefa. Não jogará se você cancelar a corrida.",
+ 'st.display.notify_sound.label': "Sons de notificação",
+ 'st.display.notify_sound.desc': "Reproduz um som diferente para planos aguardando revisão e um toque curto ao concluir uma tarefa ou pedir esclarecimentos. Não emite som se você cancelar a execução.",
'st.display.completion_confetti.label': "Confete de conclusão",
'st.display.completion_confetti.desc': "Solte uma pequena animação de confete no topo quando uma tarefa for concluída com sucesso. Ativado por padrão; desligue-o se preferir um final mais calmo.",
- 'st.display.completion_flash_tab.label': "Piscar a aba concluída",
- 'st.display.completion_flash_tab.desc': "Quando uma tarefa é concluída em uma aba que você deixou, o título e o favicon dessa aba piscam para você saber de relance qual foi concluída.",
+ 'st.display.completion_flash_tab.label': "Piscar abas com alertas",
+ 'st.display.completion_flash_tab.desc': "O título e o ícone de uma aba em segundo plano piscam quando um plano está pronto para revisão ou uma tarefa termina. Os planos usam o ícone ⚠️.",
'st.display.max_steps.label': "Máximo de etapas do agente",
'st.display.max_steps.desc': "Número máximo de etapas de uso da ferramenta que o agente pode realizar por mensagem. Valores mais altos permitem tarefas mais complexas de várias etapas, mas podem usar mais tokens. Defina o controle deslizante para ∞ para etapas ilimitadas.",
'st.display.request_timeout.label': "Tempo limite da solicitação LLM",
diff --git a/src/chrome/src/ui/locales/ru.js b/src/chrome/src/ui/locales/ru.js
index a199d382b..3f3d3f65c 100644
--- a/src/chrome/src/ui/locales/ru.js
+++ b/src/chrome/src/ui/locales/ru.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Также сохраняет полные промпты, сообщения и схемы инструментов каждого LLM-запроса вместо кратких сводок без содержимого, и хранит до 200 КБ каждого результата инструмента. Позволяет глубокую отладку и восстановление запросов. Выключено по умолчанию, так как записывает содержимое вашего диалога локально и занимает заметно больше места. Требует включённой записи трасс.',
'st.display.allow_local_network.label': 'Разрешить агенту доступ к локальной сети',
'st.display.allow_local_network.desc': 'Разрешает инструменту fetch_url агента обращаться к loopback (127.0.0.1, localhost) и частным адресам RFC1918 (10.x, 192.168.x, 172.16–31.x). Полезно для локальных серверов разработки, интранет-инструментов и self-hosted API. По умолчанию выключено. В этом состоянии блокируются URL с явно записанными частными или loopback IP-адресами и имена localhost. Результат DNS не проверяется, поэтому другие имена хостов могут вести к локальным адресам. IP-адреса метаданных облака, записанные явно (169.254.169.254), и перечисленные имена метаданных или *.internal/*.local остаются заблокированы даже при включении.',
- 'st.display.notify_sound.label': 'Звук завершения',
- 'st.display.notify_sound.desc': 'Воспроизводить короткий звуковой сигнал в боковой панели, когда агент завершает задачу. Не звучит, если вы отменили запуск.',
+ 'st.display.notify_sound.label': "Звуки уведомлений",
+ 'st.display.notify_sound.desc': "Отдельный звук для планов, ожидающих проверки, и короткий сигнал при завершении задачи или запросе уточнения. При отмене запуска звук не воспроизводится.",
'st.display.completion_confetti.label': 'Конфетти при завершении',
'st.display.completion_confetti.desc': 'Показывать короткую анимацию конфетти сверху, когда задача успешно завершена. Включено по умолчанию; отключите, если предпочитаете спокойное завершение.',
- 'st.display.completion_flash_tab.label': "Мигать завершённой вкладкой",
- 'st.display.completion_flash_tab.desc': "Когда задача завершается во вкладке, которую вы покинули, заголовок и значок этой вкладки мигают, чтобы с одного взгляда было видно, какая вкладка закончила работу.",
+ 'st.display.completion_flash_tab.label': "Мигание вкладок при уведомлениях",
+ 'st.display.completion_flash_tab.desc': "Заголовок и значок фоновой вкладки мигают, когда план готов к проверке или задача завершена. Для планов используется значок ⚠️.",
'st.display.max_steps.label': 'Максимум шагов агента',
'st.display.max_steps.desc': 'Максимальное число шагов с использованием инструментов на одно сообщение. Большие значения позволяют решать более сложные многошаговые задачи, но могут расходовать больше токенов. Установите ползунок на ∞ для неограниченного числа шагов.',
'st.display.traces_link.label': 'Трассы',
diff --git a/src/chrome/src/ui/locales/th.js b/src/chrome/src/ui/locales/th.js
index c15e8ca82..dfc88b620 100644
--- a/src/chrome/src/ui/locales/th.js
+++ b/src/chrome/src/ui/locales/th.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'จัดเก็บพรอมต์ ข้อความ และโครงสร้างเครื่องมือแบบเต็มของแต่ละคำขอ LLM แทนสรุปที่ไม่มีเนื้อหา และเก็บผลลัพธ์เครื่องมือแต่ละรายการสูงสุด 200 KB เปิดใช้งานการดีบักเชิงลึกและการสร้างคำขอใหม่ ปิดโดยค่าเริ่มต้นเพราะเขียนเนื้อหาสนทนาของคุณในเครื่องและใช้พื้นที่ดิสก์มากกว่ามาก ต้องเปิดการบันทึกเทรซ',
'st.display.allow_local_network.label': 'อนุญาตให้เอเจนต์เข้าถึงเครือข่ายภายใน',
'st.display.allow_local_network.desc': 'ให้เครื่องมือ fetch_url ของเอเจนต์เข้าถึง loopback (127.0.0.1, localhost) และที่อยู่ส่วนตัว/RFC1918 (10.x, 192.168.x, 172.16–31.x) มีประโยชน์สำหรับเซิร์ฟเวอร์พัฒนาภายใน เครื่องมืออินทราเน็ต หรือ API ที่โฮสต์เอง ปิดเป็นค่าเริ่มต้น เมื่อปิด จะบล็อก URL ที่ระบุ IP ส่วนตัวหรือ loopback โดยตรงและชื่อ localhost ไม่มีการตรวจสอบผลการแปลงชื่อ DNS ดังนั้นชื่อโฮสต์อื่นอาจยังเข้าถึงที่อยู่ภายในได้ IP เมตาดาตาคลาวด์ที่ระบุโดยตรง (169.254.169.254) และชื่อเมตาดาตาในรายการหรือ *.internal/*.local ยังคงถูกบล็อกแม้เปิดไว้',
- 'st.display.notify_sound.label': 'เสียงเมื่อทำเสร็จ',
- 'st.display.notify_sound.desc': 'เล่นเสียงสั้น ๆ ในแผงด้านข้างเมื่อเอเจนต์ทำภารกิจเสร็จ จะไม่เล่นถ้าคุณยกเลิกการทำงาน',
+ 'st.display.notify_sound.label': "เสียงแจ้งเตือน",
+ 'st.display.notify_sound.desc': "เล่นเสียงเฉพาะสำหรับแผนที่รอการตรวจสอบ และเสียงสั้น ๆ เมื่องานเสร็จหรือต้องการคำชี้แจง จะไม่มีเสียงเมื่อคุณยกเลิกการทำงาน",
'st.display.completion_confetti.label': 'โปรยกระดาษเมื่อเสร็จ',
'st.display.completion_confetti.desc': 'แสดงแอนิเมชันโปรยกระดาษสั้น ๆ จากด้านบนเมื่องานเสร็จสมบูรณ์ เปิดไว้ตามค่าเริ่มต้น ปิดได้หากต้องการให้จบแบบเงียบกว่า.',
- 'st.display.completion_flash_tab.label': "กะพริบแท็บที่เสร็จแล้ว",
- 'st.display.completion_flash_tab.desc': "เมื่องานเสร็จสมบูรณ์ในแท็บที่คุณออกจากไป ชื่อและไอคอนของแท็บนั้นจะกะพริบเพื่อให้เห็นได้ทันทีว่าแท็บใดเสร็จสิ้น",
+ 'st.display.completion_flash_tab.label': "กะพริบแท็บเมื่อมีการแจ้งเตือน",
+ 'st.display.completion_flash_tab.desc': "ชื่อและไอคอนของแท็บเบื้องหลังจะกะพริบเมื่อแผนพร้อมให้ตรวจสอบหรืองานเสร็จ แผนจะใช้ไอคอน ⚠️",
'st.display.max_steps.label': 'จำนวนขั้นสูงสุดของเอเจนต์',
'st.display.max_steps.desc': 'จำนวนขั้นการใช้เครื่องมือสูงสุดที่เอเจนต์ทำได้ต่อข้อความ ค่ามากขึ้นอนุญาตให้ทำภารกิจหลายขั้นที่ซับซ้อนกว่า แต่อาจใช้โทเค็นมากขึ้น ตั้งแถบเลื่อนเป็น ∞ เพื่อให้ขั้นตอนไม่จำกัด',
'st.display.traces_link.label': 'Traces',
diff --git a/src/chrome/src/ui/locales/tl.js b/src/chrome/src/ui/locales/tl.js
index 976c63d97..fd46a05e6 100644
--- a/src/chrome/src/ui/locales/tl.js
+++ b/src/chrome/src/ui/locales/tl.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Iniimbak din ang buong prompt, mensahe, at schema ng tool ng bawat LLM request sa halip na buod na walang nilalaman, at nagpapanatili ng hanggang 200 KB ng bawat resulta ng tool. Nagbibigay-daan sa malalim na pag-debug at muling pagbuo ng request. Naka-off bilang default dahil isinusulat nito ang nilalaman ng iyong usapan nang lokal at gumagamit ng mas malaking disk. Nangangailangan ng naka-on na pag-record ng trace.',
'st.display.allow_local_network.label': 'Pahintulutan ang ahente na ma-access ang lokal na network',
'st.display.allow_local_network.desc': 'Hinahayaan ang fetch_url tool ng ahente na maabot ang loopback (127.0.0.1, localhost) at mga private/RFC1918 address (10.x, 192.168.x, 172.16–31.x). Mainam para sa mga lokal na dev server, intranet tool, o self-hosted API. Naka-off bilang default. Kapag naka-off, naka-block ang mga URL na may direktang nakasulat na private o loopback IP at mga pangalang localhost. Hindi sinusuri ang DNS resolution, kaya maaari pa ring makarating sa lokal na address ang ibang hostname. Naka-block pa rin kahit naka-on ang literal na cloud-metadata IP (169.254.169.254) at mga nakalistang metadata o *.internal/*.local hostname.',
- 'st.display.notify_sound.label': 'Tunog kapag tapos na',
- 'st.display.notify_sound.desc': 'Magpatugtog ng maikling chime sa side panel kapag natapos ang gawain ng ahente. Hindi tutugtog kung kinansela mo ang run.',
+ 'st.display.notify_sound.label': "Mga tunog ng abiso",
+ 'st.display.notify_sound.desc': "Magpatugtog ng naiibang tunog para sa mga planong naghihintay ng pagsusuri at maikling chime kapag tapos na ang gawain o kailangan ng paglilinaw. Walang tunog kapag kinansela mo ang run.",
'st.display.completion_confetti.label': 'Confetti kapag tapos na',
'st.display.completion_confetti.desc': 'Magpakita ng maikling confetti animation mula sa itaas kapag matagumpay na natapos ang gawain. Naka-on ito bilang default; i-off kung mas gusto mo ng mas tahimik na pagtatapos.',
- 'st.display.completion_flash_tab.label': "I-flash ang tapos na tab",
- 'st.display.completion_flash_tab.desc': "Kapag natapos ang gawain sa tab na iniwan mo na, kumikislap ang title at favicon ng tab na iyon para makita sa isang sulyap kung alin ang tapos na.",
+ 'st.display.completion_flash_tab.label': "Pakislapin ang mga tab para sa mga abiso",
+ 'st.display.completion_flash_tab.desc': "Kumikislap ang pamagat at icon ng tab sa background kapag handa nang suriin ang plano o tapos na ang gawain. Ginagamit ng mga plano ang icon na ⚠️.",
'st.display.max_steps.label': 'Maximum na hakbang ng ahente',
'st.display.max_steps.desc': 'Pinakamalaking bilang ng tool-use na hakbang na maaaring gawin ng ahente bawat mensahe. Ang mas mataas na halaga ay nagpapahintulot ng mas komplikadong multi-step na gawain ngunit maaaring mas marami ang gagamiting token. Itakda ang slider sa ∞ para sa walang limitasyong mga hakbang.',
'st.display.traces_link.label': 'Traces',
diff --git a/src/chrome/src/ui/locales/tr.js b/src/chrome/src/ui/locales/tr.js
index d750d1623..2ee7bff25 100644
--- a/src/chrome/src/ui/locales/tr.js
+++ b/src/chrome/src/ui/locales/tr.js
@@ -406,12 +406,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Her LLM isteğinin tam prompt, mesaj ve araç şemalarını içeriksiz özetler yerine de kalıcı olarak kaydeder ve her araç sonucundan en fazla 200 KB tutar. Derin hata ayıklama ve istek yeniden yapılandırmasını sağlar. Varsayılan olarak kapalıdır çünkü konuşma içeriğinizi yerel olarak yazar ve çok daha fazla disk kullanır. İz kaydının açık olmasını gerektirir.',
'st.display.allow_local_network.label': 'Aracının yerel ağa erişmesine izin ver',
'st.display.allow_local_network.desc': 'Aracının fetch_url aracının loopback (127.0.0.1, localhost) ve özel/RFC1918 adreslerine (10.x, 192.168.x, 172.16–31.x) ulaşmasına izin verir. Yerel geliştirme sunucuları, intranet araçları veya kendi sunucundaki API\'lar için kullanışlıdır. Varsayılan olarak kapalıdır. Kapalıyken özel veya loopback IP adresi doğrudan yazılmış URL’ler ve localhost adları engellenir. DNS çözümlemesi denetlenmez; diğer ana makine adları yerel adreslere ulaşabilir. Doğrudan yazılmış bulut meta-veri IP adresleri (169.254.169.254) ile listedeki meta-veri adları veya *.internal/*.local adları açıkken de engellenir.',
- 'st.display.notify_sound.label': 'Tamamlama sesi',
- 'st.display.notify_sound.desc': 'Aracı bir görevi bitirdiğinde yan panelde kısa bir ses çalar. Çalışmayı iptal edersen çalınmaz.',
+ 'st.display.notify_sound.label': "Bildirim sesleri",
+ 'st.display.notify_sound.desc': "İnceleme bekleyen planlar için farklı bir ses, tamamlanan görevler veya açıklama gerektiğinde kısa bir zil sesi çalar. Çalışmayı iptal edersen ses çalınmaz.",
'st.display.completion_confetti.label': 'Tamamlama konfetisi',
'st.display.completion_confetti.desc': 'Bir görev başarıyla tamamlandığında üstten kısa bir konfeti animasyonu gösterir. Varsayılan olarak açıktır; daha sakin bir bitiş istersen kapatabilirsin.',
- 'st.display.completion_flash_tab.label': 'Biten sekmeyi yanıp söndür',
- 'st.display.completion_flash_tab.desc': 'Bir görev, ayrıldığın bir sekmede bittiğinde o sekmenin başlığı ve simgesi yanıp söner; hangi sekmenin bittiğini tek bakışta görürsün.',
+ 'st.display.completion_flash_tab.label': "Bildirimlerde sekmeyi yanıp söndür",
+ 'st.display.completion_flash_tab.desc': "Bir plan incelemeye hazır olduğunda veya görev bittiğinde arka plandaki sekmenin başlığı ve simgesi yanıp söner. Planlarda ⚠️ simgesi kullanılır.",
'st.display.max_steps.label': 'Azami aracı adımı',
'st.display.max_steps.desc': 'Aracının mesaj başına atabileceği en fazla araç adımı sayısı. Daha yüksek değerler daha karmaşık çok adımlı görevlere izin verir ama daha fazla token kullanabilir. Sınırsız adım için kaydırıcıyı ∞ konumuna getirin.',
'st.display.traces_link.label': 'İzler',
diff --git a/src/chrome/src/ui/locales/uk.js b/src/chrome/src/ui/locales/uk.js
index 25e0c87da..383947367 100644
--- a/src/chrome/src/ui/locales/uk.js
+++ b/src/chrome/src/ui/locales/uk.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Також зберігає повні промпти, повідомлення та схеми інструментів кожного LLM-запиту замість стислих зведень без вмісту, та тримає до 200 КБ кожного результату інструмента. Дає змогу глибокого налагодження та відтворення запитів. Вимкнено за замовчуванням, бо записує вміст вашої розмови локально та займає значно більше диска. Потребує увімкненого запису трас.',
'st.display.allow_local_network.label': 'Дозволити агенту доступ до локальної мережі',
'st.display.allow_local_network.desc': 'Дозволяє інструменту fetch_url агента звертатися до loopback (127.0.0.1, localhost) та приватних адрес RFC1918 (10.x, 192.168.x, 172.16–31.x). Корисно для локальних серверів розробки, інтранет-інструментів і self-hosted API. За замовчуванням вимкнено. У цьому стані блокуються URL із безпосередньо записаними приватними або loopback IP-адресами та імена localhost. Результат DNS не перевіряється, тому інші імена хостів можуть вести до локальних адрес. Безпосередньо записані IP-адреси метаданих хмари (169.254.169.254) і перелічені імена метаданих або *.internal/*.local залишаються заблокованими навіть після ввімкнення.',
- 'st.display.notify_sound.label': 'Звук завершення',
- 'st.display.notify_sound.desc': 'Програвати короткий сигнал у бічній панелі, коли агент завершує завдання. Не звучить, якщо ви скасуєте запуск.',
+ 'st.display.notify_sound.label': "Звуки сповіщень",
+ 'st.display.notify_sound.desc': "Окремий звук для планів, що очікують на перевірку, і короткий сигнал після завершення завдання або запиту уточнення. Після скасування запуску звук не відтворюється.",
'st.display.completion_confetti.label': 'Конфеті після завершення',
'st.display.completion_confetti.desc': 'Показувати коротку анімацію конфеті згори, коли завдання успішно завершено. Увімкнено типово; вимкніть, якщо хочете спокійніше завершення.',
- 'st.display.completion_flash_tab.label': "Блимати завершеною вкладкою",
- 'st.display.completion_flash_tab.desc': "Коли завдання завершується у вкладці, яку ви покинули, заголовок і піктограма цієї вкладки блимають, щоб з першого погляду було видно, яка вкладка завершила роботу.",
+ 'st.display.completion_flash_tab.label': "Блимання вкладок для сповіщень",
+ 'st.display.completion_flash_tab.desc': "Заголовок і піктограма фонової вкладки блимають, коли план готовий до перевірки або завдання завершено. Для планів використовується піктограма ⚠️.",
'st.display.max_steps.label': 'Макс. кроків агента',
'st.display.max_steps.desc': 'Максимальна кількість кроків із використанням інструментів на одне повідомлення. Більші значення дозволяють складніші багатокрокові завдання, але можуть витрачати більше токенів. Установіть повзунок на ∞, щоб зняти обмеження на кроки.',
'st.display.traces_link.label': 'Траси',
diff --git a/src/chrome/src/ui/locales/vi.js b/src/chrome/src/ui/locales/vi.js
index fa0fa5564..45625628a 100644
--- a/src/chrome/src/ui/locales/vi.js
+++ b/src/chrome/src/ui/locales/vi.js
@@ -704,12 +704,12 @@ export default {
'st.display.scheduled_tasks.desc': "Cho phép WebBrain tiếp tục công việc bị trì hoãn và chạy các tác vụ theo lịch trình một lần hoặc định kỳ bằng cách sử dụng cảnh báo của trình duyệt. Bật theo mặc định.",
'st.display.scheduled_confirm.label': "Xác nhận các hành động tiếp theo đã lên lịch",
'st.display.scheduled_confirm.desc': "Khi được bật, các hoạt động chạy theo lịch trình không được giám sát vẫn dừng để xin phép trước các hành động tiếp theo. Chỉ tắt nếu bạn tin tưởng các tác vụ đã lên lịch sẽ thực hiện mà không cần những lời nhắc đó.",
- 'st.display.notify_sound.label': "Âm thanh hoàn thành",
- 'st.display.notify_sound.desc': "Phát một tiếng chuông ngắn trong bảng điều khiển bên cạnh khi tổng đài viên hoàn thành nhiệm vụ. Sẽ không chơi nếu bạn hủy cuộc chạy.",
+ 'st.display.notify_sound.label': "Âm thanh thông báo",
+ 'st.display.notify_sound.desc': "Phát âm thanh riêng cho kế hoạch đang chờ xem xét và tiếng chuông ngắn khi tác vụ hoàn tất hoặc cần làm rõ. Không phát âm thanh khi bạn hủy lần chạy.",
'st.display.completion_confetti.label': "Hoa giấy hoàn thành",
'st.display.completion_confetti.desc': "Thả một hình ảnh động hoa giấy ngắn từ trên xuống khi một nhiệm vụ hoàn thành thành công. Bật theo mặc định; tắt nó đi nếu bạn thích một kết thúc nhẹ nhàng hơn.",
- 'st.display.completion_flash_tab.label': "Nhấp nháy tab hoàn thành",
- 'st.display.completion_flash_tab.desc': "Khi một tác vụ hoàn tất trong tab bạn đã rời đi, tiêu đề và biểu tượng của tab đó nhấp nháy để bạn nhìn một cái là biết tab nào đã xong.",
+ 'st.display.completion_flash_tab.label': "Nhấp nháy tab khi có cảnh báo",
+ 'st.display.completion_flash_tab.desc': "Tiêu đề và biểu tượng của tab chạy nền nhấp nháy khi kế hoạch sẵn sàng để xem xét hoặc tác vụ hoàn tất. Kế hoạch dùng biểu tượng ⚠️.",
'st.display.max_steps.label': "Số bước đại lý tối đa",
'st.display.max_steps.desc': "Số bước sử dụng công cụ tối đa mà tác nhân có thể thực hiện trên mỗi tin nhắn. Giá trị cao hơn cho phép thực hiện các tác vụ nhiều bước phức tạp hơn nhưng có thể sử dụng nhiều mã thông báo hơn. Đặt thanh trượt thành ∞ để có số bước không giới hạn.",
'st.display.request_timeout.label': "Hết thời gian yêu cầu LLM",
diff --git a/src/chrome/src/ui/locales/zh.js b/src/chrome/src/ui/locales/zh.js
index c5aaf9e63..8aa5b94ab 100644
--- a/src/chrome/src/ui/locales/zh.js
+++ b/src/chrome/src/ui/locales/zh.js
@@ -365,12 +365,12 @@ export default {
'st.display.lossless_tracing.desc_html': '同时持久化每次 LLM 请求的完整提示词、消息与工具结构(而非无内容摘要),并保留每个工具结果最多 200 KB。支持深度调试与请求重建。默认关闭,因为会在本地写入对话内容并占用更多磁盘。需要先开启记录轨迹。',
'st.display.allow_local_network.label': '允许代理访问本地网络',
'st.display.allow_local_network.desc': '允许代理的 fetch_url 工具访问回环(127.0.0.1、localhost)和私有/RFC1918 地址(10.x、192.168.x、172.16–31.x)。用于本地开发服务器、内网工具或自托管 API。默认关闭。关闭时会阻止直接写有私有或回环 IP 地址的 URL 以及 localhost 主机名。不检查 DNS 解析,因此其他主机名仍可能连接到本地地址。即使开启,云元数据的 IP 字面量(169.254.169.254)以及列表中的元数据主机名或 *.internal/*.local 主机名仍会被阻止。',
- 'st.display.notify_sound.label': '完成提示音',
- 'st.display.notify_sound.desc': '代理完成任务时在侧边栏播放短促的提示音。取消运行则不播放。',
+ 'st.display.notify_sound.label': "通知提示音",
+ 'st.display.notify_sound.desc': "为等待审核的计划播放不同的提示音,在任务完成或需要澄清时播放短促的铃声。取消运行时不播放声音。",
'st.display.completion_confetti.label': '完成彩纸',
'st.display.completion_confetti.desc': '任务成功完成时从顶部播放短暂的彩纸动画。默认开启;如果想要更安静的完成效果,可将其关闭。',
- 'st.display.completion_flash_tab.label': "闪烁已完成的标签页",
- 'st.display.completion_flash_tab.desc': "当任务在你离开的标签页中完成时,该标签页的标题和图标会闪烁,让你一眼看出是哪个标签页完成了。",
+ 'st.display.completion_flash_tab.label': "收到提醒时闪烁标签页",
+ 'st.display.completion_flash_tab.desc': "当计划准备好供你审核或任务完成时,后台标签页的标题和图标会闪烁。计划使用 ⚠️ 图标。",
'st.display.max_steps.label': '代理最大步骤数',
'st.display.max_steps.desc': '代理每条消息可执行的最大工具调用步数。更高的值允许更复杂的多步任务,但可能消耗更多 token。将滑块设为 ∞ 可不限步骤数。',
'st.display.traces_link.label': '轨迹',
diff --git a/src/chrome/src/ui/settings.html b/src/chrome/src/ui/settings.html
index b5df54065..cac927937 100644
--- a/src/chrome/src/ui/settings.html
+++ b/src/chrome/src/ui/settings.html
@@ -1710,8 +1710,8 @@
</div>
<div class="setting-row">
<div class="setting-info">
- <div class="setting-label" data-i18n="st.display.notify_sound.label"></div>
- <div class="setting-desc" data-i18n="st.display.notify_sound.desc"></div>
+ <div class="setting-label" data-i18n="st.display.notify_sound.label">Notification sounds</div>
+ <div class="setting-desc" data-i18n="st.display.notify_sound.desc">Play a distinct sound for plans awaiting review and a short chime for completion or clarification. No sound when you cancel a run.</div>
</div>
<label class="toggle">
<input type="checkbox" id="toggle-notify-sound" checked>
@@ -1730,8 +1730,8 @@
</div>
<div class="setting-row">
<div class="setting-info">
- <div class="setting-label" data-i18n="st.display.completion_flash_tab.label"></div>
- <div class="setting-desc" data-i18n="st.display.completion_flash_tab.desc"></div>
+ <div class="setting-label" data-i18n="st.display.completion_flash_tab.label">Flash tabs for alerts</div>
+ <div class="setting-desc" data-i18n="st.display.completion_flash_tab.desc">Blink a background tab’s title and icon when a plan is ready for review or a task finishes. Plans use a ⚠️ icon.</div>
</div>
<label class="toggle">
<input type="checkbox" id="toggle-completion-flash-tab" checked>
diff --git a/src/firefox/icons/plan-review.png b/src/firefox/icons/plan-review.png
new file mode 100644
index 000000000..363095407
Binary files /dev/null and b/src/firefox/icons/plan-review.png differ
diff --git a/src/firefox/src/background.js b/src/firefox/src/background.js
index 3d9357891..b6c091081 100644
--- a/src/firefox/src/background.js
+++ b/src/firefox/src/background.js
@@ -1918,10 +1918,11 @@ browser.tabs.onRemoved.addListener((tabId) => {
clearRunUiSnapshot(tabId);
clearDetachedRunFailure(tabId);
flashedBadgeTabs.delete(tabId);
+ attentionBadgeOwners.delete(tabId);
});
-// ─── Completion attention flash ─────────────────────────────────────
-// When a run settles on a background tab, the side panel asks us to make
+// ─── Completion and plan attention flash ─────────────────────────────────────
+// When a run settles or presents a plan on a background tab, make
// that tab noticeable. The preferred path blinks the page title/favicon
// via the content script; when no receiver answers (restricted pages,
// discarded tabs, …) we fall back to a per-tab toolbar badge that clears
@@ -1946,23 +1947,31 @@ browser.notifications.onClosed.addListener((notificationId) => {
completionNotificationFocusHandlers.delete(notificationId);
});
-async function showCompletionNotification(tabId, success) {
+async function showCompletionNotification(tabId, success, reason = 'completion', isCurrent = () => true) {
let tab = null;
try {
tab = await browser.tabs.get(tabId);
} catch { return; }
- const message = tab?.title || tab?.url || 'A background task finished.';
+ if (!isCurrent()) return;
+ const planReview = reason === 'plan_review';
+ const attention = planReview ? planReviewAttentionByTab.get(tabId) : null;
+ const message = tab?.title || tab?.url || (planReview ? 'A plan is waiting for your review.' : 'A background task finished.');
let notificationId = null;
try {
notificationId = await browser.notifications.create({
type: 'basic',
- iconUrl: browser.runtime.getURL('icons/icon48.png'),
- title: `WebBrain — ${success ? 'Task finished' : 'Task needs attention'}`,
+ iconUrl: browser.runtime.getURL(planReview ? 'icons/plan-review.png' : 'icons/icon48.png'),
+ title: planReview ? 'WebBrain — ⚠️ Plan ready for review' : `WebBrain — ${success ? 'Task finished' : 'Task needs attention'}`,
message,
silent: true,
});
} catch { return; }
if (!notificationId) return;
+ if (!isCurrent()) {
+ void browser.notifications.clear(notificationId).catch(() => {});
+ return;
+ }
+ if (attention) attention.notificationId = notificationId;
setTimeout(() => {
completionNotificationFocusHandlers.delete(notificationId);
browser.notifications.clear(notificationId).catch(() => {});
@@ -1980,6 +1989,7 @@ async function showCompletionNotification(tabId, success) {
browser.tabs.onActivated.addListener(({ tabId } = {}) => {
flashedBadgeTabs.delete(tabId);
+ attentionBadgeOwners.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(() => {});
@@ -1997,6 +2007,7 @@ browser.windows.onFocusChanged.addListener(async (windowId) => {
const activeTabId = Number(activeTab?.id);
if (!Number.isInteger(activeTabId)) return;
flashedBadgeTabs.delete(activeTabId);
+ attentionBadgeOwners.delete(activeTabId);
await browser.browserAction.setBadgeText({ tabId: activeTabId, text: '' });
} catch { /* best-effort cleanup */ }
});
@@ -2026,12 +2037,17 @@ async function maybeFlashScheduledTerminalEvent(_tabId, type, data) {
}
async function flashTabAttention(msg) {
+ const isCurrent = typeof msg?.isCurrent === 'function' ? msg.isCurrent : () => true;
try {
const stored = await browser.storage.local.get('completionFlashTab');
if (stored?.completionFlashTab === false) return { ok: true, mode: 'disabled' };
} catch { /* setting defaults to on */ }
+ if (!isCurrent()) return { ok: true, mode: 'stale' };
const tabId = Number(msg?.tabId);
const success = msg?.success !== false;
+ const reason = msg?.reason === 'plan_review' ? 'plan_review' : 'completion';
+ const planReview = reason === 'plan_review';
+ const attentionId = String(msg?.attentionId || '');
if (!Number.isInteger(tabId) || tabId < 0) {
return { ok: false, error: 'flash_tab_attention requires a valid tabId.' };
}
@@ -2040,6 +2056,7 @@ async function flashTabAttention(msg) {
} catch {
return { ok: false, error: `Tab ${tabId} no longer exists.` };
}
+ if (!isCurrent()) return { ok: true, mode: 'stale' };
// Discarded/unloaded tabs and pages whose content script declines to
// blink (document already visible) both fall through to the badge
// fallback — which works without touching the page and survives until
@@ -2049,13 +2066,24 @@ async function flashTabAttention(msg) {
const response = await browser.tabs.sendMessage(tabId, {
target: 'content',
action: 'attention_flash_start',
- params: { success },
+ params: { success, reason, attentionId },
});
flashAccepted = response?.started === true;
} catch {
flashAccepted = false;
}
- if (flashAccepted) return { ok: true, mode: 'title-flash' };
+ if (!isCurrent()) {
+ if (flashAccepted && attentionId) {
+ void browser.tabs.sendMessage(tabId, {
+ target: 'content', action: 'attention_flash_stop', params: { attentionId },
+ }).catch(() => {});
+ }
+ return { ok: true, mode: 'stale' };
+ }
+ if (flashAccepted) {
+ if (planReview) await showCompletionNotification(tabId, false, reason, isCurrent);
+ return { ok: true, mode: planReview ? 'title-flash+notification' : 'title-flash' };
+ }
// No content-script receiver (or it declined) — fall back to a per-tab
// toolbar badge. But re-check first whether the user is actually looking
// at the tab: "active" only means selected within its own window, so an
@@ -2074,17 +2102,30 @@ async function flashTabAttention(msg) {
} catch {
return { ok: false, error: `Tab ${tabId} no longer exists.` };
}
+ if (!isCurrent()) return { ok: true, mode: 'stale' };
if (tabIsWatched) return { ok: true, mode: 'skipped-tab-watched' };
+ const badgeOwner = { attentionId };
+ attentionBadgeOwners.set(tabId, badgeOwner);
+ const attention = planReviewAttentionByTab.get(tabId);
+ if (attention?.id === attentionId) attention.badge = true;
try {
- await browser.browserAction.setBadgeText({ tabId, text: success ? '✓' : '!' });
+ await browser.browserAction.setBadgeText({ tabId, text: planReview ? '⚠' : success ? '✓' : '!' });
+ if (!isCurrent()) {
+ await clearAttentionBadge(tabId, badgeOwner);
+ return { ok: true, mode: 'stale' };
+ }
await browser.browserAction.setBadgeBackgroundColor({
tabId,
- color: success ? '#22c55e' : '#ef4444',
+ color: planReview ? '#f59e0b' : success ? '#22c55e' : '#ef4444',
});
+ if (!isCurrent()) {
+ await clearAttentionBadge(tabId, badgeOwner);
+ return { ok: true, mode: 'stale' };
+ }
flashedBadgeTabs.add(tabId);
// The badge itself is invisible while another tab is selected — pair it
// with a system notification so the completion is discoverable anyway.
- await showCompletionNotification(tabId, success);
+ await showCompletionNotification(tabId, success, reason, isCurrent);
return { ok: true, mode: 'badge+notification' };
} catch (error) {
return { ok: false, error: String(error?.message || error) };
@@ -2154,6 +2195,7 @@ const runUiJournal = new RunUiJournal({
const runUiSnapshotReads = new Map();
function beginRunUiSnapshot(tabId, requestId, metadata = {}) {
+ clearPlanReviewAttention(tabId);
runUiSnapshotReads.delete(tabId);
runUiPersistenceFailures.delete(tabId);
return runUiJournal.begin(tabId, requestId, metadata);
@@ -2286,6 +2328,7 @@ async function getRunUiSnapshot(tabId) {
}
function clearRunUiSnapshot(tabId) {
+ clearPlanReviewAttention(tabId);
runUiSnapshotReads.delete(tabId);
runUiSnapshotPersistence.cancel(tabId);
runUiJournal.clear(tabId);
@@ -2301,6 +2344,8 @@ function clearRunUiSnapshot(tabId) {
function sendAgentUpdate(tabId, requestId, type, data) {
const event = recordRunUiEvent(tabId, requestId, type, data);
if (!event) return;
+ if (type === 'plan_review') notifyPlanReview(tabId, requestId, event.data ?? data);
+ if (type === 'plan_resolved') clearPlanReviewAttention(tabId, requestId, data?.planId);
if (type === 'clarify') agent._capturePendingClarificationForUi?.(tabId, requestId, event.data ?? data, event);
browser.runtime.sendMessage({
target: 'sidepanel', action: 'agent_update', tabId, requestId,
@@ -2309,6 +2354,56 @@ function sendAgentUpdate(tabId, requestId, type, data) {
}).catch(() => {});
}
+// Alert only for newly emitted plans. Journal replay never passes through
+// this dispatcher, and each live plan can be delivered more than once.
+const planReviewAlertIds = new WeakMap();
+const planReviewAttentionByTab = new Map();
+const attentionBadgeOwners = new Map();
+
+async function clearAttentionBadge(tabId, owner) {
+ const current = attentionBadgeOwners.get(tabId);
+ if (current && current !== owner) return;
+ attentionBadgeOwners.delete(tabId);
+ flashedBadgeTabs.delete(tabId);
+ await browser.browserAction.setBadgeText({ tabId, text: '' });
+}
+
+function clearPlanReviewAttention(tabId, requestId = null, planId = null) {
+ const attention = planReviewAttentionByTab.get(tabId);
+ if (!attention || (requestId && attention.requestId !== requestId)
+ || (planId && attention.planId !== String(planId))) return;
+ planReviewAttentionByTab.delete(tabId);
+ void browser.tabs.sendMessage(tabId, {
+ target: 'content', action: 'attention_flash_stop', params: { attentionId: attention.id },
+ }).catch(() => {});
+ const badgeOwner = attentionBadgeOwners.get(tabId);
+ if (attention.badge && badgeOwner?.attentionId === attention.id) {
+ void clearAttentionBadge(tabId, badgeOwner).catch(() => {});
+ }
+ if (attention.notificationId) {
+ completionNotificationFocusHandlers.delete(attention.notificationId);
+ void browser.notifications.clear(attention.notificationId).catch(() => {});
+ }
+}
+
+function notifyPlanReview(tabId, requestId, data) {
+ const snapshot = runUiJournal.get(tabId);
+ const planId = String(data?.planId || '');
+ const isCurrent = () => !!planId && runUiJournal.get(tabId) === snapshot
+ && snapshot?.requestId === requestId && snapshot.status === 'awaiting_plan'
+ && snapshot.pendingPlanId === planId;
+ if (!isCurrent()) return;
+ let alerted = planReviewAlertIds.get(snapshot);
+ if (!alerted) planReviewAlertIds.set(snapshot, alerted = new Set());
+ if (alerted.has(planId)) return;
+ alerted.add(planId);
+ clearPlanReviewAttention(tabId);
+ const attentionId = JSON.stringify([tabId, requestId, planId]);
+ planReviewAttentionByTab.set(tabId, { id: attentionId, requestId, planId });
+ void playWatchAlert(browser, { style: 'plan_review', isCurrent, planReview: { tabId, requestId, planId } }).catch(() => {});
+ void flashTabAttention({ tabId, success: false, reason: 'plan_review', isCurrent, attentionId }).catch(() => {});
+}
+
function sendScheduledAgentUpdate(tabId, type, data, owner) {
if (tabId == null || !owner?.jobId || !owner?.executionId) return;
const requestId = `scheduled:${owner.jobId}:${owner.executionId}`;
@@ -2509,6 +2604,7 @@ async function sendAgentRunComplete(tabId, snapshot = null) {
&& snapshot.requestId === requestId && snapshot.status === status
&& snapshot.endedAt === endedAt && snapshot.seq === seq;
if (endedAt == null || !['completed', 'stopped', 'failed', 'cancelled', 'clarification_required'].includes(status)) return;
+ clearPlanReviewAttention(tabId, snapshot.requestId);
await flushRunUiSnapshot(tabId, snapshot.requestId);
if (!isCurrent()) return;
// Live runs continue in the background even if their side panel is closed
diff --git a/src/firefox/src/content/content.js b/src/firefox/src/content/content.js
index af8b7e83c..0ff02127f 100644
--- a/src/firefox/src/content/content.js
+++ b/src/firefox/src/content/content.js
@@ -7502,10 +7502,10 @@
'wait_for_element': () => waitForElement(msg.params || {}),
'get_selection': () => ({ text: window.getSelection()?.toString() || '' }),
'find_text': () => findText(msg.params || {}),
- // ── Completion attention flash (tab title/favicon blink) ─────────
+ // ── Completion / plan attention flash (tab title/favicon blink) ──
'attention_flash_start': () => {
try {
- return { success: true, started: startAttentionFlash() };
+ return { success: true, started: startAttentionFlash(msg.params || {}) };
} catch (error) {
if (error?.code === 'page_feedback_pending') throw error;
return { success: false, error: error?.message || String(error) };
@@ -7513,7 +7513,7 @@
},
'attention_flash_stop': () => {
try {
- stopAttentionFlash();
+ stopAttentionFlash(msg.params || {});
return { success: true };
} catch (error) {
if (error?.code === 'page_feedback_pending') throw error;
@@ -9200,11 +9200,11 @@
});
// ─── Tab attention flash ────────────────────────────────────────────
- // When a run finishes on a tab the user has navigated away from, the side
- // panel asks this page to blink its title and favicon so the finished tab
+ // When a run finishes or a plan needs review on a tab the user has left,
+ // the background asks this page to blink its title and favicon so the tab
// can be found at a glance. With many tabs open the strip only shows the
// favicon, so the favicon itself alternates between the site's own icons
- // and a bell alert icon — swapping the site's <link> hrefs outright,
+ // and an alert icon — swapping the site's <link> hrefs outright,
// because an appended icon link loses to favicons the page injects later.
// Blinking stops when the tab becomes visible, after
// ATTENTION_FLASH_TIMEOUT_MS, or on an explicit stop message.
@@ -9219,12 +9219,15 @@
const ATTENTION_FLASH_INTERVAL_MS = 700;
const ATTENTION_FLASH_TIMEOUT_MS = 300000;
const ATTENTION_FLASH_MARKER = '\u{1F514} ';
+ const ATTENTION_FLASH_PLAN_MARKER = '\u26A0\uFE0F ';
+ let attentionFlashMarker = ATTENTION_FLASH_MARKER;
+ let attentionFlashId = null;
let attentionFlashTimer = null;
let attentionFlashTimeout = null;
let attentionFlashOnVisible = null;
// Exact title string this flash last wrote — ownership marker. Stripping
// by prefix alone would eat a page's own title that legitimately starts
- // with the same bell character.
+ // with the same alert character.
let attentionFlashOwnTitle = null;
// Favicon blink state. Every icon <link> present when the flash started is
// remembered with its original href; the alert data URL replaces it each
@@ -9245,7 +9248,7 @@
ctx.font = '52px sans-serif';
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
- ctx.fillText(ATTENTION_FLASH_MARKER.trim(), 32, 36);
+ ctx.fillText(attentionFlashMarker.trim(), 32, 36);
}
return canvas.toDataURL('image/png');
} catch {
@@ -9255,8 +9258,8 @@
function attentionFlashStripMarker(title) {
const text = String(title ?? '');
- return text.startsWith(ATTENTION_FLASH_MARKER)
- ? text.slice(ATTENTION_FLASH_MARKER.length)
+ return text.startsWith(attentionFlashMarker)
+ ? text.slice(attentionFlashMarker.length)
: text;
}
@@ -9318,7 +9321,11 @@
} catch { /* favicon swap is best-effort */ }
}
- function stopAttentionFlash() {
+ function stopAttentionFlash(params = {}) {
+ // A delayed cancellation belongs only to the alert that requested it.
+ // Internal stops omit the ID and always clear the current flash.
+ if (params?.attentionId != null && String(params.attentionId) !== attentionFlashId) return;
+ attentionFlashId = null;
if (attentionFlashTimer) {
clearInterval(attentionFlashTimer);
attentionFlashTimer = null;
@@ -9357,11 +9364,15 @@
attentionFlashAlertUrl = null;
}
- function startAttentionFlash() {
+ function startAttentionFlash(params = {}) {
if (typeof document === 'undefined') return false;
stopAttentionFlash();
+ // Restore the previous flash with its own marker before changing reason.
+ attentionFlashMarker = params?.reason === 'plan_review'
+ ? ATTENTION_FLASH_PLAN_MARKER : ATTENTION_FLASH_MARKER;
// Already looking at the page — nothing to draw attention to.
if (document.visibilityState === 'visible') return false;
+ attentionFlashId = params?.attentionId == null ? null : String(params.attentionId);
attentionFlashOnVisible = () => {
if (document.visibilityState === 'visible') stopAttentionFlash();
};
@@ -9372,7 +9383,7 @@
// minutes) and Memory Saver may freeze the tab outright, so the phase
// is derived from wall-clock time instead of a boolean flip: however
// sparse or late the wake-ups land, each one shows the correct side of
- // the blink and the bell is on immediately at start.
+ // the blink and the alert is on immediately at start.
const attentionFlashEpoch = Date.now();
const applyAttentionTick = () => {
const flashing = Math.floor((Date.now() - attentionFlashEpoch) / ATTENTION_FLASH_INTERVAL_MS) % 2 === 0;
@@ -9385,9 +9396,9 @@
// Only the marked phase is extension-owned — during the quiet phase
// the title belongs to the page even though we just wrote it, so it
// must never be stripped on stop.
- attentionFlashOwnTitle = flashing ? `${ATTENTION_FLASH_MARKER}${base}` : null;
+ attentionFlashOwnTitle = flashing ? `${attentionFlashMarker}${base}` : null;
document.title = flashing ? attentionFlashOwnTitle : base;
- // The favicon blinks with the title: the bell alert icon replaces the
+ // The favicon blinks with the title: the alert icon replaces the
// site's own icons during the marked phase and they return during the
// quiet one — with many tabs open the favicon is all that shows.
attentionFlashToggleFavicon(flashing);
diff --git a/src/firefox/src/ui/locales/ar.js b/src/firefox/src/ui/locales/ar.js
index 735bae06a..e73f216a2 100644
--- a/src/firefox/src/ui/locales/ar.js
+++ b/src/firefox/src/ui/locales/ar.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'يحفظ أيضًا المطالبات والرسائل ومخططات الأدوات الكاملة لكل طلب نموذج لغوي بدلاً من الملخصات الخالية من المحتوى، ويحتفظ بما يصل إلى 200 كيلوبايت من كل نتيجة أداة. يتيح تصحيح الأخطاء العميق وإعادة بناء الطلبات. معطّل افتراضيًا لأنه يكتب محتوى محادثتك محليًا ويستهلك مساحة أكبر بكثير. يتطلب تفعيل تسجيل التتبعات.',
'st.display.allow_local_network.label': 'السماح للوكيل بالوصول إلى الشبكة المحلية',
'st.display.allow_local_network.desc': 'يسمح لأداة fetch_url للوكيل بالوصول إلى عناوين loopback (127.0.0.1، localhost) وعناوين RFC1918 الخاصة (10.x، 192.168.x، 172.16–31.x). مفيد لخوادم التطوير المحلية، وأدوات الإنترانت، وواجهات API ذاتية الاستضافة. مُعطَّل افتراضيًا. عند تعطيله، تُحظر عناوين IP الخاصة وloopback المكتوبة في URL وأسماء localhost. لا يتم فحص تحليل DNS، لذا قد تصل أسماء أخرى إلى عناوين محلية. تظل عناوين IP الحرفية لبيانات السحابة (169.254.169.254) وأسماء بيانات السحابة المدرجة أو *.internal/*.local محظورة حتى عند التفعيل.',
- 'st.display.notify_sound.label': 'صوت الإكمال',
- 'st.display.notify_sound.desc': 'تشغيل نغمة قصيرة في اللوحة الجانبية عندما ينهي الوكيل مهمته. لا تُشغَّل إذا ألغيت التشغيل.',
+ 'st.display.notify_sound.label': "أصوات الإشعارات",
+ 'st.display.notify_sound.desc': "تشغيل صوت مميز للخطط التي تنتظر المراجعة ونغمة قصيرة عند إكمال مهمة أو طلب توضيح. لا يصدر صوت عند إلغاء التشغيل.",
'st.display.completion_confetti.label': 'قصاصات احتفال عند الإكمال',
'st.display.completion_confetti.desc': 'يعرض حركة قصيرة لقصاصات احتفال من الأعلى عند اكتمال المهمة بنجاح. مفعّل افتراضيًا؛ أوقفه إذا أردت نهاية أهدأ.',
- 'st.display.completion_flash_tab.label': "وميض التبويب المكتمل",
- 'st.display.completion_flash_tab.desc': "عند انتهاء مهمة في تبويب غادرته، يومض عنوان ذلك التبويب وأيقونته لتعرف بنظرة واحدة أي تبويب اكتمل.",
+ 'st.display.completion_flash_tab.label': "وميض التبويبات للتنبيهات",
+ 'st.display.completion_flash_tab.desc': "يومض عنوان التبويب في الخلفية وأيقونته عندما تكون الخطة جاهزة للمراجعة أو تنتهي مهمة. تستخدم الخطط الأيقونة ⚠️.",
'st.display.max_steps.label': 'الحدّ الأقصى لخطوات الوكيل',
'st.display.max_steps.desc': 'العدد الأقصى لخطوات استخدام الأدوات في الرسالة الواحدة. القيم الأعلى تتيح مهامًا متعدّدة الخطوات أكثر تعقيدًا، لكنها قد تستهلك مزيدًا من الرموز. اضبط شريط التمرير على ∞ لخطوات غير محدودة.',
'st.display.traces_link.label': 'التتبّعات',
diff --git a/src/firefox/src/ui/locales/bn.js b/src/firefox/src/ui/locales/bn.js
index f02304bde..c61f8c85f 100644
--- a/src/firefox/src/ui/locales/bn.js
+++ b/src/firefox/src/ui/locales/bn.js
@@ -701,12 +701,12 @@ export default {
'st.display.scheduled_tasks.desc': "WebBrain কে পিছিয়ে যাওয়া কাজ পুনরায় শুরু করতে এবং ব্রাউজার অ্যালার্ম ব্যবহার করে ওয়ান-শট বা পুনরাবৃত্ত নির্ধারিত কাজ চালানোর অনুমতি দিন। ডিফল্টরূপে চালু",
'st.display.scheduled_confirm.label': "নির্ধারিত ফলাফলমূলক কর্ম নিশ্চিত করুন",
'st.display.scheduled_confirm.desc': "যখন চালু থাকে, তখনও অনুপস্থিত নির্ধারিত রানগুলি ফলস্বরূপ ক্রিয়াকলাপের আগে অনুমতির জন্য থামে। আপনি যদি সেই প্রম্পট ছাড়া কাজ করার জন্য নির্ধারিত কাজগুলিতে বিশ্বাস করেন তবেই বন্ধ করুন৷",
- 'st.display.notify_sound.label': "সমাপ্তির শব্দ",
- 'st.display.notify_sound.desc': "যখন এজেন্ট একটি কাজ শেষ করে তখন পাশের প্যানেলে একটি ছোট চাইম বাজান। আপনি রান বাতিল করলে খেলবেন না।",
+ 'st.display.notify_sound.label': "বিজ্ঞপ্তির শব্দ",
+ 'st.display.notify_sound.desc': "পর্যালোচনার অপেক্ষায় থাকা পরিকল্পনার জন্য আলাদা শব্দ এবং কাজ শেষ হলে বা ব্যাখ্যা চাওয়া হলে ছোট একটি ঘণ্টাধ্বনি বাজান। রান বাতিল করলে কোনো শব্দ বাজবে না।",
'st.display.completion_confetti.label': "সমাপ্তি কনফেটি",
'st.display.completion_confetti.desc': "একটি টাস্ক সফলভাবে সম্পন্ন হলে উপরে থেকে একটি ছোট কনফেটি অ্যানিমেশন ড্রপ করুন। ডিফল্টরূপে চালু; আপনি একটি শান্ত ফিনিস পছন্দ যদি এটি বন্ধ.",
- 'st.display.completion_flash_tab.label': "সম্পন্ন ট্যাব ঝলকান",
- 'st.display.completion_flash_tab.desc': "আপনি যে ট্যাব ছেড়ে এসেছেন সেখানে কোনো কাজ শেষ হলে সেই ট্যাবের শিরোনাম ও ফ্যাভিকন ঝলকায়, যাতে এক নজরে বোঝা যায় কোনটি শেষ হয়েছে।",
+ 'st.display.completion_flash_tab.label': "সতর্কতার জন্য ট্যাব ঝলকান",
+ 'st.display.completion_flash_tab.desc': "কোনো পরিকল্পনা পর্যালোচনার জন্য প্রস্তুত হলে বা কাজ শেষ হলে পটভূমির ট্যাবের শিরোনাম ও আইকন ঝলকায়। পরিকল্পনার জন্য ⚠️ আইকন ব্যবহার করা হয়।",
'st.display.max_steps.label': "সর্বোচ্চ এজেন্ট পদক্ষেপ",
'st.display.max_steps.desc': "প্রতি বার্তা প্রতি এজেন্ট সর্বোচ্চ সংখ্যক টুল-ব্যবহারের পদক্ষেপ নিতে পারে। উচ্চতর মানগুলি আরও জটিল বহু-পদক্ষেপের কাজগুলিকে অনুমতি দেয় তবে আরও টোকেন ব্যবহার করতে পারে৷ সীমাহীন পদক্ষেপের জন্য স্লাইডারটিকে ∞ এ সেট করুন।",
'st.display.request_timeout.label': "LLM অনুরোধের সময়সীমা",
diff --git a/src/firefox/src/ui/locales/de.js b/src/firefox/src/ui/locales/de.js
index e563aaebd..cd2bb10c7 100644
--- a/src/firefox/src/ui/locales/de.js
+++ b/src/firefox/src/ui/locales/de.js
@@ -698,12 +698,12 @@ export default {
'st.display.scheduled_tasks.desc': 'Ermöglicht es WebBrain, verschobene Arbeit fortzusetzen und einmalige oder wiederkehrende geplante Aufgaben über Browser-Alarms auszuführen.',
'st.display.scheduled_confirm.label': 'Geplante bedeutsame Aktionen bestätigen',
'st.display.scheduled_confirm.desc': 'Wenn aktiviert, halten auch unbeaufsichtigte geplante Durchläufe vor bedeutsamen Aktionen für eine Berechtigung an.',
- 'st.display.notify_sound.label': 'Abschlussklang',
- 'st.display.notify_sound.desc': 'Spielt einen kurzen Klang in der Seitenleiste, wenn der Agent eine Aufgabe abschließt.',
+ 'st.display.notify_sound.label': "Benachrichtigungstöne",
+ 'st.display.notify_sound.desc': "Spielt einen eigenen Ton für Pläne, die auf Prüfung warten, und einen kurzen Klang beim Abschluss oder bei Rückfragen. Beim Abbrechen eines Durchlaufs ertönt kein Ton.",
'st.display.completion_confetti.label': 'Abschluss-Konfetti',
'st.display.completion_confetti.desc': 'Lässt eine kurze Konfetti-Animation von oben fallen, wenn eine Aufgabe erfolgreich abgeschlossen wird.',
- 'st.display.completion_flash_tab.label': "Fertigen Tab aufblinken lassen",
- 'st.display.completion_flash_tab.desc': "Wenn eine Aufgabe in einem Tab abgeschlossen wird, den du verlassen hast, blinkt der Titel und das Favicon dieses Tabs, damit du auf einen Blick erkennst, welcher Tab fertig ist.",
+ 'st.display.completion_flash_tab.label': "Tabs bei Hinweisen blinken lassen",
+ 'st.display.completion_flash_tab.desc': "Lässt Titel und Symbol eines Hintergrund-Tabs blinken, wenn ein Plan zur Prüfung bereitsteht oder eine Aufgabe abgeschlossen ist. Pläne verwenden das Symbol ⚠️.",
'st.display.max_steps.label': 'Maximale Agent-Schritte',
'st.display.max_steps.desc': 'Maximale Anzahl an Tool-Schritten, die der Agent pro Nachricht ausführen kann. Höhere Werte ermöglichen komplexere mehrstufige Aufgaben, können aber mehr Token verbrauchen. Stellen Sie den Schieberegler für unbegrenzte Schritte auf ∞.',
'st.display.request_timeout.label': 'LLM-Anfrage-Timeout',
diff --git a/src/firefox/src/ui/locales/en.js b/src/firefox/src/ui/locales/en.js
index 155ac4596..f01566cc9 100644
--- a/src/firefox/src/ui/locales/en.js
+++ b/src/firefox/src/ui/locales/en.js
@@ -707,12 +707,12 @@ export default {
'st.display.scheduled_tasks.desc': 'Allow WebBrain to resume deferred work and run one-shot or recurring scheduled tasks using browser alarms. On by default.',
'st.display.scheduled_confirm.label': 'Confirm scheduled consequential actions',
'st.display.scheduled_confirm.desc': 'When on, unattended scheduled runs still stop for permission before consequential actions. Turn off only if you trust scheduled tasks to act without those prompts.',
- 'st.display.notify_sound.label': 'Completion sound',
- 'st.display.notify_sound.desc': 'Play a short chime in the side panel when the agent finishes a task. Won\'t play if you cancel the run.',
+ 'st.display.notify_sound.label': "Notification sounds",
+ 'st.display.notify_sound.desc': "Play a distinct sound for plans awaiting review and a short chime for completion or clarification. No sound when you cancel a run.",
'st.display.completion_confetti.label': 'Completion confetti',
'st.display.completion_confetti.desc': 'Drop a short confetti animation from the top when a task completes successfully. On by default; turn it off if you prefer a calmer finish.',
- 'st.display.completion_flash_tab.label': 'Flash finished tab',
- 'st.display.completion_flash_tab.desc': 'When a task finishes on a tab you\'ve navigated away from, blink that tab\'s title and favicon so you can find it at a glance.',
+ 'st.display.completion_flash_tab.label': "Flash tabs for alerts",
+ 'st.display.completion_flash_tab.desc': "Blink a background tab’s title and icon when a plan is ready for review or a task finishes. Plans use a ⚠️ icon.",
'st.display.max_steps.label': 'Max Agent Steps',
'st.display.max_steps.desc': 'Maximum number of tool-use steps the agent can take per message. Higher values allow more complex multi-step tasks but may use more tokens. Set the slider to ∞ for unlimited steps.',
'st.display.request_timeout.label': 'LLM request timeout',
diff --git a/src/firefox/src/ui/locales/es.js b/src/firefox/src/ui/locales/es.js
index 2a6ab0304..633f76e7f 100644
--- a/src/firefox/src/ui/locales/es.js
+++ b/src/firefox/src/ui/locales/es.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'También guarda los prompts, mensajes y esquemas de herramientas completos de cada solicitud LLM en lugar de resúmenes sin contenido, y conserva hasta 200 KB de cada resultado de herramienta. Permite depuración profunda y reconstrucción de solicitudes. Desactivado por defecto porque escribe el contenido de tu conversación localmente y usa mucho más disco. Requiere que Grabar trazas esté activado.',
'st.display.allow_local_network.label': 'Permitir al agente acceder a la red local',
'st.display.allow_local_network.desc': 'Permite que la herramienta fetch_url del agente alcance direcciones loopback (127.0.0.1, localhost) y privadas/RFC1918 (10.x, 192.168.x, 172.16–31.x). Útil para servidores de desarrollo locales, herramientas de intranet o APIs auto-alojadas. Desactivado por defecto. Al desactivarlo, se bloquean las URL escritas con IP privadas o de loopback y nombres localhost. No se comprueba la resolución DNS, por lo que otros nombres de host pueden alcanzar direcciones locales. Las IP literales de metadatos de la nube (169.254.169.254) y los nombres de metadatos incluidos en la lista o *.internal/*.local siguen bloqueados incluso al activarlo.',
- 'st.display.notify_sound.label': 'Sonido al terminar',
- 'st.display.notify_sound.desc': 'Reproduce un tono corto en el panel lateral cuando el agente termina una tarea. No suena si cancelas la ejecución.',
+ 'st.display.notify_sound.label': "Sonidos de notificación",
+ 'st.display.notify_sound.desc': "Reproduce un sonido distinto para los planes pendientes de revisión y un tono corto al terminar una tarea o pedir una aclaración. No suena si cancelas la ejecución.",
'st.display.completion_confetti.label': 'Confeti al completar',
'st.display.completion_confetti.desc': 'Muestra una breve animación de confeti desde arriba cuando una tarea termina correctamente. Activado de forma predeterminada; desactívalo si prefieres un final más discreto.',
- 'st.display.completion_flash_tab.label': "Hacer parpadear la pestaña terminada",
- 'st.display.completion_flash_tab.desc': "Cuando una tarea finaliza en una pestaña que has abandonado, el título y el favicon de esa pestaña parpadean para que veas de un vistazo cuál terminó.",
+ 'st.display.completion_flash_tab.label': "Hacer parpadear las pestañas con avisos",
+ 'st.display.completion_flash_tab.desc': "El título y el icono de una pestaña en segundo plano parpadean cuando un plan está listo para revisar o una tarea termina. Los planes usan el icono ⚠️.",
'st.display.max_steps.label': 'Pasos máximos del agente',
'st.display.max_steps.desc': 'Número máximo de pasos con herramientas que el agente puede dar por mensaje. Valores más altos permiten tareas más complejas pero pueden consumir más tokens. Pon el control en ∞ para pasos ilimitados.',
'st.display.traces_link.label': 'Trazas',
diff --git a/src/firefox/src/ui/locales/fa.js b/src/firefox/src/ui/locales/fa.js
index 031f3cd14..2a0a802dc 100644
--- a/src/firefox/src/ui/locales/fa.js
+++ b/src/firefox/src/ui/locales/fa.js
@@ -701,12 +701,12 @@ export default {
'st.display.scheduled_tasks.desc': "به WebBrain اجازه دهید کار معوق را از سر بگیرد و کارهای برنامه ریزی شده یکباره یا تکراری را با استفاده از آلارم های مرورگر اجرا کند. به طور پیش فرض روشن است.",
'st.display.scheduled_confirm.label': "اقدامات بعدی برنامه ریزی شده را تأیید کنید",
'st.display.scheduled_confirm.desc': "وقتی روشن است، اجراهای برنامه‌ریزی‌شده بدون نظارت همچنان برای دریافت مجوز قبل از اقدامات بعدی متوقف می‌شوند. فقط در صورتی خاموش کنید که به کارهای برنامه ریزی شده اعتماد دارید که بدون آن اعلان ها عمل کنند.",
- 'st.display.notify_sound.label': "صدای تکمیل",
- 'st.display.notify_sound.desc': "هنگامی که نماینده یک کار را تمام کرد، یک زنگ کوتاه در پانل کناری پخش کنید. اگر اجرا را لغو کنید، پخش نمی‌شود.",
+ 'st.display.notify_sound.label': "صداهای اعلان",
+ 'st.display.notify_sound.desc': "برای طرح‌های منتظر بررسی، صدایی متمایز و هنگام تکمیل کار یا درخواست توضیح، زنگی کوتاه پخش می‌کند. با لغو اجرا صدایی پخش نمی‌شود.",
'st.display.completion_confetti.label': "کانفتی تکمیل",
'st.display.completion_confetti.desc': "هنگامی که یک کار با موفقیت انجام شد، یک انیمیشن کوتاه کنفتی را از بالا رها کنید. به طور پیش فرض روشن؛ اگر رنگ آرام تری را ترجیح می دهید آن را خاموش کنید.",
- 'st.display.completion_flash_tab.label': "چشمک زدن تب پایان‌یافته",
- 'st.display.completion_flash_tab.desc': "وقتی کاری در تبی که آن را رها کرده‌اید به پایان می‌رسد، عنوان و نماد آن تب چشمک می‌زند تا یک نگاه مشخص شود کدام تب تمام شده است.",
+ 'st.display.completion_flash_tab.label': "چشمک زدن تب‌ها برای اعلان‌ها",
+ 'st.display.completion_flash_tab.desc': "وقتی طرحی آماده بررسی می‌شود یا کاری به پایان می‌رسد، عنوان و نماد تب پس‌زمینه چشمک می‌زنند. برای طرح‌ها از نماد ⚠️ استفاده می‌شود.",
'st.display.max_steps.label': "Max Agent Steps",
'st.display.max_steps.desc': "حداکثر تعداد مراحل استفاده از ابزار که نماینده می تواند در هر پیام بردارد. مقادیر بالاتر به وظایف چند مرحله ای پیچیده تری اجازه می دهد، اما ممکن است از نشانه های بیشتری استفاده کند. نوار لغزنده را برای مراحل نامحدود روی ∞ تنظیم کنید.",
'st.display.request_timeout.label': "مهلت درخواست LLM",
diff --git a/src/firefox/src/ui/locales/fr.js b/src/firefox/src/ui/locales/fr.js
index 27e282a67..c31f0ae35 100644
--- a/src/firefox/src/ui/locales/fr.js
+++ b/src/firefox/src/ui/locales/fr.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Conserve aussi les prompts, messages et schémas d\'outils complets de chaque requête LLM au lieu de résumés sans contenu, et garde jusqu\'à 200 Ko de chaque résultat d\'outil. Permet un débogage approfondi et la reconstruction des requêtes. Désactivé par défaut car cela écrit localement le contenu de votre conversation et utilise beaucoup plus d\'espace disque. Nécessite que l\'enregistrement des traces soit activé.',
'st.display.allow_local_network.label': 'Autoriser l\'agent à accéder au réseau local',
'st.display.allow_local_network.desc': 'Permet à l\'outil fetch_url de l\'agent d\'atteindre les adresses loopback (127.0.0.1, localhost) et privées/RFC1918 (10.x, 192.168.x, 172.16–31.x). Utile pour les serveurs de dev locaux, outils intranet ou API auto-hébergées. Désactivé par défaut. Lorsqu’il est désactivé, les URL contenant une adresse IP privée ou de boucle locale écrite directement et les noms localhost sont bloqués. La résolution DNS n’est pas vérifiée : d’autres noms peuvent encore atteindre des adresses locales. Les adresses IP littérales de métadonnées cloud (169.254.169.254) et les noms de métadonnées répertoriés ou *.internal/*.local restent bloqués même lorsqu’il est activé.',
- 'st.display.notify_sound.label': 'Son de fin',
- 'st.display.notify_sound.desc': 'Joue un court carillon dans le panneau latéral quand l\'agent termine une tâche. Ne joue pas si vous annulez l\'exécution.',
+ 'st.display.notify_sound.label': "Sons de notification",
+ 'st.display.notify_sound.desc': "Joue un son distinct pour les plans en attente de validation et un court carillon à la fin d’une tâche ou pour demander une précision. Aucun son si vous annulez l’exécution.",
'st.display.completion_confetti.label': 'Confettis de fin',
'st.display.completion_confetti.desc': 'Affiche une courte pluie de confettis depuis le haut quand une tâche réussit. Activé par défaut; désactivez-le si vous préférez une fin plus discrète.',
- 'st.display.completion_flash_tab.label': "Faire clignoter l’onglet terminé",
- 'st.display.completion_flash_tab.desc': "Quand une tâche se termine dans un onglet que vous avez quitté, son titre et son favicon clignotent pour repérer d’un seul coup d’œil lequel est terminé.",
+ 'st.display.completion_flash_tab.label': "Faire clignoter les onglets pour les alertes",
+ 'st.display.completion_flash_tab.desc': "Le titre et l’icône d’un onglet en arrière-plan clignotent lorsqu’un plan est prêt à être examiné ou qu’une tâche se termine. Les plans utilisent l’icône ⚠️.",
'st.display.max_steps.label': 'Étapes maximum de l\'agent',
'st.display.max_steps.desc': 'Nombre maximum d\'étapes d\'outil que l\'agent peut effectuer par message. Des valeurs plus élevées permettent des tâches plus complexes mais peuvent consommer plus de tokens. Réglez le curseur sur ∞ pour des étapes illimitées.',
'st.display.traces_link.label': 'Traces',
diff --git a/src/firefox/src/ui/locales/he.js b/src/firefox/src/ui/locales/he.js
index edc4a5f4b..b3d76cd23 100644
--- a/src/firefox/src/ui/locales/he.js
+++ b/src/firefox/src/ui/locales/he.js
@@ -678,12 +678,12 @@ export default {
"st.display.scheduled_tasks.desc": "לְהַתִיר WebBrain כדי לחדש עבודה דחויה ולהפעיל משימות מתוזמנות חד פעמיות או חוזרות באמצעות אזעקות דפדפן. פועל כברירת מחדל.",
"st.display.scheduled_confirm.label": "אשר פעולות תוצאתיות מתוזמנות",
"st.display.scheduled_confirm.desc": "כאשר פועל, ריצות מתוזמנות ללא השגחה עדיין נעצרות לקבלת הרשאה לפני פעולות תוצאתיות. כבה רק אם אתה סומך על משימות מתוזמנות לפעול ללא הנחיות אלה.",
- "st.display.notify_sound.label": "צליל השלמה",
- "st.display.notify_sound.desc": "השמע צלצול קצר בלוח הצד כאשר הסוכן מסיים משימה. לא ישחק אם תבטל את הריצה.",
+ "st.display.notify_sound.label": "צלילי התראות",
+ "st.display.notify_sound.desc": "השמעת צליל ייחודי לתוכניות שממתינות לבדיקה וצלצול קצר בסיום משימה או בבקשת הבהרה. לא יושמע צליל בעת ביטול ההרצה.",
"st.display.completion_confetti.label": "קונפטי השלמה",
"st.display.completion_confetti.desc": "זרוק אנימציית קונפטי קצרה מלמעלה כאשר משימה הושלמה בהצלחה. פועל כברירת מחדל; כבה אותו אם אתה מעדיף גימור רגוע יותר.",
- 'st.display.completion_flash_tab.label': "הבהוב הכרטיסייה שהסתיימה",
- 'st.display.completion_flash_tab.desc': "כאשר משימה מסתיימת בכרטיסייה שעזבת, הכותרת והסמל של אותה כרטיסייה מהבהבים כדי שתזהה במבט אחד איזו הסתיי9מה.",
+ 'st.display.completion_flash_tab.label': "הבהוב כרטיסיות בהתראות",
+ 'st.display.completion_flash_tab.desc': "הכותרת והסמל של כרטיסייה ברקע מהבהבים כשתוכנית מוכנה לבדיקה או כשמשימה מסתיימת. תוכניות משתמשות בסמל ⚠️.",
"st.display.max_steps.label": "מקס סוכן צעדים",
"st.display.max_steps.desc": "המספר המרבי של צעדי שימוש בכלי שהסוכן יכול לבצע בכל הודעה. ערכים גבוהים יותר מאפשרים משימות מרובות שלבים מורכבות יותר אך עשויים להשתמש ביותר אסימונים. הגדר את המחוון ל-∞ עבור צעדים בלתי מוגבלים.",
"st.display.request_timeout.label": "זמן קצוב לבקשת LLM",
diff --git a/src/firefox/src/ui/locales/hi.js b/src/firefox/src/ui/locales/hi.js
index 61b3a546b..4ed4e7af6 100644
--- a/src/firefox/src/ui/locales/hi.js
+++ b/src/firefox/src/ui/locales/hi.js
@@ -701,12 +701,12 @@ export default {
'st.display.scheduled_tasks.desc': "WebBrain को स्थगित कार्य को फिर से शुरू करने और ब्राउज़र अलार्म का उपयोग करके एक-शॉट या आवर्ती निर्धारित कार्यों को चलाने की अनुमति दें। डिफ़ॉल्ट रूप से चालू.",
'st.display.scheduled_confirm.label': "निर्धारित परिणामी कार्रवाइयों की पुष्टि करें",
'st.display.scheduled_confirm.desc': "चालू होने पर, अप्राप्य शेड्यूल किए गए रन परिणामी कार्रवाइयों से पहले अनुमति के लिए रुक जाते हैं। केवल तभी बंद करें जब आपको निर्धारित कार्यों पर उन संकेतों के बिना कार्य करने का भरोसा हो।",
- 'st.display.notify_sound.label': "समापन ध्वनि",
- 'st.display.notify_sound.desc': "जब एजेंट कोई कार्य पूरा कर ले तो साइड पैनल में एक छोटी सी घंटी बजाएं। यदि आप रन रद्द कर देंगे तो नहीं खेलेंगे।",
+ 'st.display.notify_sound.label': "सूचना ध्वनियाँ",
+ 'st.display.notify_sound.desc': "समीक्षा की प्रतीक्षा कर रही योजनाओं के लिए अलग ध्वनि और कार्य पूरा होने या स्पष्टीकरण माँगने पर छोटी घंटी बजाएँ। रन रद्द करने पर कोई ध्वनि नहीं बजेगी।",
'st.display.completion_confetti.label': "समापन कंफ़ेद्दी",
'st.display.completion_confetti.desc': "जब कोई कार्य सफलतापूर्वक पूरा हो जाए तो ऊपर से एक छोटा कंफ़ेटी एनीमेशन छोड़ें। डिफ़ॉल्ट रूप से चालू; यदि आप शांत समापन पसंद करते हैं तो इसे बंद कर दें।",
- 'st.display.completion_flash_tab.label': "पूर्ण हुए टैब को फ़्लैश करें",
- 'st.display.completion_flash_tab.desc': "जब कोई कार्य किसी ऐसे टैब में पूरा होता है जिसे आपने छोड় दिया है, तो उस टैब का शीर्षक और फ़ेविकॉन तीव्र पहचान के लिए टिमटिमाता है।",
+ 'st.display.completion_flash_tab.label': "अलर्ट के लिए टैब चमकाएँ",
+ 'st.display.completion_flash_tab.desc': "जब कोई योजना समीक्षा के लिए तैयार हो या कार्य पूरा हो, तो पृष्ठभूमि वाले टैब का शीर्षक और आइकन चमकते हैं। योजनाओं के लिए ⚠️ आइकन का उपयोग होता है।",
'st.display.max_steps.label': "मैक्स एजेंट कदम",
'st.display.max_steps.desc': "एजेंट प्रति संदेश उपकरण-उपयोग के चरणों की अधिकतम संख्या उठा सकता है। उच्च मान अधिक जटिल बहु-चरणीय कार्यों की अनुमति देते हैं लेकिन अधिक टोकन का उपयोग कर सकते हैं। असीमित चरणों के लिए स्लाइडर को ∞ पर सेट करें।",
'st.display.request_timeout.label': "एलएलएम अनुरोध समयबाह्य",
diff --git a/src/firefox/src/ui/locales/id.js b/src/firefox/src/ui/locales/id.js
index 4514f42d5..5b17bd225 100644
--- a/src/firefox/src/ui/locales/id.js
+++ b/src/firefox/src/ui/locales/id.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Juga menyimpan prompt, pesan, dan skema alat lengkap dari setiap permintaan LLM alih-alih ringkasan tanpa konten, dan menyimpan hingga 200 KB setiap hasil alat. Memungkinkan debug mendalam dan rekonstruksi permintaan. Nonaktif secara default karena menulis konten percakapan Anda secara lokal dan memakai disk jauh lebih banyak. Memerlukan perekaman trace aktif.',
'st.display.allow_local_network.label': 'Izinkan agen mengakses jaringan lokal',
'st.display.allow_local_network.desc': 'Memungkinkan alat fetch_url agen menjangkau loopback (127.0.0.1, localhost) dan alamat privat/RFC1918 (10.x, 192.168.x, 172.16–31.x). Berguna untuk server pengembangan lokal, alat intranet, atau API yang di-host sendiri. Nonaktif secara bawaan. Saat nonaktif, URL dengan alamat IP privat atau loopback yang ditulis langsung dan nama localhost diblokir. Resolusi DNS tidak diperiksa, sehingga nama host lain masih dapat menjangkau alamat lokal. IP literal metadata cloud (169.254.169.254) dan nama metadata dalam daftar atau *.internal/*.local tetap diblokir meskipun diaktifkan.',
- 'st.display.notify_sound.label': 'Suara penyelesaian',
- 'st.display.notify_sound.desc': 'Mainkan dering singkat di panel samping saat agen menyelesaikan tugas. Tidak akan dimainkan jika Anda membatalkan proses.',
+ 'st.display.notify_sound.label': "Suara notifikasi",
+ 'st.display.notify_sound.desc': "Putar suara khusus untuk rencana yang menunggu peninjauan dan bunyi singkat saat tugas selesai atau memerlukan klarifikasi. Tidak ada suara saat Anda membatalkan proses.",
'st.display.completion_confetti.label': 'Konfeti selesai',
'st.display.completion_confetti.desc': 'Tampilkan animasi konfeti singkat dari atas saat tugas berhasil selesai. Aktif secara default; matikan jika Anda ingin penutup yang lebih tenang.',
- 'st.display.completion_flash_tab.label': "Kedipkan tab yang selesai",
- 'st.display.completion_flash_tab.desc': "Saat tugas selesai di tab yang sudah kamu tinggalkan, judul dan favicon tab itu berkedip agar kamu tahu sekilas tab mana yang selesai.",
+ 'st.display.completion_flash_tab.label': "Kedipkan tab untuk peringatan",
+ 'st.display.completion_flash_tab.desc': "Judul dan ikon tab di latar belakang berkedip saat rencana siap ditinjau atau tugas selesai. Rencana menggunakan ikon ⚠️.",
'st.display.max_steps.label': 'Langkah maksimum agen',
'st.display.max_steps.desc': 'Jumlah maksimum langkah pemanggilan alat yang dapat dilakukan agen per pesan. Nilai lebih tinggi memungkinkan tugas multi-langkah lebih kompleks tetapi mungkin memakai lebih banyak token. Geser ke ∞ untuk langkah tanpa batas.',
'st.display.traces_link.label': 'Jejak',
diff --git a/src/firefox/src/ui/locales/ja.js b/src/firefox/src/ui/locales/ja.js
index 58bb81989..1d7849149 100644
--- a/src/firefox/src/ui/locales/ja.js
+++ b/src/firefox/src/ui/locales/ja.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': '各LLMリクエストの完全なプロンプト・メッセージ・ツールスキーマを、内容を含まない要約の代わりに保存し、各ツール結果を最大200KB保持します。深いデバッグとリクエスト再構築が可能になります。会話内容をローカルに書き込み、ディスク消費が大幅に増えるため、既定ではオフです。トレース記録の有効化が必要です。',
'st.display.allow_local_network.label': 'エージェントにローカルネットワークへのアクセスを許可',
'st.display.allow_local_network.desc': 'エージェントの fetch_url ツールがループバック(127.0.0.1、localhost)やプライベート/RFC1918 アドレス(10.x、192.168.x、172.16–31.x)に届くようになります。ローカル開発サーバー、社内ツール、セルフホスト API に便利です。デフォルトはオフです。オフの場合、プライベート IP やループバック IP を直接記述した URL と localhost のホスト名をブロックします。DNS の名前解決は確認しないため、別のホスト名からローカルアドレスに接続できる場合があります。クラウドメタデータの IP リテラル(169.254.169.254)と、指定のメタデータ名または *.internal/*.local はオンでもブロックされます。',
- 'st.display.notify_sound.label': '完了サウンド',
- 'st.display.notify_sound.desc': 'エージェントがタスクを完了したときにサイドパネルで短いチャイムを鳴らします。実行をキャンセルした場合は鳴りません。',
+ 'st.display.notify_sound.label': "通知サウンド",
+ 'st.display.notify_sound.desc': "確認待ちのプランには専用のサウンドを、タスクの完了時や確認事項があるときには短いチャイムを鳴らします。実行をキャンセルした場合は鳴りません。",
'st.display.completion_confetti.label': '完了時の紙吹雪',
'st.display.completion_confetti.desc': 'タスクが正常に完了したとき、上から短い紙吹雪アニメーションを表示します。既定でオンです。落ち着いた完了表示にしたい場合はオフにできます。',
- 'st.display.completion_flash_tab.label': "完了したタブを点滅",
- 'st.display.completion_flash_tab.desc': "離れたタブでタスクが完了すると、そのタブのタイトルとアイコンが点滅し、どのタブが完了したかひと目でわかります。",
+ 'st.display.completion_flash_tab.label': "通知時にタブを点滅",
+ 'st.display.completion_flash_tab.desc': "プランの確認準備ができたときやタスクが完了したときに、バックグラウンドのタブのタイトルとアイコンを点滅させます。プランには ⚠️ アイコンを使用します。",
'st.display.max_steps.label': 'エージェントの最大ステップ数',
'st.display.max_steps.desc': '1 メッセージあたりに使えるツール呼び出しステップの上限です。値を大きくすると複雑な多段タスクが可能になりますが、トークン消費が増えることがあります。スライダーを ∞ にするとステップ数は無制限になります。',
'st.display.traces_link.label': 'トレース',
diff --git a/src/firefox/src/ui/locales/ko.js b/src/firefox/src/ui/locales/ko.js
index bb670e738..a60fe96ca 100644
--- a/src/firefox/src/ui/locales/ko.js
+++ b/src/firefox/src/ui/locales/ko.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': '각 LLM 요청의 전체 프롬프트·메시지·도구 스키마를 내용 없는 요약 대신 저장하고, 각 도구 결과를 최대 200KB까지 보관합니다. 심층 디버깅과 요청 재구성이 가능합니다. 대화 내용을 로컬에 기록하고 디스크를 훨씬 더 사용하므로 기본적으로 꺼져 있습니다. 트레이스 기록이 켜져 있어야 합니다.',
'st.display.allow_local_network.label': '에이전트의 로컬 네트워크 접근 허용',
'st.display.allow_local_network.desc': '에이전트의 fetch_url 도구가 루프백(127.0.0.1, localhost)과 사설/RFC1918 주소(10.x, 192.168.x, 172.16–31.x)에 접근할 수 있게 합니다. 로컬 개발 서버, 인트라넷 도구, 자체 호스팅 API에 유용합니다. 기본값은 끔입니다. 꺼져 있으면 사설 또는 루프백 IP를 직접 적은 URL과 localhost 이름을 차단합니다. DNS 해석은 확인하지 않으므로 다른 호스트명은 로컬 주소에 접근할 수 있습니다. 클라우드 메타데이터 IP 리터럴(169.254.169.254)과 목록에 있는 메타데이터 이름 또는 *.internal/*.local은 켜져 있어도 차단됩니다.',
- 'st.display.notify_sound.label': '완료 알림음',
- 'st.display.notify_sound.desc': '에이전트가 작업을 마치면 사이드 패널에서 짧은 알림음을 재생합니다. 실행을 취소한 경우에는 재생되지 않습니다.',
+ 'st.display.notify_sound.label': "알림 소리",
+ 'st.display.notify_sound.desc': "검토를 기다리는 계획에는 별도의 소리를, 작업이 완료되거나 추가 설명이 필요할 때는 짧은 알림음을 재생합니다. 실행을 취소하면 소리가 나지 않습니다.",
'st.display.completion_confetti.label': '완료 색종이',
'st.display.completion_confetti.desc': '작업이 성공적으로 끝나면 위에서 짧은 색종이 애니메이션을 표시합니다. 기본적으로 켜져 있으며, 더 차분한 마무리를 원하면 끌 수 있습니다.',
- 'st.display.completion_flash_tab.label': "완료된 탭 깜뗝이기",
- 'st.display.completion_flash_tab.desc': "떠나 있는 탭에서 작업이 끌나면 해당 탭의 제목과 아이콘이 깜뗝여 어떤 탭이 완료됐는지 한눈에 알 수 있습니다.",
+ 'st.display.completion_flash_tab.label': "알림이 있는 탭 깜빡이기",
+ 'st.display.completion_flash_tab.desc': "계획 검토 준비가 되었거나 작업이 완료되면 백그라운드 탭의 제목과 아이콘이 깜빡입니다. 계획에는 ⚠️ 아이콘을 사용합니다.",
'st.display.max_steps.label': '에이전트 최대 단계 수',
'st.display.max_steps.desc': '한 메시지당 에이전트가 사용할 수 있는 도구 호출 단계의 최대 수입니다. 값이 클수록 더 복잡한 다단계 작업이 가능하지만 토큰을 더 소비할 수 있습니다. 슬라이더를 ∞로 설정하면 단계 수가 무제한입니다.',
'st.display.traces_link.label': '트레이스',
diff --git a/src/firefox/src/ui/locales/ms.js b/src/firefox/src/ui/locales/ms.js
index b724e408c..5df97f275 100644
--- a/src/firefox/src/ui/locales/ms.js
+++ b/src/firefox/src/ui/locales/ms.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Juga menyimpan prompt, mesej, dan skema alatan penuh bagi setiap permintaan LLM dan bukannya ringkasan tanpa kandungan, serta mengekalkan sehingga 200 KB bagi setiap hasil alatan. Membolehkan penyahpepijatan mendalam dan pembinaan semula permintaan. Dimatikan secara lalai kerana menulis kandungan perbualan anda secara setempat dan menggunakan lebih banyak cakera. Memerlukan rakaman jejak dihidupkan.',
'st.display.allow_local_network.label': 'Benarkan ejen mengakses rangkaian tempatan',
'st.display.allow_local_network.desc': 'Membenarkan alat fetch_url ejen mencapai loopback (127.0.0.1, localhost) dan alamat peribadi/RFC1918 (10.x, 192.168.x, 172.16–31.x). Berguna untuk pelayan pembangunan tempatan, alat intranet, atau API yang dihos sendiri. Dimatikan secara lalai. Apabila dimatikan, URL yang menggunakan IP peribadi atau loopback secara langsung dan nama localhost disekat. Resolusi DNS tidak diperiksa, jadi nama hos lain masih boleh mencapai alamat tempatan. IP literal metadata awan (169.254.169.254) dan nama metadata yang disenaraikan atau *.internal/*.local kekal disekat walaupun dihidupkan.',
- 'st.display.notify_sound.label': 'Bunyi selesai',
- 'st.display.notify_sound.desc': 'Mainkan bunyi pendek di panel sisi apabila ejen menyelesaikan tugas. Tidak akan dimainkan jika anda membatalkan larian.',
+ 'st.display.notify_sound.label': "Bunyi pemberitahuan",
+ 'st.display.notify_sound.desc': "Mainkan bunyi berbeza untuk pelan yang menunggu semakan dan nada pendek apabila tugas selesai atau memerlukan penjelasan. Tiada bunyi apabila anda membatalkan pelaksanaan.",
'st.display.completion_confetti.label': 'Konfeti selesai',
'st.display.completion_confetti.desc': 'Paparkan animasi konfeti pendek dari atas apabila tugas berjaya diselesaikan. Dihidupkan secara lalai; matikan jika anda mahukan penamat yang lebih tenang.',
- 'st.display.completion_flash_tab.label': "Kelipkan tab yang selesai",
- 'st.display.completion_flash_tab.desc': "Apabila tugasan selesai pada tab yang anda tinggalkan, tajuk dan ikon tab tersebut berkelip supaya anda tahu sekilas tab mana yang selesai.",
+ 'st.display.completion_flash_tab.label': "Kelipkan tab untuk amaran",
+ 'st.display.completion_flash_tab.desc': "Tajuk dan ikon tab di latar belakang berkelip apabila pelan sedia untuk disemak atau tugas selesai. Pelan menggunakan ikon ⚠️.",
'st.display.max_steps.label': 'Langkah maksimum ejen',
'st.display.max_steps.desc': 'Jumlah maksimum langkah penggunaan alat yang boleh dilakukan ejen bagi setiap mesej. Nilai lebih tinggi membenarkan tugas berbilang langkah yang lebih kompleks, tetapi mungkin menggunakan lebih banyak token. Tetapkan peluncur kepada ∞ untuk langkah tanpa had.',
'st.display.traces_link.label': 'Jejak',
diff --git a/src/firefox/src/ui/locales/nl.js b/src/firefox/src/ui/locales/nl.js
index fb81276af..5e985477c 100644
--- a/src/firefox/src/ui/locales/nl.js
+++ b/src/firefox/src/ui/locales/nl.js
@@ -678,12 +678,12 @@ export default {
'st.display.scheduled_tasks.desc': 'Sta WebBrain toe om uitgesteld werk te hervatten en eenmalige of terugkerende geplande taken uit te voeren...',
'st.display.scheduled_confirm.label': 'Bevestig geplande gevolghebbende acties',
'st.display.scheduled_confirm.desc': 'Wanneer ingeschakeld, stoppen onbeheerde geplande uitvoeringen nog steeds voor machtiging...',
- 'st.display.notify_sound.label': 'Voltooiingsgeluid',
- 'st.display.notify_sound.desc': 'Speel een kort deuntje in het zijpaneel wanneer de agent een taak voltooit...',
+ 'st.display.notify_sound.label': "Meldingsgeluiden",
+ 'st.display.notify_sound.desc': "Speel een apart geluid voor plannen die op beoordeling wachten en een kort deuntje bij voltooiing of een vraag om verduidelijking. Geen geluid als je een uitvoering annuleert.",
'st.display.completion_confetti.label': 'Voltooiingsconfetti',
'st.display.completion_confetti.desc': 'Laat een korte confetti-animatie vallen van boven wanneer een taak succesvol wordt voltooid...',
- 'st.display.completion_flash_tab.label': "Voltooid tabblad laten knipperen",
- 'st.display.completion_flash_tab.desc': "Wanneer een taak klaar is in een tabblad dat je hebt verlaten, knippert de titel en het favicon van dat tabblad zodat je in één oogopslag ziet welke tab klaar is.",
+ 'st.display.completion_flash_tab.label': "Tabbladen laten knipperen bij meldingen",
+ 'st.display.completion_flash_tab.desc': "Laat de titel en het pictogram van een tabblad op de achtergrond knipperen wanneer een plan klaarstaat ter beoordeling of een taak is voltooid. Plannen gebruiken het pictogram ⚠️.",
'st.display.max_steps.label': 'Max Agentstappen',
'st.display.max_steps.desc': 'Maximaal aantal toolstappen dat de agent per bericht kan uitvoeren. Hogere waarden maken complexere taken met meerdere stappen mogelijk, maar kunnen meer tokens gebruiken. Zet de schuifregelaar op ∞ voor onbeperkte stappen.',
'st.display.request_timeout.label': 'LLM-verzoektime-out',
diff --git a/src/firefox/src/ui/locales/pl.js b/src/firefox/src/ui/locales/pl.js
index cc6617f94..0d2c497a4 100644
--- a/src/firefox/src/ui/locales/pl.js
+++ b/src/firefox/src/ui/locales/pl.js
@@ -507,12 +507,12 @@ export default {
'st.display.scheduled_tasks.desc': 'Pozwól WebBrain wznawiać odroczoną pracę oraz uruchamiać jednorazowe lub cykliczne zaplanowane zadania przy użyciu alarmów przeglądarki. Domyślnie włączone.',
'st.display.scheduled_confirm.label': 'Potwierdzaj istotne działania w zaplanowanych zadaniach',
'st.display.scheduled_confirm.desc': 'Po włączeniu nienadzorowane zaplanowane wykonania nadal zatrzymują się po pozwolenie przed istotnymi działaniami. Wyłącz tylko, jeśli ufasz, że zaplanowane zadania mogą działać bez tych pytań.',
- 'st.display.notify_sound.label': 'Dźwięk ukończenia',
- 'st.display.notify_sound.desc': 'Odtwarzaj krótki dźwięk w panelu bocznym, gdy agent ukończy zadanie. Nie zabrzmi, jeśli anulujesz wykonanie.',
+ 'st.display.notify_sound.label': "Dźwięki powiadomień",
+ 'st.display.notify_sound.desc': "Odtwarzaj osobny dźwięk dla planów oczekujących na sprawdzenie oraz krótki sygnał po ukończeniu zadania lub przy prośbie o wyjaśnienie. Bez dźwięku po anulowaniu uruchomienia.",
'st.display.completion_confetti.label': 'Konfetti po ukończeniu',
'st.display.completion_confetti.desc': 'Pokazuj krótką animację konfetti z góry, gdy zadanie zakończy się powodzeniem. Domyślnie włączone; wyłącz, jeśli wolisz spokojniejsze zakończenie.',
- 'st.display.completion_flash_tab.label': "Migaj zakończoną kartą",
- 'st.display.completion_flash_tab.desc': "Gdy zadanie kończy się w karcie, którą opuściłeś, tytuł i ikona tej karty migają, abyś jednym spojrzeniem widział, która karta ukończyła pracę.",
+ 'st.display.completion_flash_tab.label': "Migaj kartami przy powiadomieniach",
+ 'st.display.completion_flash_tab.desc': "Tytuł i ikona karty w tle migają, gdy plan jest gotowy do sprawdzenia lub zadanie się kończy. Plany używają ikony ⚠️.",
'st.display.max_steps.label': 'Maksymalna liczba kroków agenta',
'st.display.max_steps.desc': 'Maksymalna liczba kroków z użyciem narzędzi, jakie agent może wykonać na wiadomość. Wyższe wartości pozwalają na bardziej złożone wieloetapowe zadania, ale mogą zużywać więcej tokenów. Ustaw suwak na ∞, aby uzyskać nieograniczoną liczbę kroków.',
'st.display.request_timeout.label': 'Limit czasu żądania LLM',
diff --git a/src/firefox/src/ui/locales/pt.js b/src/firefox/src/ui/locales/pt.js
index d3a713536..041125a5d 100644
--- a/src/firefox/src/ui/locales/pt.js
+++ b/src/firefox/src/ui/locales/pt.js
@@ -701,12 +701,12 @@ export default {
'st.display.scheduled_tasks.desc': "Permita que WebBrain retome o trabalho adiado e execute tarefas agendadas únicas ou recorrentes usando alarmes do navegador. Ativado por padrão.",
'st.display.scheduled_confirm.label': "Confirme as ações consequentes programadas",
'st.display.scheduled_confirm.desc': "Quando ativado, as execuções agendadas autônomas ainda serão interrompidas para permissão antes de ações consequentes. Desative apenas se você confiar que as tarefas agendadas agirão sem esses avisos.",
- 'st.display.notify_sound.label': "Som de conclusão",
- 'st.display.notify_sound.desc': "Toque um breve sinal sonoro no painel lateral quando o agente terminar uma tarefa. Não jogará se você cancelar a corrida.",
+ 'st.display.notify_sound.label': "Sons de notificação",
+ 'st.display.notify_sound.desc': "Reproduz um som diferente para planos aguardando revisão e um toque curto ao concluir uma tarefa ou pedir esclarecimentos. Não emite som se você cancelar a execução.",
'st.display.completion_confetti.label': "Confete de conclusão",
'st.display.completion_confetti.desc': "Solte uma pequena animação de confete no topo quando uma tarefa for concluída com sucesso. Ativado por padrão; desligue-o se preferir um final mais calmo.",
- 'st.display.completion_flash_tab.label': "Piscar a aba concluída",
- 'st.display.completion_flash_tab.desc': "Quando uma tarefa é concluída em uma aba que você deixou, o título e o favicon dessa aba piscam para você saber de relance qual foi concluída.",
+ 'st.display.completion_flash_tab.label': "Piscar abas com alertas",
+ 'st.display.completion_flash_tab.desc': "O título e o ícone de uma aba em segundo plano piscam quando um plano está pronto para revisão ou uma tarefa termina. Os planos usam o ícone ⚠️.",
'st.display.max_steps.label': "Máximo de etapas do agente",
'st.display.max_steps.desc': "Número máximo de etapas de uso da ferramenta que o agente pode realizar por mensagem. Valores mais altos permitem tarefas mais complexas de várias etapas, mas podem usar mais tokens. Defina o controle deslizante para ∞ para etapas ilimitadas.",
'st.display.request_timeout.label': "Tempo limite da solicitação LLM",
diff --git a/src/firefox/src/ui/locales/ru.js b/src/firefox/src/ui/locales/ru.js
index 5bc70b36b..2cada54eb 100644
--- a/src/firefox/src/ui/locales/ru.js
+++ b/src/firefox/src/ui/locales/ru.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Также сохраняет полные промпты, сообщения и схемы инструментов каждого LLM-запроса вместо кратких сводок без содержимого, и хранит до 200 КБ каждого результата инструмента. Позволяет глубокую отладку и восстановление запросов. Выключено по умолчанию, так как записывает содержимое вашего диалога локально и занимает заметно больше места. Требует включённой записи трасс.',
'st.display.allow_local_network.label': 'Разрешить агенту доступ к локальной сети',
'st.display.allow_local_network.desc': 'Разрешает инструменту fetch_url агента обращаться к loopback (127.0.0.1, localhost) и частным адресам RFC1918 (10.x, 192.168.x, 172.16–31.x). Полезно для локальных серверов разработки, интранет-инструментов и self-hosted API. По умолчанию выключено. В этом состоянии блокируются URL с явно записанными частными или loopback IP-адресами и имена localhost. Результат DNS не проверяется, поэтому другие имена хостов могут вести к локальным адресам. IP-адреса метаданных облака, записанные явно (169.254.169.254), и перечисленные имена метаданных или *.internal/*.local остаются заблокированы даже при включении.',
- 'st.display.notify_sound.label': 'Звук завершения',
- 'st.display.notify_sound.desc': 'Воспроизводить короткий звуковой сигнал в боковой панели, когда агент завершает задачу. Не звучит, если вы отменили запуск.',
+ 'st.display.notify_sound.label': "Звуки уведомлений",
+ 'st.display.notify_sound.desc': "Отдельный звук для планов, ожидающих проверки, и короткий сигнал при завершении задачи или запросе уточнения. При отмене запуска звук не воспроизводится.",
'st.display.completion_confetti.label': 'Конфетти при завершении',
'st.display.completion_confetti.desc': 'Показывать короткую анимацию конфетти сверху, когда задача успешно завершена. Включено по умолчанию; отключите, если предпочитаете спокойное завершение.',
- 'st.display.completion_flash_tab.label': "Мигать завершённой вкладкой",
- 'st.display.completion_flash_tab.desc': "Когда задача завершается во вкладке, которую вы покинули, заголовок и значок этой вкладки мигают, чтобы с одного взгляда было видно, какая вкладка закончила работу.",
+ 'st.display.completion_flash_tab.label': "Мигание вкладок при уведомлениях",
+ 'st.display.completion_flash_tab.desc': "Заголовок и значок фоновой вкладки мигают, когда план готов к проверке или задача завершена. Для планов используется значок ⚠️.",
'st.display.max_steps.label': 'Максимум шагов агента',
'st.display.max_steps.desc': 'Максимальное число шагов с использованием инструментов на одно сообщение. Большие значения позволяют решать более сложные многошаговые задачи, но могут расходовать больше токенов. Установите ползунок на ∞ для неограниченного числа шагов.',
'st.display.traces_link.label': 'Трассы',
diff --git a/src/firefox/src/ui/locales/th.js b/src/firefox/src/ui/locales/th.js
index ffff54d81..048292c89 100644
--- a/src/firefox/src/ui/locales/th.js
+++ b/src/firefox/src/ui/locales/th.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'จัดเก็บพรอมต์ ข้อความ และโครงสร้างเครื่องมือแบบเต็มของแต่ละคำขอ LLM แทนสรุปที่ไม่มีเนื้อหา และเก็บผลลัพธ์เครื่องมือแต่ละรายการสูงสุด 200 KB เปิดใช้งานการดีบักเชิงลึกและการสร้างคำขอใหม่ ปิดโดยค่าเริ่มต้นเพราะเขียนเนื้อหาสนทนาของคุณในเครื่องและใช้พื้นที่ดิสก์มากกว่ามาก ต้องเปิดการบันทึกเทรซ',
'st.display.allow_local_network.label': 'อนุญาตให้เอเจนต์เข้าถึงเครือข่ายภายใน',
'st.display.allow_local_network.desc': 'ให้เครื่องมือ fetch_url ของเอเจนต์เข้าถึง loopback (127.0.0.1, localhost) และที่อยู่ส่วนตัว/RFC1918 (10.x, 192.168.x, 172.16–31.x) มีประโยชน์สำหรับเซิร์ฟเวอร์พัฒนาภายใน เครื่องมืออินทราเน็ต หรือ API ที่โฮสต์เอง ปิดเป็นค่าเริ่มต้น เมื่อปิด จะบล็อก URL ที่ระบุ IP ส่วนตัวหรือ loopback โดยตรงและชื่อ localhost ไม่มีการตรวจสอบผลการแปลงชื่อ DNS ดังนั้นชื่อโฮสต์อื่นอาจยังเข้าถึงที่อยู่ภายในได้ IP เมตาดาตาคลาวด์ที่ระบุโดยตรง (169.254.169.254) และชื่อเมตาดาตาในรายการหรือ *.internal/*.local ยังคงถูกบล็อกแม้เปิดไว้',
- 'st.display.notify_sound.label': 'เสียงเมื่อทำเสร็จ',
- 'st.display.notify_sound.desc': 'เล่นเสียงสั้น ๆ ในแผงด้านข้างเมื่อเอเจนต์ทำภารกิจเสร็จ จะไม่เล่นถ้าคุณยกเลิกการทำงาน',
+ 'st.display.notify_sound.label': "เสียงแจ้งเตือน",
+ 'st.display.notify_sound.desc': "เล่นเสียงเฉพาะสำหรับแผนที่รอการตรวจสอบ และเสียงสั้น ๆ เมื่องานเสร็จหรือต้องการคำชี้แจง จะไม่มีเสียงเมื่อคุณยกเลิกการทำงาน",
'st.display.completion_confetti.label': 'โปรยกระดาษเมื่อเสร็จ',
'st.display.completion_confetti.desc': 'แสดงแอนิเมชันโปรยกระดาษสั้น ๆ จากด้านบนเมื่องานเสร็จสมบูรณ์ เปิดไว้ตามค่าเริ่มต้น ปิดได้หากต้องการให้จบแบบเงียบกว่า.',
- 'st.display.completion_flash_tab.label': "กะพริบแท็บที่เสร็จแล้ว",
- 'st.display.completion_flash_tab.desc': "เมื่องานเสร็จสมบูรณ์ในแท็บที่คุณออกจากไป ชื่อและไอคอนของแท็บนั้นจะกะพริบเพื่อให้เห็นได้ทันทีว่าแท็บใดเสร็จสิ้น",
+ 'st.display.completion_flash_tab.label': "กะพริบแท็บเมื่อมีการแจ้งเตือน",
+ 'st.display.completion_flash_tab.desc': "ชื่อและไอคอนของแท็บเบื้องหลังจะกะพริบเมื่อแผนพร้อมให้ตรวจสอบหรืองานเสร็จ แผนจะใช้ไอคอน ⚠️",
'st.display.max_steps.label': 'จำนวนขั้นสูงสุดของเอเจนต์',
'st.display.max_steps.desc': 'จำนวนขั้นการใช้เครื่องมือสูงสุดที่เอเจนต์ทำได้ต่อข้อความ ค่ามากขึ้นอนุญาตให้ทำภารกิจหลายขั้นที่ซับซ้อนกว่า แต่อาจใช้โทเค็นมากขึ้น ตั้งแถบเลื่อนเป็น ∞ เพื่อให้ขั้นตอนไม่จำกัด',
'st.display.traces_link.label': 'Traces',
diff --git a/src/firefox/src/ui/locales/tl.js b/src/firefox/src/ui/locales/tl.js
index 244c6738d..8256dbf91 100644
--- a/src/firefox/src/ui/locales/tl.js
+++ b/src/firefox/src/ui/locales/tl.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Iniimbak din ang buong prompt, mensahe, at schema ng tool ng bawat LLM request sa halip na buod na walang nilalaman, at nagpapanatili ng hanggang 200 KB ng bawat resulta ng tool. Nagbibigay-daan sa malalim na pag-debug at muling pagbuo ng request. Naka-off bilang default dahil isinusulat nito ang nilalaman ng iyong usapan nang lokal at gumagamit ng mas malaking disk. Nangangailangan ng naka-on na pag-record ng trace.',
'st.display.allow_local_network.label': 'Pahintulutan ang ahente na ma-access ang lokal na network',
'st.display.allow_local_network.desc': 'Hinahayaan ang fetch_url tool ng ahente na maabot ang loopback (127.0.0.1, localhost) at mga private/RFC1918 address (10.x, 192.168.x, 172.16–31.x). Mainam para sa mga lokal na dev server, intranet tool, o self-hosted API. Naka-off bilang default. Kapag naka-off, naka-block ang mga URL na may direktang nakasulat na private o loopback IP at mga pangalang localhost. Hindi sinusuri ang DNS resolution, kaya maaari pa ring makarating sa lokal na address ang ibang hostname. Naka-block pa rin kahit naka-on ang literal na cloud-metadata IP (169.254.169.254) at mga nakalistang metadata o *.internal/*.local hostname.',
- 'st.display.notify_sound.label': 'Tunog kapag tapos na',
- 'st.display.notify_sound.desc': 'Magpatugtog ng maikling chime sa side panel kapag natapos ang gawain ng ahente. Hindi tutugtog kung kinansela mo ang run.',
+ 'st.display.notify_sound.label': "Mga tunog ng abiso",
+ 'st.display.notify_sound.desc': "Magpatugtog ng naiibang tunog para sa mga planong naghihintay ng pagsusuri at maikling chime kapag tapos na ang gawain o kailangan ng paglilinaw. Walang tunog kapag kinansela mo ang run.",
'st.display.completion_confetti.label': 'Confetti kapag tapos na',
'st.display.completion_confetti.desc': 'Magpakita ng maikling confetti animation mula sa itaas kapag matagumpay na natapos ang gawain. Naka-on ito bilang default; i-off kung mas gusto mo ng mas tahimik na pagtatapos.',
- 'st.display.completion_flash_tab.label': "I-flash ang tapos na tab",
- 'st.display.completion_flash_tab.desc': "Kapag natapos ang gawain sa tab na iniwan mo na, kumikislap ang title at favicon ng tab na iyon para makita sa isang sulyap kung alin ang tapos na.",
+ 'st.display.completion_flash_tab.label': "Pakislapin ang mga tab para sa mga abiso",
+ 'st.display.completion_flash_tab.desc': "Kumikislap ang pamagat at icon ng tab sa background kapag handa nang suriin ang plano o tapos na ang gawain. Ginagamit ng mga plano ang icon na ⚠️.",
'st.display.max_steps.label': 'Maximum na hakbang ng ahente',
'st.display.max_steps.desc': 'Pinakamalaking bilang ng tool-use na hakbang na maaaring gawin ng ahente bawat mensahe. Ang mas mataas na halaga ay nagpapahintulot ng mas komplikadong multi-step na gawain ngunit maaaring mas marami ang gagamiting token. Itakda ang slider sa ∞ para sa walang limitasyong mga hakbang.',
'st.display.traces_link.label': 'Traces',
diff --git a/src/firefox/src/ui/locales/tr.js b/src/firefox/src/ui/locales/tr.js
index d9403b9cf..4753071d6 100644
--- a/src/firefox/src/ui/locales/tr.js
+++ b/src/firefox/src/ui/locales/tr.js
@@ -398,12 +398,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Her LLM isteğinin tam prompt, mesaj ve araç şemalarını içeriksiz özetler yerine de kalıcı olarak kaydeder ve her araç sonucundan en fazla 200 KB tutar. Derin hata ayıklama ve istek yeniden yapılandırmasını sağlar. Varsayılan olarak kapalıdır çünkü konuşma içeriğinizi yerel olarak yazar ve çok daha fazla disk kullanır. İz kaydının açık olmasını gerektirir.',
'st.display.allow_local_network.label': 'Aracının yerel ağa erişmesine izin ver',
'st.display.allow_local_network.desc': 'Aracının fetch_url aracının loopback (127.0.0.1, localhost) ve özel/RFC1918 adreslerine (10.x, 192.168.x, 172.16–31.x) ulaşmasına izin verir. Yerel geliştirme sunucuları, intranet araçları veya kendi sunucundaki API\'lar için kullanışlıdır. Varsayılan olarak kapalıdır. Kapalıyken özel veya loopback IP adresi doğrudan yazılmış URL’ler ve localhost adları engellenir. DNS çözümlemesi denetlenmez; diğer ana makine adları yerel adreslere ulaşabilir. Doğrudan yazılmış bulut meta-veri IP adresleri (169.254.169.254) ile listedeki meta-veri adları veya *.internal/*.local adları açıkken de engellenir.',
- 'st.display.notify_sound.label': 'Tamamlama sesi',
- 'st.display.notify_sound.desc': 'Aracı bir görevi bitirdiğinde yan panelde kısa bir ses çalar. Çalışmayı iptal edersen çalınmaz.',
+ 'st.display.notify_sound.label': "Bildirim sesleri",
+ 'st.display.notify_sound.desc': "İnceleme bekleyen planlar için farklı bir ses, tamamlanan görevler veya açıklama gerektiğinde kısa bir zil sesi çalar. Çalışmayı iptal edersen ses çalınmaz.",
'st.display.completion_confetti.label': 'Tamamlama konfetisi',
'st.display.completion_confetti.desc': 'Bir görev başarıyla tamamlandığında üstten kısa bir konfeti animasyonu gösterir. Varsayılan olarak açıktır; daha sakin bir bitiş istersen kapatabilirsin.',
- 'st.display.completion_flash_tab.label': 'Biten sekmeyi yanıp söndür',
- 'st.display.completion_flash_tab.desc': 'Bir görev, ayrıldığın bir sekmede bittiğinde o sekmenin başlığı ve simgesi yanıp söner; hangi sekmenin bittiğini tek bakışta görürsün.',
+ 'st.display.completion_flash_tab.label': "Bildirimlerde sekmeyi yanıp söndür",
+ 'st.display.completion_flash_tab.desc': "Bir plan incelemeye hazır olduğunda veya görev bittiğinde arka plandaki sekmenin başlığı ve simgesi yanıp söner. Planlarda ⚠️ simgesi kullanılır.",
'st.display.max_steps.label': 'Azami aracı adımı',
'st.display.max_steps.desc': 'Aracının mesaj başına atabileceği en fazla araç adımı sayısı. Daha yüksek değerler daha karmaşık çok adımlı görevlere izin verir ama daha fazla token kullanabilir. Sınırsız adım için kaydırıcıyı ∞ konumuna getirin.',
'st.display.traces_link.label': 'İzler',
diff --git a/src/firefox/src/ui/locales/uk.js b/src/firefox/src/ui/locales/uk.js
index 18e02b68b..1bbdb76c0 100644
--- a/src/firefox/src/ui/locales/uk.js
+++ b/src/firefox/src/ui/locales/uk.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': 'Також зберігає повні промпти, повідомлення та схеми інструментів кожного LLM-запиту замість стислих зведень без вмісту, та тримає до 200 КБ кожного результату інструмента. Дає змогу глибокого налагодження та відтворення запитів. Вимкнено за замовчуванням, бо записує вміст вашої розмови локально та займає значно більше диска. Потребує увімкненого запису трас.',
'st.display.allow_local_network.label': 'Дозволити агенту доступ до локальної мережі',
'st.display.allow_local_network.desc': 'Дозволяє інструменту fetch_url агента звертатися до loopback (127.0.0.1, localhost) та приватних адрес RFC1918 (10.x, 192.168.x, 172.16–31.x). Корисно для локальних серверів розробки, інтранет-інструментів і self-hosted API. За замовчуванням вимкнено. У цьому стані блокуються URL із безпосередньо записаними приватними або loopback IP-адресами та імена localhost. Результат DNS не перевіряється, тому інші імена хостів можуть вести до локальних адрес. Безпосередньо записані IP-адреси метаданих хмари (169.254.169.254) і перелічені імена метаданих або *.internal/*.local залишаються заблокованими навіть після ввімкнення.',
- 'st.display.notify_sound.label': 'Звук завершення',
- 'st.display.notify_sound.desc': 'Програвати короткий сигнал у бічній панелі, коли агент завершує завдання. Не звучить, якщо ви скасуєте запуск.',
+ 'st.display.notify_sound.label': "Звуки сповіщень",
+ 'st.display.notify_sound.desc': "Окремий звук для планів, що очікують на перевірку, і короткий сигнал після завершення завдання або запиту уточнення. Після скасування запуску звук не відтворюється.",
'st.display.completion_confetti.label': 'Конфеті після завершення',
'st.display.completion_confetti.desc': 'Показувати коротку анімацію конфеті згори, коли завдання успішно завершено. Увімкнено типово; вимкніть, якщо хочете спокійніше завершення.',
- 'st.display.completion_flash_tab.label': "Блимати завершеною вкладкою",
- 'st.display.completion_flash_tab.desc': "Коли завдання завершується у вкладці, яку ви покинули, заголовок і піктограма цієї вкладки блимають, щоб з першого погляду було видно, яка вкладка завершила роботу.",
+ 'st.display.completion_flash_tab.label': "Блимання вкладок для сповіщень",
+ 'st.display.completion_flash_tab.desc': "Заголовок і піктограма фонової вкладки блимають, коли план готовий до перевірки або завдання завершено. Для планів використовується піктограма ⚠️.",
'st.display.max_steps.label': 'Макс. кроків агента',
'st.display.max_steps.desc': 'Максимальна кількість кроків із використанням інструментів на одне повідомлення. Більші значення дозволяють складніші багатокрокові завдання, але можуть витрачати більше токенів. Установіть повзунок на ∞, щоб зняти обмеження на кроки.',
'st.display.traces_link.label': 'Траси',
diff --git a/src/firefox/src/ui/locales/vi.js b/src/firefox/src/ui/locales/vi.js
index 57a6a219e..3bc780390 100644
--- a/src/firefox/src/ui/locales/vi.js
+++ b/src/firefox/src/ui/locales/vi.js
@@ -701,12 +701,12 @@ export default {
'st.display.scheduled_tasks.desc': "Cho phép WebBrain tiếp tục công việc bị trì hoãn và chạy các tác vụ theo lịch trình một lần hoặc định kỳ bằng cách sử dụng cảnh báo của trình duyệt. Bật theo mặc định.",
'st.display.scheduled_confirm.label': "Xác nhận các hành động tiếp theo đã lên lịch",
'st.display.scheduled_confirm.desc': "Khi được bật, các hoạt động chạy theo lịch trình không được giám sát vẫn dừng để xin phép trước các hành động tiếp theo. Chỉ tắt nếu bạn tin tưởng các tác vụ đã lên lịch sẽ thực hiện mà không cần những lời nhắc đó.",
- 'st.display.notify_sound.label': "Âm thanh hoàn thành",
- 'st.display.notify_sound.desc': "Phát một tiếng chuông ngắn trong bảng điều khiển bên cạnh khi tổng đài viên hoàn thành nhiệm vụ. Sẽ không chơi nếu bạn hủy cuộc chạy.",
+ 'st.display.notify_sound.label': "Âm thanh thông báo",
+ 'st.display.notify_sound.desc': "Phát âm thanh riêng cho kế hoạch đang chờ xem xét và tiếng chuông ngắn khi tác vụ hoàn tất hoặc cần làm rõ. Không phát âm thanh khi bạn hủy lần chạy.",
'st.display.completion_confetti.label': "Hoa giấy hoàn thành",
'st.display.completion_confetti.desc': "Thả một hình ảnh động hoa giấy ngắn từ trên xuống khi một nhiệm vụ hoàn thành thành công. Bật theo mặc định; tắt nó đi nếu bạn thích một kết thúc nhẹ nhàng hơn.",
- 'st.display.completion_flash_tab.label': "Nhấp nháy tab hoàn thành",
- 'st.display.completion_flash_tab.desc': "Khi một tác vụ hoàn tất trong tab bạn đã rời đi, tiêu đề và biểu tượng của tab đó nhấp nháy để bạn nhìn một cái là biết tab nào đã xong.",
+ 'st.display.completion_flash_tab.label': "Nhấp nháy tab khi có cảnh báo",
+ 'st.display.completion_flash_tab.desc': "Tiêu đề và biểu tượng của tab chạy nền nhấp nháy khi kế hoạch sẵn sàng để xem xét hoặc tác vụ hoàn tất. Kế hoạch dùng biểu tượng ⚠️.",
'st.display.max_steps.label': "Số bước đại lý tối đa",
'st.display.max_steps.desc': "Số bước sử dụng công cụ tối đa mà tác nhân có thể thực hiện trên mỗi tin nhắn. Giá trị cao hơn cho phép thực hiện các tác vụ nhiều bước phức tạp hơn nhưng có thể sử dụng nhiều mã thông báo hơn. Đặt thanh trượt thành ∞ để có số bước không giới hạn.",
'st.display.request_timeout.label': "Hết thời gian yêu cầu LLM",
diff --git a/src/firefox/src/ui/locales/zh.js b/src/firefox/src/ui/locales/zh.js
index e0beb6f83..85fbf660d 100644
--- a/src/firefox/src/ui/locales/zh.js
+++ b/src/firefox/src/ui/locales/zh.js
@@ -357,12 +357,12 @@ export default {
'st.display.lossless_tracing.desc_html': '同时持久化每次 LLM 请求的完整提示词、消息与工具结构(而非无内容摘要),并保留每个工具结果最多 200 KB。支持深度调试与请求重建。默认关闭,因为会在本地写入对话内容并占用更多磁盘。需要先开启记录轨迹。',
'st.display.allow_local_network.label': '允许代理访问本地网络',
'st.display.allow_local_network.desc': '允许代理的 fetch_url 工具访问回环(127.0.0.1、localhost)和私有/RFC1918 地址(10.x、192.168.x、172.16–31.x)。用于本地开发服务器、内网工具或自托管 API。默认关闭。关闭时会阻止直接写有私有或回环 IP 地址的 URL 以及 localhost 主机名。不检查 DNS 解析,因此其他主机名仍可能连接到本地地址。即使开启,云元数据的 IP 字面量(169.254.169.254)以及列表中的元数据主机名或 *.internal/*.local 主机名仍会被阻止。',
- 'st.display.notify_sound.label': '完成提示音',
- 'st.display.notify_sound.desc': '代理完成任务时在侧边栏播放短促的提示音。取消运行则不播放。',
+ 'st.display.notify_sound.label': "通知提示音",
+ 'st.display.notify_sound.desc': "为等待审核的计划播放不同的提示音,在任务完成或需要澄清时播放短促的铃声。取消运行时不播放声音。",
'st.display.completion_confetti.label': '完成彩纸',
'st.display.completion_confetti.desc': '任务成功完成时从顶部播放短暂的彩纸动画。默认开启;如果想要更安静的完成效果,可将其关闭。',
- 'st.display.completion_flash_tab.label': "闪烁已完成的标签页",
- 'st.display.completion_flash_tab.desc': "当任务在你离开的标签页中完成时,该标签页的标题和图标会闪烁,让你一眼看出是哪个标签页完成了。",
+ 'st.display.completion_flash_tab.label': "收到提醒时闪烁标签页",
+ 'st.display.completion_flash_tab.desc': "当计划准备好供你审核或任务完成时,后台标签页的标题和图标会闪烁。计划使用 ⚠️ 图标。",
'st.display.max_steps.label': '代理最大步骤数',
'st.display.max_steps.desc': '代理每条消息可执行的最大工具调用步数。更高的值允许更复杂的多步任务,但可能消耗更多 token。将滑块设为 ∞ 可不限步骤数。',
'st.display.traces_link.label': '轨迹',
diff --git a/src/firefox/src/ui/settings.html b/src/firefox/src/ui/settings.html
index ef53c7b87..0922b9caa 100644
--- a/src/firefox/src/ui/settings.html
+++ b/src/firefox/src/ui/settings.html
@@ -1591,8 +1591,8 @@
</div>
<div class="setting-row">
<div class="setting-info">
- <div class="setting-label" data-i18n="st.display.notify_sound.label"></div>
- <div class="setting-desc" data-i18n="st.display.notify_sound.desc"></div>
+ <div class="setting-label" data-i18n="st.display.notify_sound.label">Notification sounds</div>
+ <div class="setting-desc" data-i18n="st.display.notify_sound.desc">Play a distinct sound for plans awaiting review and a short chime for completion or clarification. No sound when you cancel a run.</div>
</div>
<label class="toggle">
<input type="checkbox" id="toggle-notify-sound" checked>
@@ -1611,8 +1611,8 @@
</div>
<div class="setting-row">
<div class="setting-info">
- <div class="setting-label" data-i18n="st.display.completion_flash_tab.label"></div>
- <div class="setting-desc" data-i18n="st.display.completion_flash_tab.desc"></div>
+ <div class="setting-label" data-i18n="st.display.completion_flash_tab.label">Flash tabs for alerts</div>
+ <div class="setting-desc" data-i18n="st.display.completion_flash_tab.desc">Blink a background tab’s title and icon when a plan is ready for review or a task finishes. Plans use a ⚠️ icon.</div>
</div>
<label class="toggle">
<input type="checkbox" id="toggle-completion-flash-tab" checked>
diff --git a/src/firefox/src/watch-alert.js b/src/firefox/src/watch-alert.js
index 8927ec62b..ba38d78be 100644
--- a/src/firefox/src/watch-alert.js
+++ b/src/firefox/src/watch-alert.js
@@ -1,12 +1,18 @@
/**
- * Persistent-background audio for /watch alerts. Generated tones keep the
- * alert distinct from Firefox's ordinary side-panel completion chime.
+ * Persistent-background audio for /watch and plan-review alerts. Generated
+ * tones differ from Firefox's ordinary side-panel completion chime.
*/
let audioContext = null;
let playback = Promise.resolve();
export function watchAlertPattern(style = 'default') {
+ if (style === 'plan_review') {
+ return [
+ { at: 0, duration: 0.14, frequency: 880 },
+ { at: 0.2, duration: 0.2, frequency: 660 },
+ ];
+ }
if (style === 'short') {
return [{ at: 0, duration: 0.12, frequency: 740 }];
}
@@ -24,11 +30,13 @@ export function watchAlertPattern(style = 'default') {
];
}
-async function play(style) {
+async function play(style, isCurrent) {
+ if (!isCurrent()) return;
const AudioContextCtor = globalThis.AudioContext || globalThis.webkitAudioContext;
if (!AudioContextCtor) throw new Error('Web Audio is unavailable in the background page.');
if (!audioContext || audioContext.state === 'closed') audioContext = new AudioContextCtor();
if (audioContext.state === 'suspended') await audioContext.resume();
+ if (!isCurrent()) return;
const pattern = watchAlertPattern(style);
const start = audioContext.currentTime + 0.02;
@@ -50,10 +58,11 @@ async function play(style) {
await new Promise((resolve) => setTimeout(resolve, Math.ceil((end + 0.05) * 1000)));
}
-export async function playWatchAlert(api, { style = 'default' } = {}) {
+export async function playWatchAlert(api, { style = 'default', isCurrent = () => true } = {}) {
const stored = await api.storage.local.get('notifySound');
if (stored?.notifySound === false) return { ok: true, muted: true };
- playback = playback.catch(() => {}).then(() => play(style));
+ if (!isCurrent()) return { ok: true, stale: true };
+ playback = playback.catch(() => {}).then(() => play(style, isCurrent));
await playback;
return { ok: true };
}
diff --git a/test/attention-flash-markers.mjs b/test/attention-flash-markers.mjs
new file mode 100644
index 000000000..828c07dbf
--- /dev/null
+++ b/test/attention-flash-markers.mjs
@@ -0,0 +1,176 @@
+import assert from 'node:assert/strict';
+import { readFileSync } from 'node:fs';
+import test from 'node:test';
+import vm from 'node:vm';
+
+function fixture(build, { title = 'Project dashboard', icons = ['https://site.test/favicon.png'] } = {}) {
+ const source = readFileSync(new URL(`../src/${build}/src/content/content.js`, import.meta.url), 'utf8');
+ const start = source.indexOf(' // ─── Tab attention flash');
+ const end = source.lastIndexOf('\n})();');
+ assert.ok(start >= 0 && end > start, `${build}: production attention implementation exists`);
+ const listeners = new Map();
+ const intervals = new Map();
+ const timeouts = new Map();
+ const paintedMarkers = [];
+ const links = [];
+ let now = 0;
+ let nextTimer = 1;
+ const link = href => {
+ const attrs = new Map([['rel', 'icon']]);
+ if (href != null) attrs.set('href', href);
+ return {
+ isConnected: true,
+ getAttribute: key => attrs.get(key) ?? null,
+ setAttribute: (key, value) => attrs.set(key, value),
+ removeAttribute: key => attrs.delete(key),
+ remove() { this.isConnected = false; links.splice(links.indexOf(this), 1); },
+ };
+ };
+ links.push(...icons.map(link));
+ const document = {
+ title, visibilityState: 'hidden',
+ head: { appendChild: element => links.push(element) },
+ querySelectorAll: () => links.filter(element => element.isConnected),
+ addEventListener: (name, listener) => listeners.set(name, listener),
+ removeEventListener: name => listeners.delete(name),
+ createElement: tag => {
+ if (tag === 'link') return link();
+ assert.equal(tag, 'canvas');
+ let marker = '';
+ return {
+ getContext: () => ({ fillText(value) { marker = value; paintedMarkers.push(value); } }),
+ toDataURL: () => `data:image/png,${encodeURIComponent(marker)}`,
+ };
+ },
+ };
+ const api = vm.runInNewContext(`${source.slice(start, end)}\n({ startAttentionFlash, stopAttentionFlash })`, {
+ document, Date: { now: () => now },
+ setInterval: fn => { const id = nextTimer++; intervals.set(id, fn); return id; },
+ clearInterval: id => intervals.delete(id),
+ setTimeout: fn => { const id = nextTimer++; timeouts.set(id, fn); return id; },
+ clearTimeout: id => timeouts.delete(id),
+ });
+ return {
+ ...api, source, document, links, paintedMarkers, intervals, timeouts, listeners,
+ tick() { now += 700; for (const fn of intervals.values()) fn(); },
+ show() { document.visibilityState = 'visible'; listeners.get('visibilitychange')?.(); },
+ };
+}
+
+for (const build of ['chrome', 'firefox']) {
+ test(`${build}: plan review flashes warning title and favicon and restores the page`, () => {
+ const page = fixture(build);
+ assert.equal(page.startAttentionFlash({ reason: 'plan_review' }), true);
+ assert.equal(page.document.title, '⚠️ Project dashboard');
+ assert.deepEqual(page.paintedMarkers, ['⚠️']);
+ assert.equal(page.links[0].getAttribute('href'), `data:image/png,${encodeURIComponent('⚠️')}`);
+ page.tick();
+ assert.equal(page.document.title, 'Project dashboard');
+ assert.equal(page.links[0].getAttribute('href'), 'https://site.test/favicon.png');
+ page.tick();
+ page.stopAttentionFlash();
+ assert.equal(page.document.title, 'Project dashboard');
+ assert.equal(page.links[0].getAttribute('href'), 'https://site.test/favicon.png');
+ assert.equal(page.intervals.size + page.timeouts.size + page.listeners.size, 0);
+ });
+
+ test(`${build}: switching completion and plan flashes preserves original title and favicon`, () => {
+ const page = fixture(build);
+ page.startAttentionFlash();
+ assert.equal(page.document.title, '🔔 Project dashboard');
+ page.startAttentionFlash({ reason: 'plan_review' });
+ assert.equal(page.document.title, '⚠️ Project dashboard');
+ page.startAttentionFlash({ reason: 'completion' });
+ assert.equal(page.document.title, '🔔 Project dashboard');
+ assert.deepEqual(page.paintedMarkers, ['🔔', '⚠️', '🔔']);
+ assert.equal(page.intervals.size, 1);
+ assert.equal(page.timeouts.size, 1);
+ assert.equal(page.listeners.size, 1);
+ page.stopAttentionFlash();
+ assert.equal(page.document.title, 'Project dashboard');
+ assert.equal(page.links[0].getAttribute('href'), 'https://site.test/favicon.png');
+ });
+
+ test(`${build}: targeted cancellation stops its plan without clearing a newer alert`, () => {
+ const page = fixture(build);
+ page.startAttentionFlash({ reason: 'plan_review', attentionId: 'plan-1' });
+ page.startAttentionFlash({ reason: 'plan_review', attentionId: 'plan-2' });
+ page.stopAttentionFlash({ attentionId: 'plan-1' });
+ assert.equal(page.document.title, '⚠️ Project dashboard');
+ assert.equal(page.links[0].getAttribute('href'), `data:image/png,${encodeURIComponent('⚠️')}`);
+ assert.equal(page.intervals.size, 1);
+ assert.equal(page.timeouts.size, 1);
+ assert.equal(page.listeners.size, 1);
+ page.stopAttentionFlash({ attentionId: 'plan-2' });
+ assert.equal(page.document.title, 'Project dashboard');
+ assert.equal(page.links[0].getAttribute('href'), 'https://site.test/favicon.png');
+ assert.equal(page.intervals.size + page.timeouts.size + page.listeners.size, 0);
+
+ page.startAttentionFlash({ reason: 'plan_review', attentionId: 'plan-3' });
+ page.startAttentionFlash({ reason: 'completion' });
+ page.stopAttentionFlash({ attentionId: 'plan-3' });
+ assert.equal(page.document.title, '🔔 Project dashboard');
+ assert.equal(page.links[0].getAttribute('href'), `data:image/png,${encodeURIComponent('🔔')}`);
+ assert.equal(page.intervals.size, 1);
+ page.stopAttentionFlash();
+ assert.equal(page.document.title, 'Project dashboard');
+ assert.equal(page.links[0].getAttribute('href'), 'https://site.test/favicon.png');
+ assert.equal(page.intervals.size + page.timeouts.size + page.listeners.size, 0);
+ });
+
+ test(`${build}: plan flashes preserve site-owned warnings and later title/icon updates`, () => {
+ const page = fixture(build, { title: '⚠️ Site warning' });
+ page.startAttentionFlash({ reason: 'plan_review' });
+ assert.equal(page.document.title, '⚠️ ⚠️ Site warning');
+ page.stopAttentionFlash();
+ assert.equal(page.document.title, '⚠️ Site warning');
+ page.startAttentionFlash({ reason: 'plan_review' });
+ page.document.title = '⚠️ Updated by site';
+ page.links[0].setAttribute('href', 'https://site.test/new-icon.png');
+ page.stopAttentionFlash();
+ assert.equal(page.document.title, '⚠️ Updated by site');
+ assert.equal(page.links[0].getAttribute('href'), 'https://site.test/new-icon.png');
+ });
+
+ test(`${build}: showing a plan tab clears its temporary favicon and stops the flash`, () => {
+ const page = fixture(build, { icons: [] });
+ page.startAttentionFlash({ reason: 'plan_review' });
+ assert.equal(page.links.length, 1);
+ page.show();
+ assert.equal(page.document.title, 'Project dashboard');
+ assert.equal(page.links.length, 0);
+ assert.equal(page.intervals.size + page.timeouts.size + page.listeners.size, 0);
+ assert.equal(page.startAttentionFlash({ reason: 'plan_review' }), false);
+ assert.equal(page.document.title, 'Project dashboard');
+ assert.equal(page.links.length, 0);
+ });
+
+ test(`${build}: attention message forwards the plan reason to the flash`, () => {
+ const { source } = fixture(build);
+ const start = source.indexOf("'attention_flash_start': () => {");
+ const end = source.indexOf("'attention_flash_stop':", start);
+ assert.ok(start >= 0 && end > start);
+ const params = { reason: 'plan_review', attentionId: 'plan-1' };
+ let received;
+ const result = vm.runInNewContext(`({ ${source.slice(start, end)} })['attention_flash_start']()`, {
+ msg: { params }, startAttentionFlash: value => { received = value; return true; },
+ });
+ assert.equal(result.success, true);
+ assert.equal(result.started, true);
+ assert.equal(received, params);
+ });
+
+ test(`${build}: cancellation message forwards its attention ID`, () => {
+ const { source } = fixture(build);
+ const start = source.indexOf("'attention_flash_stop': () => {");
+ const end = source.indexOf('\n },', start);
+ assert.ok(start >= 0 && end > start);
+ const params = { attentionId: 'plan-1' };
+ let received;
+ const result = vm.runInNewContext(`({ ${source.slice(start, end + 9)} })['attention_flash_stop']()`, {
+ msg: { params }, stopAttentionFlash: value => { received = value; },
+ });
+ assert.equal(result.success, true);
+ assert.equal(received, params);
+ });
+}
diff --git a/test/plan-review-notifications.mjs b/test/plan-review-notifications.mjs
new file mode 100644
index 000000000..48b5e6084
--- /dev/null
+++ b/test/plan-review-notifications.mjs
@@ -0,0 +1,573 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+import vm from 'node:vm';
+import test from 'node:test';
+
+const read = (build, name) => fs.readFileSync(new URL(`../src/${build}/src/${name}`, import.meta.url), 'utf8');
+const builds = await Promise.all(['chrome', 'firefox'].map(async build => ({
+ build,
+ source: read(build, 'background.js'),
+ Journal: (await import(`../src/${build}/src/run-ui-journal.js`)).RunUiJournal,
+})));
+
+// Execute production functions with controlled extension APIs. Loading the
+// entire worker would also start schedulers, providers, and network services.
+function extract(source, name) {
+ const match = new RegExp(`^([ \\t]*)(?:export )?(?:async )?function ${name}\\(`, 'm').exec(source);
+ assert.ok(match, `Missing production function ${name}`);
+ const start = match.index;
+ const end = source.indexOf(`\n${match[1]}}`, start);
+ assert.ok(end > start, `Missing production function boundary ${name}`);
+ return source.slice(start, end + match[1].length + 2).replace(/^export /, '');
+}
+
+function between(source, from, to) {
+ const start = source.indexOf(from), end = source.indexOf(to, start + from.length);
+ assert.ok(start >= 0 && end > start, `Missing production section ${from}`);
+ return source.slice(start, end);
+}
+
+function deferred() {
+ let resolve;
+ const promise = new Promise(done => { resolve = done; });
+ return { promise, resolve };
+}
+
+async function flush() {
+ // The delivery path awaits several mocked extension APIs in sequence.
+ // A task boundary drains that whole Promise chain without guessing its depth.
+ await new Promise(resolve => setImmediate(resolve));
+}
+
+function deliveryHarness(item, options = {}) {
+ const messages = [], audio = [], attention = [], stopped = [];
+ const journal = new item.Journal();
+ const api = {
+ runtime: { sendMessage: async message => { messages.push(message); } },
+ tabs: { sendMessage: async (_tabId, message) => { stopped.push(message); } },
+ };
+ const context = vm.createContext({
+ runUiJournal: journal,
+ agent: { currentRunId: new Map([[77, 'runtime-1']]) },
+ chrome: api, browser: api,
+ playWatchAlert: async (...args) => { audio.push(args.at(-1)); },
+ flashTabAttention: async value => { attention.push(value); },
+ flashedBadgeTabs: new Set(), completionNotificationFocusHandlers: new Map(),
+ beginRunUiSnapshot: (tabId, requestId, metadata) => journal.begin(tabId, requestId, metadata),
+ console,
+ });
+ const dedupe = item.source.match(/^const planReviewAlertIds = new WeakMap\(\);$/m)?.[0];
+ assert.ok(dedupe, 'Production should track notified plan IDs per snapshot');
+ vm.runInContext([
+ dedupe,
+ 'const planReviewAttentionByTab = new Map();',
+ 'const attentionBadgeOwners = new Map();',
+ ...['recordRunUiEvent', 'sendAgentUpdate', 'clearAttentionBadge', 'clearPlanReviewAttention', 'notifyPlanReview', 'sendScheduledAgentUpdate']
+ .map(name => extract(item.source, name)),
+ ].join('\n'), context);
+ if (options.begin !== false) journal.begin(77, 'request-1', { mode: 'act' });
+ return { context, journal, messages, audio, attention, stopped };
+}
+
+function visualHarness(item, options = {}) {
+ const notifications = [], cleared = [], sent = [], badges = [], badgeColors = [], focused = [], timers = [];
+ const clicked = [], closed = [];
+ const tab = { id: 77, windowId: 9, title: 'Owned task tab', active: false, ...options.tab };
+ const api = {
+ runtime: { getURL: value => `extension://test/${value}`, sendMessage: async () => ({}) },
+ storage: { local: { get: options.getStored || (async () => options.stored || {}) } },
+ tabs: {
+ get: options.getTab || (async () => tab),
+ sendMessage: async (tabId, message) => {
+ sent.push({ tabId, message });
+ if (options.sendContent) return options.sendContent(message);
+ return { started: options.started !== false };
+ },
+ update: async (tabId, change) => { focused.push({ tabId, ...change }); },
+ },
+ windows: {
+ get: async () => ({ focused: options.focused === true }),
+ update: async (windowId, change) => { focused.push({ windowId, ...change }); },
+ },
+ notifications: {
+ onClicked: { addListener: fn => clicked.push(fn) },
+ onClosed: { addListener: fn => closed.push(fn) },
+ create: (details, callback) => {
+ const id = `notification-${notifications.length + 1}`;
+ notifications.push({ id, ...details });
+ if (callback) callback(id);
+ return Promise.resolve(id);
+ },
+ clear: (id, callback) => { cleared.push(id); callback?.(); return Promise.resolve(true); },
+ },
+ };
+ api.action = api.browserAction = {
+ setBadgeText: async value => { badges.push(value); },
+ setBadgeBackgroundColor: async value => { badgeColors.push(value); },
+ };
+ const context = vm.createContext({
+ chrome: api, browser: api, console,
+ flashedBadgeTabs: new Set(),
+ setTimeout: (callback, delay) => { timers.push({ callback, delay }); return timers.length; },
+ });
+ vm.runInContext([
+ 'const planReviewAttentionByTab = new Map();',
+ 'const attentionBadgeOwners = new Map();',
+ between(item.source, 'const COMPLETION_NOTIFICATION_VISIBLE_MS', 'async function showCompletionNotification('),
+ extract(item.source, 'clearAttentionBadge'),
+ extract(item.source, 'clearPlanReviewAttention'),
+ extract(item.source, 'showCompletionNotification'),
+ extract(item.source, 'flashTabAttention'),
+ ].join('\n'), context);
+ return { context, api, notifications, cleared, sent, badges, badgeColors, focused, timers, clicked, closed };
+}
+
+function audioHarness(item, options = {}) {
+ const messages = [], frequencies = [], timers = [];
+ let ensureCalls = 0, contexts = 0;
+ const api = {
+ storage: { local: { get: options.getStored || (async () => options.stored || {}) } },
+ runtime: { sendMessage: async message => { messages.push(message); return { ok: true }; } },
+ };
+ class AudioContext {
+ constructor() { contexts++; this.currentTime = 10; this.state = options.suspended ? 'suspended' : 'running'; }
+ async resume() { await options.resume?.(); this.state = 'running'; }
+ createOscillator() {
+ return {
+ frequency: { setValueAtTime: frequency => frequencies.push(frequency) },
+ connect: () => ({ connect() {} }), start() {}, stop() {},
+ };
+ }
+ createGain() { return { gain: { setValueAtTime() {}, exponentialRampToValueAtTime() {} } }; }
+ }
+ const context = vm.createContext({
+ chrome: api, browser: api, AudioContext, console,
+ ensureOffscreen: async () => { ensureCalls++; await options.ensure?.(); },
+ setTimeout: callback => { timers.push(callback); return timers.length; },
+ });
+ if (item.build === 'chrome') {
+ vm.runInContext(extract(item.source, 'playWatchAlert'), context);
+ } else {
+ vm.runInContext(read(item.build, 'watch-alert.js').replace(/^export /gm, ''), context);
+ }
+ return {
+ context, messages, frequencies, timers,
+ get ensureCalls() { return ensureCalls; },
+ get contexts() { return contexts; },
+ play(payload) {
+ return item.build === 'chrome' ? context.playWatchAlert(payload) : context.playWatchAlert(api, payload);
+ },
+ };
+}
+
+function offscreenAudioHarness(options = {}) {
+ const frequencies = [], timers = [], ownershipQueries = [];
+ let listener;
+ class AudioContext {
+ constructor() { this.currentTime = 10; this.state = options.suspended ? 'suspended' : 'running'; }
+ async resume() { await options.resume?.(); this.state = 'running'; }
+ createOscillator() {
+ return {
+ frequency: { setValueAtTime: frequency => frequencies.push(frequency) },
+ connect: () => ({ connect() {} }), start() {}, stop() {},
+ };
+ }
+ createGain() { return { gain: { setValueAtTime() {}, exponentialRampToValueAtTime() {} } }; }
+ }
+ const context = vm.createContext({
+ AudioContext, console,
+ setTimeout: callback => { timers.push(callback); return timers.length; },
+ chrome: { runtime: {
+ onMessage: { addListener: fn => { listener = fn; } },
+ sendMessage: async query => {
+ ownershipQueries.push(query);
+ return { ok: true, current: options.isCurrent?.() !== false };
+ },
+ } },
+ });
+ vm.runInContext(read('chrome', 'offscreen/watch-audio.js'), context);
+ assert.equal(typeof listener, 'function');
+ return {
+ frequencies, timers, ownershipQueries,
+ play(payload) {
+ return new Promise(resolve => {
+ const handled = listener({ target: 'offscreen-watch-audio', action: 'play_watch_alert', ...payload }, {}, resolve);
+ assert.equal(handled, true, 'The production host keeps the response channel open');
+ });
+ },
+ };
+}
+
+for (const item of builds) {
+ test(`${item.build}: only accepted live plans alert once per plan and request`, async () => {
+ const h = deliveryHarness(item);
+ h.context.sendAgentUpdate(77, 'stale-request', 'plan_review', { planId: 'stale-plan' });
+ h.context.sendAgentUpdate(77, 'request-1', 'plan_auto_approved', { planId: 'auto-plan' });
+ assert.equal(h.audio.length, 0);
+ assert.equal(h.attention.length, 0);
+ assert.equal(h.messages.length, 1, 'Only the current request can broadcast a UI event');
+
+ h.context.sendAgentUpdate(77, 'request-1', 'plan_review', { planId: 'plan-1' });
+ h.context.sendAgentUpdate(77, 'request-1', 'plan_review', { planId: 'plan-1' });
+ await flush();
+ assert.equal(h.audio.length, 1, 'Repeated delivery of the same plan must stay silent');
+ assert.equal(h.attention.length, 1);
+ assert.equal(h.audio[0].style, 'plan_review');
+ if (item.build === 'chrome') {
+ assert.deepEqual({ ...h.audio[0].planReview }, { tabId: 77, requestId: 'request-1', planId: 'plan-1' });
+ }
+ assert.equal(h.audio[0].isCurrent(), true);
+ assert.equal(h.attention[0].tabId, 77);
+ assert.equal(h.attention[0].success, false);
+ assert.equal(h.attention[0].reason, 'plan_review');
+
+ const priorCurrent = h.audio[0].isCurrent;
+ h.context.sendAgentUpdate(77, 'request-1', 'plan_resolved', { planId: 'plan-1', decision: 'approved' });
+ assert.equal(priorCurrent(), false, 'Resolution invalidates an alert still awaiting setup');
+ h.context.sendAgentUpdate(77, 'request-1', 'plan_review', { planId: 'plan-2' });
+ assert.equal(h.audio.length, 2, 'A revised plan needs a fresh alert');
+
+ const revisedCurrent = h.audio[1].isCurrent;
+ h.journal.begin(77, 'request-2', { mode: 'act' });
+ assert.equal(revisedCurrent(), false, 'A new request must invalidate the previous alert');
+ h.context.sendAgentUpdate(77, 'request-2', 'plan_review', { planId: 'plan-1' });
+ assert.equal(h.audio.length, 3, 'Plan ID reuse in another request must not suppress its alert');
+ });
+
+ test(`${item.build}: scheduled runs use the same plan alert owner`, async () => {
+ const h = deliveryHarness(item, { begin: false });
+ const owner = { jobId: 'job-1', executionId: 'execution-1', mode: 'act', kind: 'resume' };
+ h.context.sendScheduledAgentUpdate(77, 'scheduled_job', { event: 'running', job: { id: owner.jobId } }, owner);
+ h.context.sendScheduledAgentUpdate(77, 'plan_review', { planId: 'scheduled-plan' }, owner);
+ assert.equal(h.journal.get(77).status, 'awaiting_plan');
+ assert.equal(h.audio.length, 1);
+ assert.equal(h.attention.length, 1);
+ h.context.sendScheduledAgentUpdate(77, 'plan_review', { planId: 'stale-execution-plan' }, { ...owner, executionId: 'old' });
+ assert.equal(h.audio.length, 1, 'A different execution does not own the scheduled journal');
+ });
+
+ test(`${item.build}: hidden plan reviews flash and show a warning notification`, async () => {
+ const h = visualHarness(item);
+ await h.context.flashTabAttention({ tabId: 77, success: false, reason: 'plan_review' });
+ assert.equal(h.sent.length, 1);
+ assert.equal(h.sent[0].message.params.reason, 'plan_review');
+ assert.equal(h.notifications.length, 1, 'Plans need an alert even when the content script starts flashing');
+ assert.match(h.notifications[0].title, /⚠️.*Plan.*review/);
+ assert.equal(h.notifications[0].iconUrl, 'extension://test/icons/plan-review.png');
+ assert.equal(h.notifications[0].silent, true, 'The distinct background chime owns sound');
+ assert.equal(h.badges.length, 0, 'Successful content flashing does not need a toolbar fallback');
+
+ const completion = visualHarness(item);
+ await completion.context.flashTabAttention({ tabId: 77, success: true });
+ assert.equal(completion.notifications.length, 0, 'Ordinary completion flashing keeps its existing behavior');
+ assert.equal(completion.sent[0].message.params.reason, 'completion');
+ });
+
+ test(`${item.build}: restricted tabs receive an amber warning badge and actionable plan notification`, async () => {
+ const h = visualHarness(item, { sendContent: async () => { throw new Error('No content receiver'); } });
+ await h.context.flashTabAttention({ tabId: 77, success: false, reason: 'plan_review' });
+ assert.equal(h.badges[0].text, '⚠');
+ assert.equal(h.badgeColors[0].color, '#f59e0b');
+ assert.equal(h.notifications.length, 1);
+ h.clicked[0](h.notifications[0].id);
+ await flush();
+ assert.deepEqual(h.focused.map(value => ({ ...value })), [
+ { windowId: 9, focused: true }, { tabId: 77, active: true },
+ ]);
+ h.clicked[0](h.notifications[0].id);
+ await flush();
+ assert.equal(h.focused.length, 2, 'The click action is consumed once');
+ assert.equal(h.timers[0].delay, 12000);
+ h.timers[0].callback();
+ assert.deepEqual(h.cleared, [h.notifications[0].id]);
+ });
+
+ test(`${item.build}: watched tabs and the visual opt-out suppress plan alerts`, async () => {
+ const watched = visualHarness(item, { started: false, tab: { active: true }, focused: true });
+ await watched.context.flashTabAttention({ tabId: 77, reason: 'plan_review' });
+ assert.equal(watched.notifications.length, 0);
+ assert.equal(watched.badges.length, 0);
+ const muted = visualHarness(item, { stored: { completionFlashTab: false } });
+ await muted.context.flashTabAttention({ tabId: 77, reason: 'plan_review' });
+ assert.equal(muted.sent.length, 0);
+ assert.equal(muted.notifications.length, 0);
+
+ const unfocused = visualHarness(item, { started: false, tab: { active: true }, focused: false });
+ await unfocused.context.flashTabAttention({ tabId: 77, reason: 'plan_review' });
+ assert.equal(unfocused.notifications.length, 1, 'Selected tabs in another window still need attention');
+ });
+
+ test(`${item.build}: resolved plans cannot notify after awaited visual setup`, async () => {
+ for (const stage of ['settings', 'content', 'notification-tab']) {
+ const wait = deferred();
+ let current = true, gets = 0;
+ const options = stage === 'settings' ? { getStored: () => wait.promise }
+ : stage === 'content' ? { sendContent: () => wait.promise }
+ : { getTab: async () => { if (++gets === 2) await wait.promise; return { id: 77, active: false }; } };
+ const h = visualHarness(item, options);
+ const pending = h.context.flashTabAttention({ tabId: 77, reason: 'plan_review', isCurrent: () => current });
+ await flush();
+ current = false;
+ wait.resolve(stage === 'content' ? { started: true } : {});
+ await pending;
+ assert.equal(h.notifications.length, 0, `${stage}: resolved or replaced plans must stay silent`);
+ assert.equal(h.badges.length, 0, `${stage}: stale plans must not leave a badge`);
+ }
+ });
+
+ test(`${item.build}: a plan resolved during content startup stops only its own flash`, async () => {
+ const wait = deferred();
+ let current = true;
+ const h = visualHarness(item, {
+ sendContent: message => message.action === 'attention_flash_start' ? wait.promise : { stopped: true },
+ });
+ const pending = h.context.flashTabAttention({
+ tabId: 77, reason: 'plan_review', attentionId: 'request-1:plan-1', isCurrent: () => current,
+ });
+ await flush();
+ current = false;
+ wait.resolve({ started: true });
+ await pending;
+ assert.deepEqual(h.sent.map(row => row.message.action), ['attention_flash_start', 'attention_flash_stop']);
+ assert.deepEqual(h.sent.map(row => row.message.params.attentionId), ['request-1:plan-1', 'request-1:plan-1']);
+ assert.equal(h.notifications.length, 0);
+ assert.equal(h.badges.length, 0);
+ });
+
+ test(`${item.build}: resolving a presented plan clears its flash, badge, and notification`, async () => {
+ const h = visualHarness(item, { started: false });
+ const journal = new item.Journal();
+ h.context.runUiJournal = journal;
+ h.context.agent = { currentRunId: new Map([[77, 'runtime-1']]) };
+ h.context.playWatchAlert = async () => ({ ok: true });
+ vm.runInContext([
+ 'const planReviewAlertIds = new WeakMap();',
+ ...['recordRunUiEvent', 'sendAgentUpdate', 'notifyPlanReview'].map(name => extract(item.source, name)),
+ ].join('\n'), h.context);
+ journal.begin(77, 'request-1', { mode: 'act' });
+ h.context.sendAgentUpdate(77, 'request-1', 'plan_review', { planId: 'plan-1' });
+ await flush();
+ assert.equal(h.notifications.length, 1);
+ assert.equal(h.badges.at(-1).text, '⚠');
+ const attentionId = h.sent[0].message.params.attentionId;
+ h.context.clearPlanReviewAttention(77, 'old-request', 'plan-1');
+ assert.equal(h.cleared.length, 0, 'Cleanup from another request cannot clear the presented plan');
+ h.context.sendAgentUpdate(77, 'request-1', 'plan_resolved', { planId: 'plan-1', decision: 'approved' });
+ await flush();
+ assert.equal(h.sent.at(-1).message.action, 'attention_flash_stop');
+ assert.equal(h.sent.at(-1).message.params.attentionId, attentionId);
+ assert.equal(h.badges.at(-1).text, '');
+ assert.deepEqual(h.cleared, [h.notifications[0].id]);
+ h.clicked[0](h.notifications[0].id);
+ await flush();
+ assert.equal(h.focused.length, 0, 'A cleared plan notification no longer owns a focus handler');
+ });
+
+ test(`${item.build}: plan resolution during either badge setter clears the pending warning`, async () => {
+ for (const stage of ['text', 'color']) {
+ const wait = deferred();
+ const h = visualHarness(item, { started: false });
+ const method = stage === 'text' ? 'setBadgeText' : 'setBadgeBackgroundColor';
+ const original = h.api.action[method];
+ h.api.action[method] = async value => {
+ await original(value);
+ if (stage === 'color' || value.text === '⚠') await wait.promise;
+ };
+ const attention = { id: 'request-1:plan-1', requestId: 'request-1', planId: 'plan-1' };
+ h.context.pendingAttention = attention;
+ vm.runInContext('planReviewAttentionByTab.set(77, pendingAttention);', h.context);
+ let current = true;
+ const pending = h.context.flashTabAttention({
+ tabId: 77, reason: 'plan_review', attentionId: attention.id, isCurrent: () => current,
+ });
+ await flush();
+ assert.equal(attention.badge, true, `${stage}: cleanup must own the badge before waiting on its setter`);
+ current = false;
+ h.context.clearPlanReviewAttention(77, 'request-1', 'plan-1');
+ await flush();
+ wait.resolve();
+ await pending;
+ assert.equal(h.badges.at(-1).text, '', `${stage}: a resolved plan must not leave an amber warning`);
+ assert.equal(h.notifications.length, 0, `${stage}: a resolved plan must not create a notification`);
+ if (stage === 'text') assert.equal(h.badgeColors.length, 0, 'The stale path stops before changing badge color');
+ }
+ });
+
+ test(`${item.build}: late plan badge cleanup preserves a newer completion badge`, async () => {
+ const wait = deferred();
+ const h = visualHarness(item, { started: false });
+ const original = h.api.action.setBadgeText;
+ h.api.action.setBadgeText = async value => {
+ await original(value);
+ if (value.text === '⚠') await wait.promise;
+ };
+ const attention = { id: 'request-1:plan-1', requestId: 'request-1', planId: 'plan-1' };
+ h.context.pendingAttention = attention;
+ vm.runInContext('planReviewAttentionByTab.set(77, pendingAttention);', h.context);
+ let current = true;
+ const pendingPlan = h.context.flashTabAttention({
+ tabId: 77, reason: 'plan_review', attentionId: attention.id, isCurrent: () => current,
+ });
+ await flush();
+ current = false;
+ h.context.clearPlanReviewAttention(77, 'request-1', 'plan-1');
+ await flush();
+ await h.context.flashTabAttention({ tabId: 77, success: true });
+ assert.equal(h.badges.at(-1).text, '✓');
+ const writesBeforeOldPlanSettles = h.badges.length;
+ wait.resolve();
+ await pendingPlan;
+ assert.equal(h.badges.length, writesBeforeOldPlanSettles, 'An older plan cannot clear the newer badge owner');
+ assert.equal(h.badges.at(-1).text, '✓');
+ assert.equal(h.badgeColors.at(-1).color, '#22c55e');
+ assert.equal(h.notifications.length, 1);
+ assert.match(h.notifications[0].title, /Task finished/);
+ });
+
+ test(`${item.build}: sound opt-out and stale setup suppress background playback`, async () => {
+ const muted = audioHarness(item, { stored: { notifySound: false } });
+ const result = await muted.play({ style: 'plan_review' });
+ assert.equal(result.muted, true);
+ assert.equal(muted.messages.length, 0);
+ assert.equal(muted.contexts, 0);
+ for (const stage of ['settings', ...(item.build === 'chrome' ? ['offscreen'] : ['resume'])]) {
+ const wait = deferred();
+ let current = true;
+ const options = stage === 'settings' ? { getStored: () => wait.promise }
+ : stage === 'offscreen' ? { ensure: () => wait.promise }
+ : { suspended: true, resume: () => wait.promise };
+ const h = audioHarness(item, options);
+ const pending = h.play({ style: 'plan_review', isCurrent: () => current });
+ await flush();
+ current = false;
+ wait.resolve({});
+ await pending;
+ assert.equal(h.messages.length, 0, `${stage}: no offscreen sound message after the plan resolves`);
+ assert.equal(h.frequencies.length, 0, `${stage}: no oscillator after the plan resolves`);
+ }
+ });
+}
+
+test('Chrome and Firefox play the same distinct descending plan review chime', async () => {
+ const chrome = read('chrome', 'offscreen/watch-audio.js');
+ const chromeContext = vm.createContext({});
+ vm.runInContext(extract(chrome, 'patternFor'), chromeContext);
+ const firefox = builds.find(item => item.build === 'firefox');
+ const firefoxContext = vm.createContext({});
+ vm.runInContext(extract(read('firefox', 'watch-alert.js'), 'watchAlertPattern'), firefoxContext);
+ const chromePattern = JSON.parse(JSON.stringify(chromeContext.patternFor('plan_review')));
+ const firefoxPattern = JSON.parse(JSON.stringify(firefoxContext.watchAlertPattern('plan_review')));
+ assert.deepEqual(chromePattern, firefoxPattern);
+ assert.deepEqual(chromePattern.map(tone => tone.frequency), [880, 660]);
+ assert.ok(chromePattern[1].at > chromePattern[0].duration, 'The warning has two separate tones');
+ assert.notDeepEqual(chromePattern, JSON.parse(JSON.stringify(chromeContext.patternFor('default'))));
+ const h = audioHarness(firefox);
+ const pending = h.play({ style: 'plan_review' });
+ await flush();
+ assert.deepEqual(h.frequencies, [880, 660], 'The selected plan pattern reaches real playback scheduling');
+ for (const timer of h.timers) timer();
+ await pending;
+});
+
+test('Chrome forwards the plan chime to its offscreen host after setup', async () => {
+ const h = audioHarness(builds.find(item => item.build === 'chrome'));
+ const planReview = { tabId: 77, requestId: 'request-1', planId: 'plan-1' };
+ await h.play({ style: 'plan_review', planReview });
+ assert.equal(h.ensureCalls, 1);
+ assert.equal(h.messages.length, 1);
+ assert.equal(h.messages[0].target, 'offscreen-watch-audio');
+ assert.equal(h.messages[0].action, 'play_watch_alert');
+ assert.equal(h.messages[0].style, 'plan_review');
+ assert.deepEqual({ ...h.messages[0].planReview }, planReview);
+});
+
+test('Firefox rechecks a plan that resolves while another alert occupies the audio queue', async () => {
+ const h = audioHarness(builds.find(item => item.build === 'firefox'));
+ const prior = h.play({ style: 'short' });
+ await flush();
+ assert.deepEqual(h.frequencies, [740]);
+ let current = true;
+ const pending = h.play({ style: 'plan_review', isCurrent: () => current });
+ await flush();
+ current = false;
+ h.timers[0]();
+ await prior;
+ await pending;
+ assert.deepEqual(h.frequencies, [740], 'A queued plan must not sound after its review is resolved');
+});
+
+test('Chrome offscreen host rechecks a plan after waiting behind another alert', async () => {
+ let current = true;
+ const h = offscreenAudioHarness({ isCurrent: () => current });
+ const prior = h.play({ style: 'short' });
+ await flush();
+ assert.deepEqual(h.frequencies, [740]);
+ assert.equal(h.ownershipQueries.length, 0, 'Ordinary watch alerts need no plan ownership lookup');
+ const planReview = { tabId: 77, requestId: 'request-1', planId: 'plan-1' };
+ const pending = h.play({ style: 'plan_review', planReview });
+ await flush();
+ current = false;
+ h.timers[0]();
+ await prior;
+ await pending;
+ assert.deepEqual(h.frequencies, [740], 'The resolved queued plan must not create oscillators');
+ assert.ok(h.ownershipQueries.length > 0);
+ const query = h.ownershipQueries.at(-1);
+ assert.equal(query.target, 'background-plan-audio');
+ assert.equal(query.action, 'is_current');
+ assert.deepEqual({ tabId: query.tabId, requestId: query.requestId, planId: query.planId }, planReview);
+});
+
+test('Chrome offscreen host rechecks plan ownership after resuming audio', async () => {
+ const wait = deferred();
+ let current = true;
+ const h = offscreenAudioHarness({ suspended: true, resume: () => wait.promise, isCurrent: () => current });
+ const pending = h.play({ style: 'plan_review', planReview: { tabId: 77, requestId: 'request-1', planId: 'plan-1' } });
+ await flush();
+ current = false;
+ wait.resolve();
+ await pending;
+ assert.deepEqual(h.frequencies, [], 'A plan resolved during resume must not sound');
+ assert.ok(h.ownershipQueries.length > 0);
+});
+
+test('Chrome audio authority accepts only its offscreen host and the currently pending plan', () => {
+ const item = builds.find(value => value.build === 'chrome');
+ const journal = new item.Journal();
+ let listener;
+ const api = { runtime: {
+ id: 'owned-extension',
+ getURL: value => `chrome-extension://owned-extension/${value}`,
+ onMessage: { addListener: fn => { listener = fn; } },
+ } };
+ const context = vm.createContext({ chrome: api, runUiJournal: journal });
+ vm.runInContext(between(item.source, 'function isCurrentPlanReviewAudio(',
+ 'chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {'), context);
+ const sender = { id: api.runtime.id, url: api.runtime.getURL('src/offscreen/offscreen.html') };
+ const message = { target: 'background-plan-audio', action: 'is_current', tabId: 77, requestId: 'request-1', planId: 'plan-1' };
+ journal.begin(77, 'request-1', { mode: 'act' });
+ journal.record(77, 'request-1', 'plan_review', { planId: 'plan-1' });
+ assert.equal(context.isCurrentPlanReviewAudio(message, sender), true);
+ let response;
+ listener(message, sender, value => { response = value; });
+ assert.equal(response.current, true, 'The dedicated message listener reports the production authority verdict');
+ assert.equal(context.isCurrentPlanReviewAudio(message, { ...sender, id: 'another-extension' }), false);
+ assert.equal(context.isCurrentPlanReviewAudio(message, {
+ ...sender, url: api.runtime.getURL('src/ui/sidepanel.html'),
+ }), false, 'Another extension page cannot impersonate the offscreen audio host');
+ assert.equal(context.isCurrentPlanReviewAudio(message, { ...sender, url: 'https://example.com/' }), false);
+ for (const mismatch of [{ tabId: 78 }, { requestId: 'old-request' }, { planId: 'old-plan' }, { planId: '' }]) {
+ assert.equal(context.isCurrentPlanReviewAudio({ ...message, ...mismatch }, sender), false);
+ }
+ journal.record(77, 'request-1', 'plan_resolved', { planId: 'plan-1', decision: 'approved' });
+ assert.equal(context.isCurrentPlanReviewAudio(message, sender), false, 'Resolved plans cannot authorize queued audio');
+ journal.begin(77, 'request-2', { mode: 'act' });
+ journal.record(77, 'request-2', 'plan_review', { planId: 'plan-1' });
+ assert.equal(context.isCurrentPlanReviewAudio(message, sender), false, 'A new request cannot authorize old queued audio');
+ assert.equal(context.isCurrentPlanReviewAudio({ ...message, requestId: 'request-2' }, sender), true);
+ journal.finish(77, 'request-2', 'cancelled', '');
+ assert.equal(context.isCurrentPlanReviewAudio({ ...message, requestId: 'request-2' }, sender), false);
+ response = undefined;
+ listener({ ...message, target: 'background' }, sender, value => { response = value; });
+ assert.equal(response, undefined, 'The authority listener ignores unrelated background messages');
+});