Repository navigation
fix(ui): automations model picker renders raw "common.default" i18n key (+3 sibling call-site drifts) - #123238
Conversation
…ead of Default
t("common.default") never existed in the catalog, so the picker's
inherit option rendered the literal key string in every locale
(introduced in #122964 when cron's free-text model input became the
shared model picker). Use the existing quickSettings.model.default key.
Same-sweep i18n call-site drift fixes:
- sessions view Reasoning override now routes through
buildSessionLevelOptions like its Fast/Verbose siblings (adds the
missing sessionsView.stream key; deletes the unlabeled duplicate
withCurrentOption helper)
- activity entry summary collapses the placeholder-only
activity.entrySummary pass-through (two silently dropped params) to
the direct label call; orphan key removed
- group-delete confirm drops its dead {group} param (string has no
placeholder since the reword)
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 11:19 PM ET / August 14, 2026, 03:19 UTC. ClawSweeper reviewWhat this changesThis PR replaces missing or inconsistent Control UI translation call sites so automation and session option labels render localized text rather than raw keys or raw values. Merge readinessKeep this maintainer-labeled PR open for explicit maintainer handling. The supplied patch is a focused Control UI i18n repair with no concrete defect visible in the provided diff, but the required read-only checkout inspection could not run, so the exact head and failed UI shard still need verification. Priority: P2 Review scores
Verification
How this fits togetherControl UI settings pages render automation and session controls using page code plus the shared translation catalog. The resulting localized labels are passed into picker options displayed to web users. flowchart LR
A[Stored automation and session settings] --> B[Control UI page views]
B --> C[Translation helper]
C --> D[Locale catalogs]
D --> E[Localized picker options]
E --> F[Web UI users]
Decision needed
Why: The maintainer label requires explicit handling, and the reviewer environment could not independently inspect the exact source or failed check. Before merge
Agent review detailsSecurityNone. PR surfaceSource -8, Tests 0. Total -8 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Confirm the exact merge result and diagnose the failed UI shard; if it is unrelated or repaired and the focused translation regression holds, land this narrow repair. Do we have a high-confidence way to reproduce the issue? No independent high-confidence reproduction was established: the proposed focused test is described in the PR, but the read-only checkout could not be inspected or run. Is this the best way to solve the issue? Unclear pending exact-head inspection; the supplied diff appears to reuse existing translation keys and option-building helpers rather than introduce parallel behavior. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against c06f993b5cb3. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
…max-lines The file sits at the 1000 counted-line cap on main; extracting named intermediates keeps the new inherit-option regression net-neutral.
…/openclaw/openclaw into codex/autoqa-i18n-callsite-drift
|
Merged via squash.
|
…ey (+3 sibling call-site drifts) (openclaw#123238) * fix(ui): automations model picker shows raw "common.default" key instead of Default t("common.default") never existed in the catalog, so the picker's inherit option rendered the literal key string in every locale (introduced in openclaw#122964 when cron's free-text model input became the shared model picker). Use the existing quickSettings.model.default key. Same-sweep i18n call-site drift fixes: - sessions view Reasoning override now routes through buildSessionLevelOptions like its Fast/Verbose siblings (adds the missing sessionsView.stream key; deletes the unlabeled duplicate withCurrentOption helper) - activity entry summary collapses the placeholder-only activity.entrySummary pass-through (two silently dropped params) to the direct label call; orphan key removed - group-delete confirm drops its dead {group} param (string has no placeholder since the reword) * test(ui): compact multi-line expects in cron view test to stay under max-lines The file sits at the 1000 counted-line cap on main; extracting named intermediates keeps the new inherit-option regression net-neutral.
What Problem This Solves
The Automations model picker shows the literal text
common.defaultas its first option — in every locale, including English.t("common.default")was introduced in #122964 when the cron free-text model input was converted to the shared model picker, but no such key ever existed in the catalog, so the raw key string renders to users. Three sibling call-site/catalog drift bugs from the same class are fixed in the same sweep.Why This Change Was Made
The existing
ui:i18n:verifygate validates catalog shape, ordering, and cross-locale placeholder parity, but nothing cross-checks that keys referenced byt()in code exist — so this class ships silently. Fixes at the call sites:quickSettings.model.default("Default"), same key the model-providers sibling uses for the same concept.buildSessionLevelOptions. Routed through the same helper (adds the missingsessionsView.streamcatalog key, deletes the now-unused unlabeledwithCurrentOptionduplicate).activity.entrySummarywas a placeholder-only pass-through ("{argumentSummary}") that silently dropped itsstatus/toolparams and gave translators a meaningless key; collapsed to the direct label call, orphan key deleted.{group}param — the string lost its placeholder in a reword; param dropped.A follow-up task proposes adding a referenced-keys pass to
control-ui-i18n-verify.tsto block this class at PR time.User Impact
Automations model picker shows "Default" instead of a raw i18n key. Session Reasoning overrides are translated like their siblings. No user-visible change from the activity/group-confirm cleanups.
Evidence
cron/view.test.ts: inherit option must contain "Default" and never "common.default" — fails pre-fix, passes post-fix.ui:i18n:verifyclean. Typechecktsconfig.test.ui.jsonclean.Found by the i18n/a11y lane of the web-UI QA campaign (referenced-keys cross-check over all 5,361 t() call sites).