Skip to content

fix(ui): automations model picker renders raw "common.default" i18n key (+3 sibling call-site drifts) - #123238

Merged
steipete merged 7 commits into
mainfrom
codex/autoqa-i18n-callsite-drift
Aug 14, 2026
Merged

steipete merged 7 commits into
mainfrom
codex/autoqa-i18n-callsite-drift

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Automations model picker shows the literal text common.default as 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:verify gate validates catalog shape, ordering, and cross-locale placeholder parity, but nothing cross-checks that keys referenced by t() in code exist — so this class ships silently. Fixes at the call sites:

  • cron/view.ts: use the existing quickSettings.model.default ("Default"), same key the model-providers sibling uses for the same concept.
  • sessions/view.ts: the Reasoning override rendered raw values ("on"/"off"/"stream") while its Fast/Verbose siblings two rows up are translated via buildSessionLevelOptions. Routed through the same helper (adds the missing sessionsView.stream catalog key, deletes the now-unused unlabeled withCurrentOption duplicate).
  • activity/view.ts: activity.entrySummary was a placeholder-only pass-through ("{argumentSummary}") that silently dropped its status/tool params and gave translators a meaningless key; collapsed to the direct label call, orphan key deleted.
  • session-organizer-catalog.ts: group-delete confirm passed a dead {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.ts to 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

  • Regression in cron/view.test.ts: inherit option must contain "Default" and never "common.default" — fails pre-fix, passes post-fix.
  • Suites green: sessions/activity/cron pages + all ui components (1640 tests). ui:i18n:verify clean. Typecheck tsconfig.test.ui.json clean.
  • Autoreview (codex/gpt-5.6-sol, high): clean, 0.99.
  • Production LOC: net −3 (+14/−17 total, of which +5 is test).

Found by the i18n/a11y lane of the web-UI QA campaign (referenced-keys cross-check over all 5,361 t() call sites).

…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)
@clawsweeper

clawsweeper Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 13, 2026 15:30
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 13, 2026
@steipete steipete closed this Aug 13, 2026
@steipete steipete reopened this Aug 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 13, 2026
@clawsweeper

clawsweeper Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 11:19 PM ET / August 14, 2026, 03:19 UTC.

ClawSweeper review

What this changes

This 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 readiness

⚠️ Ready for maintainer review - 3 items remain

Keep 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
Reviewed head: 6b6ae83b3ce353bd0905832d4644ae0d6fb0b323
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused supplied diff is plausible, but reviewer-side inspection failed before the exact head and failing UI check could be assessed.
Proof confidence 🌊 off-meta tidepool Not applicable: This is identified as a maintainer-authored PR; its supplied regression and suite claims remain subject to normal exact-head validation.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is identified as a maintainer-authored PR; its supplied regression and suite claims remain subject to normal exact-head validation.
Evidence reviewed 4 items Focused patch surface: The supplied PR patch changes the cron model-picker label from the nonexistent common.default key to quickSettings.model.default and routes session reasoning choices through the existing labeled-option helper.
Related feature history: The supplied related-item metadata identifies merged PR #122964 (merge commit edcf197) as the shared-picker change around which this follow-up arose.
Inspection infrastructure failure: The required read-only repository command produced bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted, so current source, scoped guidance, merge result, history, and failing check logs were not independently inspected.
Findings None None.
Security None None.

How this fits together

Control 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]
Loading

Decision needed

Question Recommendation
After verifying the exact head and the failed UI E2E shard, should this maintainer-owned Control UI i18n repair merge? Validate and land: Inspect the exact merge result and failed shard, then merge if the failure is unrelated or resolved and the focused regression coverage passes.

Why: The maintainer label requires explicit handling, and the reviewer environment could not independently inspect the exact source or failed check.

Before merge

  • Resolve merge risk (P1) - The exact PR head, applicable UI guidance, and the failed UI E2E shard could not be independently inspected because read-only repository commands failed before producing file output.
  • Complete next step (P2) - A maintainer must inspect the exact head and failed UI shard because the reviewer environment could not access repository evidence.
Agent review details

Security

None.

PR surface

Source -8, Tests 0. Total -8 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 6 9 17 -8
Tests 1 21 21 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 30 38 -8

Review metrics

Metric Value Why it matters
Production versus test delta production −3, tests +5 (per PR body) The stated net-negative production change fits a focused regression repair, but direct numstat classification could not be verified.

Stored data model

Persistent data-model change detected: serialized state: ui/src/components/session-organizer-catalog.ts, serialized state: ui/src/pages/sessions/view.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P2: The PR addresses visible Control UI label regressions with limited blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is identified as a maintainer-authored PR; its supplied regression and suite claims remain subject to normal exact-head validation.

Evidence

What I checked:

  • Focused patch surface: The supplied PR patch changes the cron model-picker label from the nonexistent common.default key to quickSettings.model.default and routes session reasoning choices through the existing labeled-option helper. (ui/src/pages/cron/view.ts:1256, 6b6ae83b3ce3)
  • Related feature history: The supplied related-item metadata identifies merged PR improve: one channel picker and one model picker across the Control UI #122964 (merge commit edcf197) as the shared-picker change around which this follow-up arose. (ui/src/pages/cron/view.ts:1256, edcf19748381)
  • Inspection infrastructure failure: The required read-only repository command produced bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted, so current source, scoped guidance, merge result, history, and failing check logs were not independently inspected.
  • Current CI state: The provided PR context reports failures in checks-ui-e2e (7/8) and openclaw/ci-gate; the underlying failure was not available for direct inspection. (6b6ae83b3ce3)

Likely related people:

  • steipete: Provided history attributes the merged shared picker work and this focused follow-up to this contributor. (role: shared picker feature contributor; confidence: medium; commits: edcf19748381, 76a9431ec5d9; files: ui/src/pages/cron/view.ts, ui/src/pages/sessions/view.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Inspect the failed checks-ui-e2e (7/8) result on the exact head and confirm the merged view/catalog behavior.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-08-13T20:10:15.554Z sha 76a9431 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-14T00:30:24.473Z sha 76a9431 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-14T02:20:58.424Z sha 8cd53e0 :: needs maintainer review before merge. :: none

@steipete steipete closed this Aug 13, 2026
@steipete steipete reopened this Aug 13, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 14, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 14, 2026
@steipete
steipete merged commit dc61fe5 into main Aug 14, 2026
137 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the codex/autoqa-i18n-callsite-drift branch August 14, 2026 04:10
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 14, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant