Repository navigation
feat(i18n): localize runtime user-facing copy - #90611
lanzhi-lee wants to merge 2 commits into
Conversation
|
Codex review: needs changes before merge. Reviewed June 25, 2026, 7:46 PM ET / 23:46 UTC. Summary PR surface: Source +421, Tests +102. Total +523 across 35 files. Reproducibility: not applicable. this is a localization feature PR rather than a bug report. The merge blocker is source-proven by comparing the PR head against current-main billing behavior and tests. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Refresh the branch on current main, preserve localized authMode-specific billing behavior, and land runtime locale keys only after gateway display-field compatibility is either confirmed or kept stable at protocol boundaries. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a localization feature PR rather than a bug report. The merge blocker is source-proven by comparing the PR head against current-main billing behavior and tests. Is this the best way to solve the issue? No. Reusing the existing wizard translator is a plausible direction, but the submitted branch is not the best merge shape until it preserves the current authMode billing contract and resolves gateway display-field compatibility. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0da26499dac2. Label changesLabel justifications:
Evidence reviewedPR surface: Source +421, Tests +102. Total +523 across 35 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
20e669b to
73f5ca2
Compare
73f5ca2 to
a6d2846
Compare
|
@clawsweeper re-review Updated the branch after the review:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Summary
Localizes shared runtime/user-facing copy through the existing wizard i18n runtime translator and adds English, Simplified Chinese, and Traditional Chinese locale entries for the new runtime keys.
What changed
runtime.channel,runtime.gateway, andruntime.tuiin the wizard i18n locale maps.runtimeT(...), including rate limits, billing/capacity/overload errors, missing API keys, model login/switch failures, context overflow/compaction notices, fallback backend notices, gateway restart notices, memory flush failures, and LLM socket error formatting.OPENCLAW_LOCALEis unset or unsupported.Boundary note
This PR originally scoped the implementation to core
src/**runtime copy. During review, we found downstream consumers outsidesrcthat rely on static English user-visible runtime failure text as classification signals rather than stable metadata. Specifically, iMessage reflection detection, active-memory query cleanup, and QA-lab failure detection matched English runtime failure strings.That is why the current PR includes narrow
extensions/classifier updates: they preserve existing behavior after core failure copy is localized. The PR does not migrate or rewrite plugin-owned product copy beyond those guards.What this intentionally does not do
/config,/plugins,/session, ACP, TTS, subagents, allowlist, export, diagnostics, and similar command help/status strings still have many command-owned literals.src/wizard/i18n; this follows the branch's existing runtime translator pattern.typevalues, or behavioral branching contracts; user-visible text is translated while routing/classification decisions stay on stable metadata or explicit localized classifier contracts.Real behavior proof
Behavior addressed: Shared runtime and gateway user-visible strings now resolve through locale-aware i18n keys for English, Simplified Chinese, and Traditional Chinese, while localized failure text still preserves existing non-direct suppression and downstream failure classifiers.
Real environment tested: Local Codex worktree on macOS after rebasing this branch onto latest
upstream/main.Exact steps or command run after this patch:
Evidence after fix: The runtime proof command printed English, zh-CN, and zh-TW output from the actual runtime translation and failure-formatting paths. Example output was:
Observed result after fix: Default English output remains equivalent to the previous strings, zh-CN/zh-TW runtime output is localized, and the focused regression tests confirm localized failure strings still participate in silent-reply suppression, iMessage reflection detection, active-memory query cleanup, and QA-lab failure detection.
What was not tested: Full
pnpm check, broad CI, live provider turns, and every command-specific text command surface were not run as part of this focused copy migration.Verification
git diff --check./node_modules/.bin/oxfmt --check extensions/qa-lab/src/reply-failure.ts extensions/qa-lab/src/reply-failure.test.ts extensions/active-memory/index.ts extensions/active-memory/index.test.ts src/auto-reply/reply/agent-runner-execution.ts src/auto-reply/reply/agent-runner-execution.test.ts extensions/imessage/src/monitor/reflection-guard.ts extensions/imessage/src/monitor/reflection-guard.test.tsnode scripts/run-vitest.mjs extensions/qa-lab/src/reply-failure.test.ts extensions/active-memory/index.test.ts src/auto-reply/reply/agent-runner-execution.test.ts extensions/imessage/src/monitor/reflection-guard.test.ts src/wizard/i18n/index.test.ts.agents/skills/autoreview/scripts/autoreview --mode branch --base upstream/main-> clean, no accepted/actionable findings