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 after MT refresh regression) - #43434
English TL;DR: A recent machine-translation refresh reintroduced 代理 ("proxy") as the translation for AI agents in 550 zh-CN strings (net vs 2026-11-20 main; the branch was rebuilt after an upstream 919-commit merge + MT refresh wiped the earlier fixes — same fix set, re-applied 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:
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 550 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 (net 550 changed values, 550+/550−), 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.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
The renderer and mobile Chinese locale files update agent-related terminology across interface and automation messages. Existing message keys and interpolation placeholders remain unchanged. The changes do not include runtime logic.
Merge Risk: Minimal · up to cdd3c
This is a locale-only terminology update to Simplified Chinese with no runtime behavior change. The earlier authentication-agent translation issue was fixed. No merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: it re-applies the 智能体 (AI agent) term to zh-CN strings after a machine-translation refresh reintroduced 代理. It is specific and matches the changeset, which only edits …
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.
Description check
The description is detailed and follows the template's main sections: a summary of the change, the reason (reintroduced 代理 mistranslations, linked to #25767 and #43430), a per-category breakdown of wh…
Full details: Title check
Explanation
The title names the main change: it re-applies the 智能体 (AI agent) term to zh-CN strings after a machine-translation refresh reintroduced 代理. It is specific and matches the changeset, which only edits zh.json locale values. The title is long (85 characters) and includes a bracketed reference to a prior PR, but it is still descriptive.
Full details: Description check
Explanation
The description is detailed and follows the template's main sections: a summary of the change, the reason (reintroduced 代理 mistranslations, linked to #25767 and #43430), a per-category breakdown of what was changed and deliberately kept, testing, risk, and screenshots marked N/A with a reason. It does not follow the template's ELI5 section or its Visual Proof, Review, Agent skill upstream boundary, or Checklist sections in the template's layout, and the Linked Issue is a reference ("Refs #43430") rather than a 'Fixes' link. The template says a Refs link is not sufficient for outside contributors, though the author's status is unknown. The Testing checkboxes are not ticked. The description is long and partly in Chinese, which makes parts harder to review. Even so, it is mostly complete and substantive.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: c67d749f-4cb0-459d-8b36-eb03e2b231a8
Commits
Reviewing files that changed from the base of the PR and between 02f4fa7 and cdd3c8e.
Files selected for processing: 2
mobile/src/i18n/locales/zh.json
src/renderer/src/i18n/locales/zh.json
Files skipped from review as they are similar to previous changes: 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.
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: 6c7f3026-288e-417a-a5c1-c436d2d6c1a7
Commits
Reviewing files that changed from the base of the PR and between e39fb3a and 000adb5.
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.
Simplified Chinese names AI agents 智能体 (stablyai#25767; the sibling dashboard
copy is being re-aligned in stablyai#43434), and 编队 reads as a team of agents
where 舰队 reads as a naval fleet.
Simplified Chinese names AI agents 智能体 (stablyai#25767; the sibling dashboard
copy is being re-aligned in stablyai#43434), and 编队 reads as a team of agents
where 舰队 reads as a naval fleet.
Upstream merged 919 commits since the PR base (a private period and a
bulk MT refresh), re-introducing 代理 across the catalogs and wiping the
earlier fixes. Re-applies the stablyai#25767 terminology per item:
- 505 mechanical 代理→智能体 (EN source matches \b(sub)?agents?\b)
- orchestration-worker family unified on 工作智能体 (29 keys incl.
workspaceCleanup rules; main mixed 工作者/工人/工作进程; CSV-preview
and plugin workers keep 工作进程)
- dc708f3eff: EN Close agents was 紧密代理, now 关闭智能体
- 2 untranslated Agent/agent strings localized
Excluded (pre-existing wrong-sense copy, documented in stablyai#43430):
useMacosTccPromptNotice.titleOne/titleMany, TerminalQuickCommandDialog.
ed04233b3e, ActivityPrototypePage.770d458144
Superseded by #47373 — the branch was re-based onto current main (upstream merged 1090 commits incl. a bulk MT refresh that reverted the terminology again; same fix set re-derived and re-verified per item). The old head branch could not be force-updated due to GitHub's workflow-scope push restriction, so a fresh branch/PR was used. Full audit trail: #43430.
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 未触碰。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 550 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 (net 550 changed values, 550+/550−), 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.