You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(i18n): use 智能体 for zh-CN agent copy (re-apply #25767 terminology) - #47373
English TL;DR: A recent machine-translation refresh reintroduced 代理 ("proxy") as the translation for AI agents in ~540 zh-CN strings (net vs 2026-11-23 main; branch re-applied after upstream's 1090-commit localization churn wiped earlier fixes — same fix set, re-derived and re-verified per item) across the desktop and mobile catalogs, undoing most of #25767. This PR mechanically re-applies the 智能体 terminology on current main. Every changed string's English source matches \b(sub)?agents?\b; proxy URLs (23), user-agent (3), ssh-agent (2), the Linux authentication agent, product names and CLI flags are verified untouched. Refs #43430.
Summary
#25767 (merged 2026-10-06) unified the zh-CN term for AI agents to 智能体. A recent machine-translation refresh reintroduced 代理 across both catalogs for strings that locale-zh-value-overrides.mjs does not pin. This PR re-applies the terminology on current main:
This PR supersedes #43434 (identical fix set; the original head branch hit GitHub's workflow-scope push restriction after an upstream history advance and could not be force-updated without a token-scope grant). The full audit trail lives in issue #43430.
Screenshots
N/A — 纯 locale 字符串值修改,不涉及布局、样式或交互。
Testing
本地已验证(CI 全量门禁未在本地运行,交由 CI):
两个目录均为合法 JSON;键集合与 HEAD 完全一致(desktop 20 213 / mobile 4 035 键,零增删);
Summary. PR #25767 (merged 2026-10-06) standardized the Simplified-Chinese term for AI agents to 智能体, so that agent labels no longer collide with network-proxy strings (代理). A recent MT refresh reintroduced 代理 in ~540 strings (net) that the overrides map does not pin: 521 in the desktop catalog (src/renderer/src/i18n/locales/zh.json) and 14 in the mobile catalog (mobile/src/i18n/locales/zh.json). This PR re-applies the terminology mechanically on current main (one string reverted after review; the orchestration-worker term family and two pre-existing mistranslations unified in a follow-up commit, see Notes): for every key whose English source matches \b(sub)?agents?\b and whose zh value contains 代理, the term is replaced with 智能体 (子代理 → 子智能体 included). Four strings that left "Agent/agent" untranslated mid-sentence are also fixed (explicitChatWindows, agentStatusChanged, the ChecksPanel AI-queue copy, and the mobile notification test copy).
Deliberately untouched (each verified correct): 23 proxy strings (proxy URL, ProxyCommand, reverse proxy, no_proxy), 3 browser user-agent strings (用户代理), 2 ssh-agent strings in SshTargetForm (SSH 代理), the Linux authentication-agent string (身份验证代理, system component), plus product names / commands / filenames kept in English (Claude Agent Teams, Prime Agent, cursor-agent, AGENTS.md, Shared (.agents), the --agent CLI flag). A reverse scan confirms no proxy or technical-agent string reads 智能体.
Linked issue. Refs #43430 — a full en↔zh key-level audit with per-string call-site verification. Five items from that audit (turnWorking, newAgent, agentWorking, and both ssh-agent strings) were already fixed upstream and are not touched here.
Screenshots. N/A — locale value changes only; no layout, styling, or interaction change.
Testing. Verified locally (full CI gates deferred to CI): both files parse as JSON with key sets identical to HEAD (20 213 / 4 035 keys, zero added/removed); re-serializing the HEAD files with the same JSON writer reproduces the original bytes byte-for-byte, so the diff is value-only (locale files only), no formatting noise; post-fix scans show the only remaining 代理 in desktop are the 23 proxy + 3 user-agent + 2 ssh-agent + 1 authentication-agent + 4 known wrong-sense copy bugs filed in the issue, and none in mobile; no untranslated "Agent/agent" remains outside CLI flags and placeholders. Per the CodeRabbit review, all changed keys were re-scanned for the same failure class with no further findings.
Risk. Low — locale value-only change; English fallback behavior and key structure untouched.
AI review report. Correctness: term-level replacement only, gated on the English source per string; the 29 proxy/user-agent/ssh-agent/authentication-agent strings were individually confirmed untouched, and the reverse direction (智能体 on proxy/technical-agent strings) is clean. Cross-platform: JSON-only, identical behavior on all platforms. SSH/remote: copy-only. Provider-neutral: no provider-specific copy touched. Performance: catalog size and load path unchanged. UI quality: terminology now consistent with the #25767 baseline on desktop and mobile, including settings search keywords (searchAgent/searchAgents).
Security audit. Locale strings only; no input handling, command execution, path handling, auth, or IPC logic involved.
Review fix & per-item re-review. Commit c3abf75 reverts LinuxPackageInstallRecoveryCard.53c4b8e148 (system authentication agent for privileged install prompts) back to 身份验证代理 per the CodeRabbit review; all remaining changed keys were re-scanned for the same failure class — no other system-agent senses affected. Commit eb3665d comes from a per-item semantic re-review of all 535 strings: ActivityTitlebarControls.dc708f3eff (EN "Close agents" was mistranslated 紧密, now 关闭智能体), and the orchestration-worker term family (24 keys across OrchestrationPane, native-chat approval/agentMessage, workspaceCleanup rules and the crew count) unified on 工作智能体 — main mixed 工作者/工人/工作进程 for the same dispatched-AI-agent concept; CSV-preview workers and the plugin worker file keep 工作进程 since they are real software workers.
Notes. Four wrong-sense/stale copy bugs (useMacosTccPromptNotice.titleOne/titleMany — EN "file prompt" rendered as “打断了一个代理”; TerminalQuickCommandDialog.ed04233b3e; ActivityPrototypePage.770d458144) are terminology-adjacent but copy-level, so they are excluded here and documented in #43430. Follow-up suggestion: pin this batch in locale-zh-value-overrides.mjs (and consider a CI guard failing when a zh value contains 代理 while its EN source matches \b(sub)?agents?\b outside the proxy/user-agent/ssh-agent/authentication-agent allowlist), otherwise the next MT refresh will regress again.
Upstream merged 1090 commits since the PR base (another bulk MT refresh),
re-introducing 代理 across the catalogs and wiping all earlier fixes.
Re-applies the stablyai#25767 terminology, verified per item against EN sources:
- 521 mechanical 代理→智能体 (EN source matches \b(sub)?agents?\b)
- orchestration-worker family unified on 工作智能体 (~70 keys across
OrchestrationPane, native-chat approval/agentMessage, the new bots.*
surface, workspaceCleanup rules, orchestrationCrew counts;
CSV-preview and plugin workers keep 工作进程 - real software workers)
- dc708f3eff: EN Close agents was 紧密代理, now 关闭智能体
- 工人 search keyword, 编排工作进程 trust-copy wording fixed
- 2 untranslated Agent/agent strings localized
Excluded (pre-existing wrong-sense copy, documented in stablyai#43430):
useMacosTccPromptNotice.titleOne/titleMany,
ActivityPrototypePage.770d458144
The Chinese renderer and mobile locale files update agent-related terms across settings, feature descriptions, session and workspace text, activity labels, notifications, search, and bot interfaces. The changes are limited to translated strings. No application logic changes are reported.
Merge Risk: Low · up to f0f86
Chinese users who have no enabled agents on a workspace host will still see an English empty-state message. This is a small cosmetic gap, and the rest of the terminology update looks safe to merge. Translating this one string completes the update.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: it re-applies the zh-CN term 智能体 for AI agent copy, which the objectives and raw summary confirm. It is specific, with one scope note (re-applied terminology after an …
Description check
The description follows the repository template closely. It has an English TL;DR, a Summary, a Linked Issue (Refs #43430), Screenshots marked N/A with a reason, Testing, Risk (Low), Notes, and an Engl…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: it re-applies the zh-CN term 智能体 for AI agent copy, which the objectives and raw summary confirm. It is specific, with one scope note (re-applied terminology after an upstream refresh). The title is in English and the copy it describes is Chinese, which is acceptable.
Full details: Description check
Explanation
The description follows the repository template closely. It has an English TL;DR, a Summary, a Linked Issue (Refs #43430), Screenshots marked N/A with a reason, Testing, Risk (Low), Notes, and an English version. Several template sections are missing or do not follow the template headings. These include ELI5, Why, a plain 'Fixes #' issue link (the issue is referenced as 'Refs' only, which the template rejects for outside contributors), Performance (the 'None, because' sentence is not completed in the template form), a risk level set in the template format, the Agent skill upstream boundary checkbox, and the Checklist. The description is mostly complete, but the required template sections are not all present.
Resolution
Consider adding the template headings ELI5 and Why. Replace 'Refs #43430' with an actual issue link if one applies, and state the Performance line in full (for example, 'None, because this only changes locale string values'). Also complete the Agent skill upstream boundary checkbox and the Checklist, or mark them N/A.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
⚠️ This pull request shows signs of AI-generated slop (ai_padded_prose). It has been flagged by CodeRabbit slop detection and should be reviewed carefully.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 11c44460-1545-4b46-a939-d70fd0f5d845
Commits
Reviewing files that changed from the base of the PR and between fff597a and f0f8678.
Files selected for processing: 2
mobile/src/i18n/locales/zh.json
src/renderer/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#25767 (merged 2026-10-06) unified the zh-CN term for AI agents to 智能体. A recent machine-translation refresh reintroduced 代理 across both catalogs for strings that
locale-zh-value-overrides.mjsdoes not pin. This PR re-applies the terminology on currentmain:zh.json代理→智能体(EN 源含 agent/subagent)+ 29 处定向修正:orchestration worker 家族统一(24 键,main 混用 工作者/工人/工作进程)、Close agents 误译(紧密→关闭)、2 处未本地化 Agent/agent、1 处技能安装文案;1 处按 CodeRabbit 审查回退(见 Notes)zh.jsonnotificationDisplayTest.localScheduled)+ 2 处新增状态栏文案刻意保留(逐条核实为正确译法,未触碰):
no_proxy等)SshTargetForm私钥回退)Claude Agent Teams、Prime Agent、cursor-agent、AGENTS.md、Shared (.agents)、CLI 旗标--agent反向扫描同时确认:目录中不存在 proxy/技术 agent 被误译为“智能体”的条目。
Linked issue
Refs #43430(en↔zh 全键审计 + 逐条源码调用点核验)。该 issue 中 5 处(
turnWorking、newAgent、agentWorking、2 处 ssh-agent)已被上游先行修复,本 PR 未触碰。Supersession
This PR supersedes #43434 (identical fix set; the original head branch hit GitHub's
workflow-scope push restriction after an upstream history advance and could not be force-updated without a token-scope grant). The full audit trail lives in issue #43430.Screenshots
N/A — 纯 locale 字符串值修改,不涉及布局、样式或交互。
Testing
本地已验证(CI 全量门禁未在本地运行,交由 CI):
代理(23 proxy + 3 user-agent + 2 ssh-agent + 1 authentication-agent + 4 个已知 wrong-sense 文案 bug,见 issue)+ 1 处回退后恢复原译;mobile 清零;无残留未本地化的 “Agent/agent”(--agent旗标、占位符除外);Risk
Low:仅 locale 值变更,缺键回退行为不受影响,键结构零改动。
AI Review Report
代理→智能体,且每条的英文源串经\b(sub)?agents?\b匹配确认;proxy/user-agent/ssh-agent/authentication-agent 共 29 条逐一核对未被触碰,反向(智能体 出现在 proxy/技术 agent 串上)为零searchAgent/searchAgents)Security Audit
纯 locale 字符串修改,不涉及输入处理、命令执行、路径操作、认证或 IPC 逻辑。
Notes
LinuxPackageInstallRecoveryCard.53c4b8e148(系统 authentication agent,特权安装提示)回退为 身份验证代理;并对全部改动键复扫了 authentication/security/system/privileged/service agent 等系统组件措辞及 zh 的“身份验证/认证/特权智能体”类组合,无同类误伤。ActivityTitlebarControls.dc708f3eff:EN “Close agents” 旧译“紧密代理”(Close 被误译为“紧密”),改为 关闭智能体;OrchestrationPane的 nestedWorkerDepth/workerAutoRelease/coordinatorApprovals、native-chat approval 与 approval.record(含新增的<task>/<tool>结构化键)、workspaceCleanup 的 orchestration-worker 规则、orchestrationCrew 计数,共 24 键),统一为 工作智能体(v1.4.256 基线即用此译法);useMacosTccPromptNotice.titleOne/titleMany(EN “file prompt” 被译为“打断了一个代理”)、TerminalQuickCommandDialog.ed04233b3e、ActivityPrototypePage.770d458144属 wrong-sense/过期文案而非术语问题,未纳入本 PR,已在 [Bug]: zh-CN i18n: 29 agent/proxy terminology errors remain after #25767 (desktop 15 + mobile 14) #43430 中单独记录。locale-zh-value-overrides.mjs中为本批字符串补 overrides,避免下一次 MT 刷新再次回退(chore(i18n): use 智能体 for Chinese Agent copy #25767 当时的 overrides 覆盖面已不足以覆盖新增文案)。English version
Summary. PR #25767 (merged 2026-10-06) standardized the Simplified-Chinese term for AI agents to 智能体, so that agent labels no longer collide with network-proxy strings (代理). A recent MT refresh reintroduced 代理 in ~540 strings (net) that the overrides map does not pin: 521 in the desktop catalog (
src/renderer/src/i18n/locales/zh.json) and 14 in the mobile catalog (mobile/src/i18n/locales/zh.json). This PR re-applies the terminology mechanically on currentmain(one string reverted after review; the orchestration-worker term family and two pre-existing mistranslations unified in a follow-up commit, see Notes): for every key whose English source matches\b(sub)?agents?\band whose zh value contains 代理, the term is replaced with 智能体 (子代理 → 子智能体 included). Four strings that left "Agent/agent" untranslated mid-sentence are also fixed (explicitChatWindows,agentStatusChanged, the ChecksPanel AI-queue copy, and the mobile notification test copy).Deliberately untouched (each verified correct): 23 proxy strings (proxy URL, ProxyCommand, reverse proxy,
no_proxy), 3 browser user-agent strings (用户代理), 2 ssh-agent strings inSshTargetForm(SSH 代理), the Linux authentication-agent string (身份验证代理, system component), plus product names / commands / filenames kept in English (Claude Agent Teams,Prime Agent,cursor-agent,AGENTS.md,Shared (.agents), the--agentCLI flag). A reverse scan confirms no proxy or technical-agent string reads 智能体.Linked issue. Refs #43430 — a full en↔zh key-level audit with per-string call-site verification. Five items from that audit (
turnWorking,newAgent,agentWorking, and both ssh-agent strings) were already fixed upstream and are not touched here.Screenshots. N/A — locale value changes only; no layout, styling, or interaction change.
Testing. Verified locally (full CI gates deferred to CI): both files parse as JSON with key sets identical to HEAD (20 213 / 4 035 keys, zero added/removed); re-serializing the HEAD files with the same JSON writer reproduces the original bytes byte-for-byte, so the diff is value-only (locale files only), no formatting noise; post-fix scans show the only remaining 代理 in desktop are the 23 proxy + 3 user-agent + 2 ssh-agent + 1 authentication-agent + 4 known wrong-sense copy bugs filed in the issue, and none in mobile; no untranslated "Agent/agent" remains outside CLI flags and placeholders. Per the CodeRabbit review, all changed keys were re-scanned for the same failure class with no further findings.
Risk. Low — locale value-only change; English fallback behavior and key structure untouched.
AI review report. Correctness: term-level replacement only, gated on the English source per string; the 29 proxy/user-agent/ssh-agent/authentication-agent strings were individually confirmed untouched, and the reverse direction (智能体 on proxy/technical-agent strings) is clean. Cross-platform: JSON-only, identical behavior on all platforms. SSH/remote: copy-only. Provider-neutral: no provider-specific copy touched. Performance: catalog size and load path unchanged. UI quality: terminology now consistent with the #25767 baseline on desktop and mobile, including settings search keywords (
searchAgent/searchAgents).Security audit. Locale strings only; no input handling, command execution, path handling, auth, or IPC logic involved.
Review fix & per-item re-review. Commit c3abf75 reverts
LinuxPackageInstallRecoveryCard.53c4b8e148(system authentication agent for privileged install prompts) back to 身份验证代理 per the CodeRabbit review; all remaining changed keys were re-scanned for the same failure class — no other system-agent senses affected. Commit eb3665d comes from a per-item semantic re-review of all 535 strings:ActivityTitlebarControls.dc708f3eff(EN "Close agents" was mistranslated 紧密, now 关闭智能体), and the orchestration-worker term family (24 keys across OrchestrationPane, native-chat approval/agentMessage, workspaceCleanup rules and the crew count) unified on 工作智能体 — main mixed 工作者/工人/工作进程 for the same dispatched-AI-agent concept; CSV-preview workers and the plugin worker file keep 工作进程 since they are real software workers.Notes. Four wrong-sense/stale copy bugs (
useMacosTccPromptNotice.titleOne/titleMany— EN "file prompt" rendered as “打断了一个代理”;TerminalQuickCommandDialog.ed04233b3e;ActivityPrototypePage.770d458144) are terminology-adjacent but copy-level, so they are excluded here and documented in #43430. Follow-up suggestion: pin this batch inlocale-zh-value-overrides.mjs(and consider a CI guard failing when a zh value contains 代理 while its EN source matches\b(sub)?agents?\boutside the proxy/user-agent/ssh-agent/authentication-agent allowlist), otherwise the next MT refresh will regress again.