Skip to content

fix(wizard): keep custom model discovery prompts in Chinese - #174191

Merged
steipete merged 1 commit into
mainfrom
fix/wizard-model-discovery-locales-20261016
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/wizard-model-discovery-locales-20261016

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #173300

What Problem This Solves

The custom-provider wizard displays English for the manual model-ID option and model-discovery error in both Chinese locales, and the locale parity check fails on main.

User Impact

Simplified and Traditional Chinese setup now show translated guidance when choosing manual model entry or when an endpoint's models cannot be discovered. No migration, configuration, or update behavior changes.

Why This Change Was Made

The model-discovery change added two English keys without corresponding entries in the wizard's Chinese catalogs. Add their translations in the existing in-tree owner; Control UI and native translation generators maintain separate catalogs. The runtime fallback and every parity assertion remain unchanged.

The complete change is four added lines across two locale catalogs. The existing parity test is the regression test; no additional test machinery is needed.

Evidence

On current main 9215eace2fb2, pnpm test src/wizard/i18n/index.test.ts --maxWorkers=1 reproduced the failure: 7 passed, 1 failed (Vitest 4.00s; runner 7.01s). Both Chinese catalogs had 1,103 keys versus English's 1,105, missing exactly the two model-discovery strings. The same command after final formatting passed all 8 tests (Vitest 3.50s; runner 5.56s), including parity for both locales. These runs used Node 24 and the repository launcher with one worker.

Core production types and the owning commands/wizard test-type graph passed. Targeted type-aware oxlint, boundary lint, formatting, and diff checks passed. Independent Codex autoreview was clean through P2; the only subsequent change was formatter-only line wrapping. PR CI will supply broad proof.

Fill the missing Simplified and Traditional Chinese catalog entries for
manual model-ID entry and unavailable endpoint discovery. The two keys
were introduced in #173300 without translations, causing the wizard to
fall back to English and breaking the existing locale parity check.

The catalogs are maintained in-tree. Preserve runtime fallback and every
parity assertion. No migration or update behavior changes.

Proof: pnpm test src/wizard/i18n/index.test.ts --maxWorkers=1 reproduced
7 pass / 1 fail before and passes 8/8 after (3.50s Vitest, 5.56s runner).
Core and commands/wizard test types, scoped oxlint, boundary lint,
formatting, and P2 autoreview pass.
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 16, 2026 12:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T12:05:03.417935Z a5567a8 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@steipete
steipete merged commit 0d6cbbf into main Oct 16, 2026
180 of 182 checks passed
@steipete
steipete deleted the fix/wizard-model-discovery-locales-20261016 branch October 16, 2026 12:17
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…penclaw#174191)

Fill the missing Simplified and Traditional Chinese catalog entries for
manual model-ID entry and unavailable endpoint discovery. The two keys
were introduced in openclaw#173300 without translations, causing the wizard to
fall back to English and breaking the existing locale parity check.

The catalogs are maintained in-tree. Preserve runtime fallback and every
parity assertion. No migration or update behavior changes.

Proof: pnpm test src/wizard/i18n/index.test.ts --maxWorkers=1 reproduced
7 pass / 1 fail before and passes 8/8 after (3.50s Vitest, 5.56s runner).
Core and commands/wizard test types, scoped oxlint, boundary lint,
formatting, and P2 autoreview pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant