Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(i18n): 邮箱 local-part 边界、英文纳入省略号规则,修 Agent 会话语义
Dashe1df79ab2b48
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex 28a4faaf61..551982be21 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -146,10 +146,10 @@},"status": {"disconnected": "Disconnected",- "connecting": "Connecting...",- "authenticating": "Authenticating...",+ "connecting": "Connecting…",+ "authenticating": "Authenticating…","ready": "Ready",- "reconnecting": "Reconnecting...",+ "reconnecting": "Reconnecting…","failed": "Failed"},"button": {@@ -178,7 +178,7 @@"close": "Close","done": "Done","pickOrGenerate": "Pick an existing key, or generate a new one",- "loading": "Scanning ~/.ssh/...",+ "loading": "Scanning ~/.ssh/…","empty": "No SSH keys found in ~/.ssh/. Click \"Generate new\" to create one.","generateButton": "Generate new","cancelGenerate": "Cancel",@@ -192,7 +192,7 @@"unlockSubmit": "Unlock","generateTitle": "Generate a new SSH key","nameLabel": "Name (optional)",- "nameHint": "Saved as ~/.ssh/<name>. Defaults to \"cindy\", suffixes with -1, -2... on collision.",+ "nameHint": "Saved as ~/.ssh/<name>. Defaults to \"cindy\", suffixes with -1, -2… on collision.","encryptLabel": "Encrypt with a passphrase (recommended)","encryptHint": "Passphrase is typed once now, then ssh-add caches the decrypted key in your system's ssh-agent. macOS also persists the passphrase in Keychain so it survives reboots.","passLabel": "Passphrase",@@ -340,9 +340,9 @@"codexSyncNoLocal": "No local Codex credentials found — log in to Codex in {{appName}} first"},"silentInstall": {- "starting": "Installing {{agent}} on remote {{hostId}}...",- "preparingRuntime": "Preparing runtime on {{hostId}}...",- "installingAgent": "Installing {{agent}} on remote {{hostId}}...",+ "starting": "Installing {{agent}} on remote {{hostId}}…",+ "preparingRuntime": "Preparing runtime on {{hostId}}…",+ "installingAgent": "Installing {{agent}} on remote {{hostId}}…","failed": "Failed to install {{agent}} on {{hostId}}: {{message}}. Open Settings → Remote → expand {{hostId}} for the full log."}},@@ -527,7 +527,7 @@"victory-fanfare": "Victory fanfare","error-buzz": "Error buzz","secret-chime": "Secret chime",- "custom": "Local file...",+ "custom": "Local file…","customSelected": "Local file: {{name}}"}},@@ -1360,9 +1360,9 @@"statusAria": "FeiShu Bot status: {{status}}","status": {"needsConfig": "Needs configuration",- "connecting": "Connecting...",+ "connecting": "Connecting…","connected": "Connected",- "reconnecting": "Reconnecting...",+ "reconnecting": "Reconnecting…","conflict": "Used by another device","error": "Connection failed"},@@ -1411,7 +1411,7 @@"statusAria": "Discord bot status: {{status}}","status": {"needsConfig": "Needs configuration",- "connecting": "Connecting...",+ "connecting": "Connecting…","connected": "Connected","conflict": "In use on another device","error": "Connection failed"@@ -1436,9 +1436,9 @@"hideToken": "Hide token","formHint": "User ID must be a 17-20 digit numeric snowflake.","connect": "Connect",- "connectingAction": "Connecting...",+ "connectingAction": "Connecting…","disconnect": "Unbind",- "disconnectingAction": "Unbinding...",+ "disconnectingAction": "Unbinding…","disconnectAria": "Unbind Discord Bot","disconnectConfirm": {"title": "Unbind Discord Bot?",@@ -1625,7 +1625,7 @@}},"collaboration": {- "loading": "Loading collaboration settings...",+ "loading": "Loading collaboration settings…","title": "Collaboration","workerSoftLimit": "Worker Soft Limit","workerSoftLimitHint": "Soft warning when number of workers reaches this threshold.",@@ -1679,8 +1679,8 @@"refresh": "Recheck","toggleHint": "This machine-wide toggle only applies to agent sessions started afterward; it does not affect a conversation that is already running.","status": {- "checking": "Checking ADB status...",- "preparing": "Preparing ADB...",+ "checking": "Checking ADB status…",+ "preparing": "Preparing ADB…","ready": "ADB ready. Ready devices: {{count}}. Default: {{device}}","adbDetail": "{{version}} at {{path}}","noDevice": "ADB ready. No authorized Android device is connected.",@@ -1706,7 +1706,7 @@"adb": {"title": "ADB","auto": "Automatic ADB resolution is active",- "preparing": "Preparing ADB...",+ "preparing": "Preparing ADB…","ready": "Current source: {{source}}","prepareFailed": "ADB preparation failed: {{message}}","placeholder": "Custom adb path",@@ -1751,7 +1751,7 @@"daemonRunning": "daemon running","daemonStopped": "daemon stopped; it will start automatically on use","notDetected": "cua-driver was not detected. It will be installed automatically the first time you enable this; grant permissions afterward to use direct computer control.",- "installing": "Installing cua-driver...",+ "installing": "Installing cua-driver…","authorizing": "Waiting for system permissions. Complete Accessibility and Screen Recording in the Cua Driver permission window.","permissionIntro": {"title": "Enable computer automation",@@ -2845,7 +2845,7 @@"emailPlaceholder": "Enter your email","invalidEmail": "Please enter a valid email address","invalidPhone": "Please enter a valid phone number",- "working": "Please wait...",+ "working": "Please wait…","continue": "Continue","or": "or","socialButton": "Continue with {{provider}}",@@ -2866,7 +2866,7 @@"ssoRequired": "This organization requires SSO sign-in","ssoEntry": "Sign in with enterprise SSO","localModeEntry": "Skip Sign-In",- "localModeOpening": "Opening local mode...",+ "localModeOpening": "Opening local mode…","returnToLocalMode": "Return to local mode","localModeDescription": "No Cindy account required. Data stays on this device; cloud models, cross-device access, and marketplace services are unavailable.","consentStatement": "I have read and agree to the <terms>Terms of Service</terms> and <privacy>Privacy Policy</privacy>",@@ -2886,7 +2886,7 @@"enterCode": "Enter verification code","codeSentTo": "We sent a code to {{identifier}}","codePlaceholder": "6-digit code",- "verifying": "Verifying...",+ "verifying": "Verifying…","signIn": "Sign in","resendCode": "Resend code","resendCountdown": "{{n}} seconds until resend",@@ -2948,11 +2948,11 @@},"splash": {"tips": {- "checkingUpdate": "Checking for updates...",- "updating": "Updating Cindy...",- "updateDone": "Update complete, restarting shortly...",- "checkingEnv": "Checking runtime environment...",- "waking": "Waking Cindy...",+ "checkingUpdate": "Checking for updates…",+ "updating": "Updating Cindy…",+ "updateDone": "Update complete, restarting shortly…",+ "checkingEnv": "Checking runtime environment…",+ "waking": "Waking Cindy…","envFailed": "Environment setup failed — click to retry"},"downloadStats": "{{percent}}% · {{speed}} MB/s · {{done}} MB / {{total}} MB",@@ -3627,7 +3627,7 @@"cancel": "No thanks"},"running": {- "title": "Converting config...",+ "title": "Converting config…","description": "Writing workspace config for {{targetAgent}}. Please do not close the window.","primary": "Convert","cancel": "No thanks"@@ -3646,7 +3646,7 @@},"findInPage": {"dialogAriaLabel": "Find in page",- "placeholder": "Find...",+ "placeholder": "Find…","previous": "Previous","next": "Next","close": "Close"@@ -3787,13 +3787,13 @@"add": "Add project","cancel": "Cancel","empty": "Connect a controllable device under Settings → Remote connection, or add an SSH host under Settings → Remote machines first.",- "loading": "Loading...",+ "loading": "Loading…","noSubdirs": "No subfolders here","doubleClickHint": "Double-click to enter","tabExisting": "Existing projects","tabBrowse": "Browse folders","existingEmpty": "No projects on that machine yet — browse folders to add one.",- "existingLoading": "Loading projects...",+ "existingLoading": "Loading projects…","confirmCreate": {"title": "Create remote directory?","description": "{{path}} does not exist on {{hostId}}. Create it now?",@@ -3847,8 +3847,8 @@"other": "Other"},"search": {- "placeholder": "Search {{source}} models...",- "placeholderAll": "Search models...",+ "placeholder": "Search {{source}} models…",+ "placeholderAll": "Search models…","noResults": "No matching models"},"meta": {@@ -3967,7 +3967,7 @@"steerAction": "Steer","steerRunningTip": "Steer this message into the running task without interrupting it; handled once the current action finishes","steerPausedTip": "Continue the task and handle this message first",- "steeringAction": "Steering...",+ "steeringAction": "Steering…","steerAria": "Steer queued message {{index}} into the running task","steeringAria": "Queued message {{index}} is being steered","editAction": "Edit",@@ -4147,7 +4147,7 @@"error": "Voice input failed"},"hint": "Press shortcut again to input",- "placeholder": "Start speaking...",+ "placeholder": "Start speaking…","pasteHint": "Automatic input failed. Copy the transcript and enter it manually.","pasteErrors": {"empty": "There is no voice input text to enter.",@@ -4191,7 +4191,7 @@"approved": "Approved","revisionRequested": "Revision requested","expired": "Expired",- "pendingHint": "Agent is waiting for plan approval...",+ "pendingHint": "Agent is waiting for plan approval…","collapse": "Collapse plan","showFull": "Show full plan","feedbackLabel": "Feedback:",@@ -4297,7 +4297,7 @@"syncAuthDaemonRestartFailed": "Credentials pushed, but the old daemon did not restart — reconnect to the remote before retrying","invalidEncryptedContent": "Switching providers made the previous encryption unusable. This session can only continue under the original provider, or click Fork to drop the protocol-encrypted content and continue in a new session.","forkStripEncrypted": "Fork and strip",- "forkStripEncryptedRunning": "Forking...",+ "forkStripEncryptedRunning": "Forking…","forkStripEncryptedTitle": "Fork and strip into a new session","codexSessionExpiredLogin": "Reconnect ChatGPT","codexSessionReconnected": "ChatGPT is reconnected. Click “Retry” to continue.",@@ -4429,7 +4429,7 @@"openSystemFailed": "Cannot open in system","copyAll": "Copy all","cannotRead": "Unable to read file",- "loading": "Loading file...",+ "loading": "Loading file…","oversizeTitle": "File too large to preview","oversizeBody": "This file is {{size}}, exceeding the {{limit}}MB preview limit. Please open it with the system default application.","openInSystem": "Open in system",@@ -4566,7 +4566,7 @@"systemCard": {"context": {"title": "Context Usage",- "loading": "Loading...",+ "loading": "Loading…","noLiveSession": "No context data is available yet. Try again after the Claude Code session starts.","unsupportedAgent": "{{agent}} does not support context usage yet.","percentFull": "{{pct}}% Full",@@ -4717,7 +4717,7 @@"title": "Rewind to this message?","titleError": "Cannot rewind to this message","errorDescription": "File checkpointing is not enabled for this Session — files modified by tools cannot be rolled back.",- "calculating": "Calculating rewind impact...",+ "calculating": "Calculating rewind impact…","noChanges": "No file changes to roll back","continueWillTruncate": "Continuing will still truncate later conversation","noPerFileDiff": "This SDK version does not support per-file diff preview",@@ -4740,7 +4740,7 @@},"upgradeBanner": {"description": "A new cc-manager version is available on {{hostId}} — upgrading will interrupt all active Claude Code remote sessions on this host",- "upgrading": "Upgrading cc-manager on {{hostId}}...",+ "upgrading": "Upgrading cc-manager on {{hostId}}…","upgrade": "Upgrade now","upgradeTitle": "Download and restart cc-manager (will interrupt current sessions)","dismissTitle": "Not now (will prompt again on next launch)",@@ -4854,7 +4854,7 @@"unnamedSession": "Untitled session","moreActions": "More actions","newSession": "New session",- "loading": "Loading..."+ "loading": "Loading…"},"time": {"yesterday": "Yesterday",@@ -4899,7 +4899,7 @@"confirm": "Open Settings","cancel": "Cancel"},- "chatPlaceholder": "Let's keep chatting...",+ "chatPlaceholder": "Let's keep chatting…","chatDropAreaAria": "Chat file drop area","openWorkingDirAria": "Open working directory in the system file manager","projectContextLoaded": "Project Knowledge Base loaded",@@ -5312,7 +5312,7 @@},"docSearch": {"ariaLabel": "Find in document",- "placeholder": "Find...",+ "placeholder": "Find…","prev": "Previous","next": "Next","close": "Close",@@ -5411,10 +5411,10 @@},"search": {"open": "Search",- "placeholder": "Search titles or content...",+ "placeholder": "Search titles or content…","clear": "Clear search","empty": "Type to search chat titles and content",- "searching": "Searching...",+ "searching": "Searching…","failed": "Search failed","noResults": "No matching chats","jumpFailed": "Opened the chat, but could not jump to the matching message",@@ -6244,7 +6244,7 @@"totalCount_other": "{{count}} items"},"sidebar": {- "loading": "loading ...",+ "loading": "loading…","skillHub": "Skill Hub","backToLocal": "Back To Local","openInExplorer": "Open in file manager",@@ -6402,7 +6402,7 @@"categoryAll": "All","categoryLabel": "Category: {{name}}","loadFailed": "Load failed: {{error}}",- "loading": "Loading...",+ "loading": "Loading…","noResults": "No matching skills","installFailedToast": "{{name}} install failed: {{message}}","installError": "Unknown error"@@ -6505,7 +6505,7 @@"categoryLabel": "Category","categoryAuto": "Auto","categoryPlaceholder": "Select a category",- "categoryLoading": "Loading categories...",+ "categoryLoading": "Loading categories…","categoryLoadFailed": "Failed to load categories. Please retry.","categoryEmpty": "No categories are available","categoryRequired": "Select a category before publishing",@@ -6754,7 +6754,7 @@"statusField": "Status:","errorField": "Error:","sendNotAccepted": "Send was not accepted and no turn started. Check the working directory or session state, then try again.",- "messagePlaceholder": "Type message...",+ "messagePlaceholder": "Type message…","imagePathPlaceholder": "Image absolute path (D5 - test Codex image)","send": "Send","abort": "Abort",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex f5a18e6afe..6264bfb2e4 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -590,7 +590,7 @@"title": "快速开始","step1": "先新建一个对话,告诉 Claude Code 或 Codex 你要完成的目标。","step2": "如果你的工作和项目代码有关,先选择工作目录,再让它读文件、解释代码或修改实现。",- "step3": "把对话区当作一个持续的工作对话:提出任务、查看结果、根据结果继续推进。"+ "step3": "把对话区当作持续推进工作的地方:提出任务、查看结果、根据结果继续推进。"},"workflows": {"title": "推荐工作流",@@ -1641,7 +1641,7 @@"title": "自动操作浏览器","description": "一个 Agent 专用的独立浏览器,与你日常的 Chrome 互不影响","toggleAria": "切换浏览器自动化",- "toggleHint": "这个开关只对之后新建的 Agent 对话生效;正在进行的对话不受影响。",+ "toggleHint": "这个开关只对之后新建的 Agent 会话生效;已在运行的对话不受影响。","noProjectHint": "从项目对话中打开「设置」可针对该项目开关浏览器自动化。","detected": "已检测到 {{browser}}","notDetected": "未检测到本机浏览器。安装 Chrome 后即可使用浏览器自动化。",@@ -1676,7 +1676,7 @@"description": "让 Agent 通过 ADB 检查并操作已连接的 Android 设备","toggleAria": "切换 Android 自动化","refresh": "重新检查",- "toggleHint": "这个全局开关只对之后新建的 Agent 对话生效;正在进行的对话不受影响。",+ "toggleHint": "这个全局开关只对之后新建的 Agent 会话生效;已在运行的对话不受影响。","status": {"checking": "正在检查 ADB 状态…","preparing": "正在准备 ADB…",@@ -1795,7 +1795,7 @@"windowsHint": "Windows 不需要额外系统授权。使用时请保持目标应用在当前活动桌面中可见,Agent 会接管前台操作。","linuxHint": "Linux 不需要 macOS 的 TCC 授权;请确保当前桌面会话允许窗口读取和输入自动化。"},- "toggleHint": "这个开关只对之后新建的 Agent 对话生效;正在进行的对话不受影响。",+ "toggleHint": "这个开关只对之后新建的 Agent 会话生效;已在运行的对话不受影响。","noProjectHint": "从项目对话中打开「设置」可针对该项目开关直接电脑控制。","update": {"available": "发现新版本 v{{version}},更新后如系统权限失效需重新授权。",@@ -1827,7 +1827,7 @@"description": "设置新对话默认值,或为指定项目添加覆盖。项目设置优先于用户默认值。","empty": "暂无可用的工具。","toggleAria": "切换 {{name}} 工具",- "toggleHint": "变更仅对新建或重新启动的 Agent 对话生效,不影响正在运行的对话。",+ "toggleHint": "变更仅对新建或重启的 Agent 会话生效,正在运行的 Agent 会话不受影响。","loadFailed": "加载工具列表失败","scopePicker": {"ariaLabel": "切换内置工具设置的作用域",@@ -3753,7 +3753,7 @@"inlineSecretStoreFailed": "凭证保存失败","targetNotFound": "目标插件已卸载或当前不可用","targetDisabled": "目标插件已被停用",- "targetDisabledInWorkdir": "用户已在当前工作目录停用该插件;不要重试。",+ "targetDisabledInWorkdir": "用户已在当前工作目录停用该插件;不要重试。","targetToolNotFound": "目标插件不再提供该工具"},"createAgent": {@@ -4691,7 +4691,7 @@"editSend": "发送","editRollbackHint": "发送将撤销上一轮对 {{count}} 个文件的改动","forkErrors": {- "unsupportedHistory": "目标位置对应的历史引擎对话已不可用,无法从这里开启新对话",+ "unsupportedHistory": "目标位置对应的历史引擎会话已不可用,无法从这里开启新对话","noPriorAssistant": "请在 AI 回复之后的消息上开启新对话","sourceNeverRan": "原对话尚未运行,无法开启新对话","codexStateUnavailable": "Codex 对话状态不可用,无法开启新对话。{{detail}}",diff --git a/apps/mobile/src/i18n/locales/en/devices.json b/apps/mobile/src/i18n/locales/en/devices.jsonindex 3d75306df1..00f7646993 100644--- a/apps/mobile/src/i18n/locales/en/devices.json+++ b/apps/mobile/src/i18n/locales/en/devices.json@@ -257,7 +257,7 @@"cancelA11y": "Cancel editing automation"},"delete": {- "counting": "Counting the conversations this automation generated...",+ "counting": "Counting the conversations this automation generated…","confirmDeleteBoth": "Delete Task and Conversations","confirmArchive": "Delete Task and Archive Conversations","confirmTaskOnly": "Delete Task Only",diff --git a/apps/mobile/src/i18n/locales/en/interaction.json b/apps/mobile/src/i18n/locales/en/interaction.jsonindex 7f941b2e8e..034154dd25 100644--- a/apps/mobile/src/i18n/locales/en/interaction.json+++ b/apps/mobile/src/i18n/locales/en/interaction.json@@ -49,7 +49,7 @@"submittingHint": "Sending the decision to your computer. Don't submit again.","customAnswerInputAccessibility": "Enter a custom answer","customAnswerPlaceholder": "Enter another answer",- "customAnswerButtonText": "Enter another answer...",+ "customAnswerButtonText": "Enter another answer…","answerInput": "Enter an answer","previous": "Back","skipAccessibility": "Skip question",diff --git a/apps/mobile/src/i18n/locales/en/models.json b/apps/mobile/src/i18n/locales/en/models.jsonindex 9b774ba5eb..325b7cf583 100644--- a/apps/mobile/src/i18n/locales/en/models.json+++ b/apps/mobile/src/i18n/locales/en/models.json@@ -3,7 +3,7 @@"title": "Model","permissionTitle": "Permissions","searchAccessibility": "Search models",- "searchPlaceholder": "Search models...",+ "searchPlaceholder": "Search models…","noResults": "No matching models","emptyDefault": "No models available","loadingDefault": "Loading models…",diff --git a/apps/mobile/src/i18n/locales/en/session.json b/apps/mobile/src/i18n/locales/en/session.jsonindex 44e0cb028f..8cce1d532c 100644--- a/apps/mobile/src/i18n/locales/en/session.json+++ b/apps/mobile/src/i18n/locales/en/session.json@@ -123,7 +123,7 @@"selectProjectNamed": "Select project {{title}}","noProjects": "No projects yet","chooseOtherFolder": "Choose another project folder",- "readingRemoteDir": "Reading remote directory...",+ "readingRemoteDir": "Reading remote directory…","goParentDir": "Go to parent directory","parentDir": "Parent","useCurrentRemoteDir": "Use current remote directory",diff --git a/i18n/GLOSSARY.md b/i18n/GLOSSARY.mdindex 6b6e34a2d2..2bbe783a09 100644--- a/i18n/GLOSSARY.md+++ b/i18n/GLOSSARY.md@@ -105,8 +105,8 @@- **Proxy** — 网络代理,中文保留英文原词(2026-07 裁决:Agent 与 Proxy 都不叫「代理」)。本条只管英文源为 Proxy 的那些——Agent / Subagent 的「代理」误译各自登记在自己条目下。ja / ko 沿用既有音译。- **Quota** — 周期内的使用上限用「配额」(现状已有 3 处这么写)。与 credits 条目一起裁决:「额度」原先同时表示 Balance / Credits / Quota,三个概念在计费与限额提示里互相污染。「额度」的 forbidden 统一登记在 credits 条目下,不在这里重复——一个词只归属一个术语,否则同一处违规会被两个术语各报一次。(2026-07 修正:ko 原声明 쿼터 在全仓零出现,属凭空造词;ja 原声明 クォータ 仅 desktop 用、mobile 用 残量。定为 ja クォータ / ko 할당량——残量 语义偏 Balance 会与 残高 混淆,而 ko 的 사용량 正是 Usage 的标准词,让 Quota 占用它会重演 zh「额度」三义合一的错误。)- **Running** — 状态标签用「运行中」(现状 16:9)。条件禁用是必需的——「进行中」是 In Progress 的正确译法、「执行中」在别处也可能对,无条件禁会大面积误伤。mobile/devices 的自动化面板上「运行中 / 执行中 / 重跑中」三种写法同屏出现。-- **Session** — 面向用户一律叫「对话」——「会话」太生硬难懂(2026-07 裁决)。代码与内部标识仍用 Session,本条只约束 UI 文案。Chat 合并到同一个词,见 chat 条目。落地时把 440 处「会话」+ 22 处「聊天」统一改为「对话」。ja / ko 沿用既有音译,不受本条约束。豁免的 6 处是同形异义的技术 session(登录态、WebSocket 语音连接),与产品对话无关——同类的还有 Linux Computer Use 提示里的「桌面会话」——那是 OS 桌面会话(窗口读取与输入自动化的授权范围)。注意 login.errors 的「绑定会话」指账号绑定态,scheduler 的「绑定对话」才是产品对话,两者同名不同义,靠 key 精确区分。还豁免 archiveWorkerConfirmDesc:归档 Worker 时 orcaTeamService.archiveWorker() 先关掉它的 SDK 运行时 session,再归档存下来的产品对话——一句话里是两个生命周期,统称「对话」会让用户以为聊天记录也被停掉了。还豁免 stopBashTitle:它停后台任务但显式保留底层 session 进程,「对话进程」是个不存在的东西,还会模糊它与相邻的「关闭后台进程」的区别。- - 豁免范围:`desktop:chat.backgroundActivity.stopBashTitle`、`desktop:login.errors.INVALID_BIND_TICKET`、`desktop:login.errors.INVALID_LOGIN_TICKET`、`desktop:newChat.collaboration.archiveWorkerConfirmDesc`、`desktop:settings.computerUse.directControl.permissions.linuxHint`、`mobile/composer:voice.invalidSession`、`mobile/composer:voice.missingConnectionProvider`、`mobile/composer:voice.missingRefinerTargetProvider`、`mobile/composer:voice.sessionExpiredOrForbidden`、`mobile/composer:voice.sessionNotConnected`+- **Session** — 面向用户一律叫「对话」——「会话」太生硬难懂(2026-07 裁决)。代码与内部标识仍用 Session,本条只约束 UI 文案。Chat 合并到同一个词,见 chat 条目。落地时把 440 处「会话」+ 22 处「聊天」统一改为「对话」。ja / ko 沿用既有音译,不受本条约束。豁免的 6 处是同形异义的技术 session(登录态、WebSocket 语音连接),与产品对话无关——同类的还有 Linux Computer Use 提示里的「桌面会话」——那是 OS 桌面会话(窗口读取与输入自动化的授权范围)。注意 login.errors 的「绑定会话」指账号绑定态,scheduler 的「绑定对话」才是产品对话,两者同名不同义,靠 key 精确区分。还豁免 archiveWorkerConfirmDesc:归档 Worker 时 orcaTeamService.archiveWorker() 先关掉它的 SDK 运行时 session,再归档存下来的产品对话——一句话里是两个生命周期,统称「对话」会让用户以为聊天记录也被停掉了。还豁免 stopBashTitle:它停后台任务但显式保留底层 session 进程,「对话进程」是个不存在的东西,还会模糊它与相邻的「关闭后台进程」的区别。另豁免 4 个 toggleHint 与 forkErrors.unsupportedHistory:英文原文明确区分 agent session(Agent 运行实例)与 conversation(产品对话),两者合并成「对话」会把语义说错——开关其实对「同一对话内重启的 Agent 会话」也生效,写成「只对新建对话生效」等于告诉用户要新开对话。unsupportedHistory 失效的是历史引擎 session,产品对话仍在。+ - 豁免范围:`desktop:chat.backgroundActivity.stopBashTitle`、`desktop:chat.userMessage.forkErrors.unsupportedHistory`、`desktop:login.errors.INVALID_BIND_TICKET`、`desktop:login.errors.INVALID_LOGIN_TICKET`、`desktop:newChat.collaboration.archiveWorkerConfirmDesc`、`desktop:settings.builtinTools.toggleHint`、`desktop:settings.computerUse.android.toggleHint`、`desktop:settings.computerUse.browser.toggleHint`、`desktop:settings.computerUse.directControl.permissions.linuxHint`、`desktop:settings.computerUse.directControl.toggleHint`、`mobile/composer:voice.invalidSession`、`mobile/composer:voice.missingConnectionProvider`、`mobile/composer:voice.missingRefinerTargetProvider`、`mobile/composer:voice.sessionExpiredOrForbidden`、`mobile/composer:voice.sessionNotConnected`- **Skill** — 中文用「技能」(现状 32:26 领先),偶尔保留英文 Skill 也允许,故 zh-CN 不设 forbidden——硬性禁用会逼出别扭的中文。ja / ko 则禁用 技能 / 기술:那是与 スキル / 스킬 并存的同义漂移,且只出现在 skillhub 内部(3 / 3 处)。ko 的 기술 是多义词(技术 / 记述 / 技能),两处非 Skill 义已按 key 豁免。SkillHub 作为产品名单独登记在 skillhub 条目。- 豁免范围:`desktop:localDbFatal.details`、`desktop:issueTracker.create.descriptionPlaceholder`- **SkillHub** — 产品名,四语一律保留英文原样(暂定保留,未来若做中文名再改)。注意与 skill 条目区分:侧边栏 tab 现在叫「技能」但实际指 SkillHub,创建面板的「技能」指 Skills——这是既有 bug,两者不是一个东西不该同名,清理存量时需一并处理。diff --git a/i18n/glossary.json b/i18n/glossary.jsonindex 8903ba6896..19cb0d76a2 100644--- a/i18n/glossary.json+++ b/i18n/glossary.json@@ -132,13 +132,18 @@"会话"]},- "note": "面向用户一律叫「对话」——「会话」太生硬难懂(2026-07 裁决)。代码与内部标识仍用 Session,本条只约束 UI 文案。Chat 合并到同一个词,见 chat 条目。落地时把 440 处「会话」+ 22 处「聊天」统一改为「对话」。ja / ko 沿用既有音译,不受本条约束。豁免的 6 处是同形异义的技术 session(登录态、WebSocket 语音连接),与产品对话无关——同类的还有 Linux Computer Use 提示里的「桌面会话」——那是 OS 桌面会话(窗口读取与输入自动化的授权范围)。注意 login.errors 的「绑定会话」指账号绑定态,scheduler 的「绑定对话」才是产品对话,两者同名不同义,靠 key 精确区分。还豁免 archiveWorkerConfirmDesc:归档 Worker 时 orcaTeamService.archiveWorker() 先关掉它的 SDK 运行时 session,再归档存下来的产品对话——一句话里是两个生命周期,统称「对话」会让用户以为聊天记录也被停掉了。还豁免 stopBashTitle:它停后台任务但显式保留底层 session 进程,「对话进程」是个不存在的东西,还会模糊它与相邻的「关闭后台进程」的区别。",+ "note": "面向用户一律叫「对话」——「会话」太生硬难懂(2026-07 裁决)。代码与内部标识仍用 Session,本条只约束 UI 文案。Chat 合并到同一个词,见 chat 条目。落地时把 440 处「会话」+ 22 处「聊天」统一改为「对话」。ja / ko 沿用既有音译,不受本条约束。豁免的 6 处是同形异义的技术 session(登录态、WebSocket 语音连接),与产品对话无关——同类的还有 Linux Computer Use 提示里的「桌面会话」——那是 OS 桌面会话(窗口读取与输入自动化的授权范围)。注意 login.errors 的「绑定会话」指账号绑定态,scheduler 的「绑定对话」才是产品对话,两者同名不同义,靠 key 精确区分。还豁免 archiveWorkerConfirmDesc:归档 Worker 时 orcaTeamService.archiveWorker() 先关掉它的 SDK 运行时 session,再归档存下来的产品对话——一句话里是两个生命周期,统称「对话」会让用户以为聊天记录也被停掉了。还豁免 stopBashTitle:它停后台任务但显式保留底层 session 进程,「对话进程」是个不存在的东西,还会模糊它与相邻的「关闭后台进程」的区别。另豁免 4 个 toggleHint 与 forkErrors.unsupportedHistory:英文原文明确区分 agent session(Agent 运行实例)与 conversation(产品对话),两者合并成「对话」会把语义说错——开关其实对「同一对话内重启的 Agent 会话」也生效,写成「只对新建对话生效」等于告诉用户要新开对话。unsupportedHistory 失效的是历史引擎 session,产品对话仍在。","exempt": ["desktop:chat.backgroundActivity.stopBashTitle",+ "desktop:chat.userMessage.forkErrors.unsupportedHistory","desktop:login.errors.INVALID_BIND_TICKET","desktop:login.errors.INVALID_LOGIN_TICKET","desktop:newChat.collaboration.archiveWorkerConfirmDesc",+ "desktop:settings.builtinTools.toggleHint",+ "desktop:settings.computerUse.android.toggleHint",+ "desktop:settings.computerUse.browser.toggleHint","desktop:settings.computerUse.directControl.permissions.linuxHint",+ "desktop:settings.computerUse.directControl.toggleHint","mobile/composer:voice.invalidSession","mobile/composer:voice.missingConnectionProvider","mobile/composer:voice.missingRefinerTargetProvider",diff --git a/scripts/__tests__/glossary-rules.test.mjs b/scripts/__tests__/glossary-rules.test.mjsindex 661d4e154c..e67640b6da 100644--- a/scripts/__tests__/glossary-rules.test.mjs+++ b/scripts/__tests__/glossary-rules.test.mjs@@ -617,3 +617,20 @@ test('validateAgainstSchema: boolean schema 的 false 必须恒失败', () => {/oneOf/,);});++test('stripNonProse: 邮箱 local part 不能把紧贴在前面的中文正文吃掉', () => {+ // local part 若允许 CJK,会一路吞到上一个空白/标点为止:`返回worker联系[email protected]`+ // 整条被剥成一个空格,里面小写的 worker 违规随之消失+ const stripped = stripNonProse('返回worker联系[email protected]');+ assert.ok(stripped.includes('worker'), `正文被吞了:${JSON.stringify(stripped)}`);+ assert.ok(!stripped.includes('@'));+ // 正常写法仍要剥干净+ assert.ok(!stripNonProse('联系 [email protected] 即可').includes('@'));+});++test('ELLIPSIS_LOCALES 必须含 en', () => {+ // DESIGN.md §11 Voice & Content 明文要求英文也用「…」而非三个半角点。+ // 漏掉 en 等于让门禁替既有违规背书(实测当时 en 侧有 54 处)。+ assert.ok(ELLIPSIS_LOCALES.has('en'));+ for (const l of ['zh-CN', 'ja', 'ko']) assert.ok(ELLIPSIS_LOCALES.has(l), l);+});diff --git a/scripts/shared/glossary-rules.mjs b/scripts/shared/glossary-rules.mjsindex bdd7ba20a1..833422a5ea 100644--- a/scripts/shared/glossary-rules.mjs+++ b/scripts/shared/glossary-rules.mjs@@ -36,10 +36,16 @@ const TOKEN_TAIL = `(?:(?![${CJK_PUNCT}])(?)\\S)+`;const URL_TOKEN = new RegExp(`\\b[a-z][\\w-]*://${TOKEN_TAIL}`, 'gi');/**- * 邮箱片段。收尾规则同 URL——原先的 `\S+@\S+\.\S+` 连全角标点都不截,+ * 邮箱片段。+ *+ * 收尾用 TOKEN_TAIL,理由同 URL——原先的 `\S+@\S+\.\S+` 连全角标点都不截,* 「联系 [email protected],返回worker操作」会被整段剥成「联系 」。+ *+ * local part(@ 前面那段)必须限定在邮箱合法字符里,**不能**用「除空白与全角标点之外的+ * 一切」:那样会把紧贴在地址前面的中文正文一起吃掉——`返回worker联系[email protected]` 整条被剥成+ * 一个空格,里面小写的 worker 违规随之消失。中文文案里地址常与正文无空格相接。*/-const EMAIL_TOKEN = new RegExp(`[^\\s${CJK_PUNCT}]+@${TOKEN_TAIL}`, 'g');+const EMAIL_TOKEN = new RegExp(`[A-Za-z0-9._%+-]+@${TOKEN_TAIL}`, 'g');/*** 文件名片段。@@ -159,9 +165,11 @@ export function makeExemptChecker(list) {* **ja 不适用**——日文 UI 惯例本就用半角冒号,实测半角 124:78 反而是主流,* 套用中文规则会制造 124 处假阳性。ko 同理不适用。* - 省略号:zh-CN 140:44、ja 138:46、ko 138:46,三语一致以「…」为主流 → 全部适用。+ * **en 同样适用**——不是靠现状数据,而是 DESIGN.md §11 Voice & Content 明文规定+ * 英文也用省略号字符「…」而非三个半角点。原先漏掉 en,等于让门禁替既有违规背书。*/export const HALFWIDTH_PUNCT_LOCALES = new Set(['zh-CN']);-export const ELLIPSIS_LOCALES = new Set(['zh-CN', 'ja', 'ko']);+export const ELLIPSIS_LOCALES = new Set(['en', 'zh-CN', 'ja', 'ko']);/*** 中文正文里的半角标点。两种形态: