Skip to content

fix: keep Connected apps tests passing after translation updates - #207923

Merged
daniel-lxs merged 2 commits into
mainfrom
openclaw/locale-207514-red-jobs
Nov 29, 2026
Merged

daniel-lxs merged 2 commits into
mainfrom
openclaw/locale-207514-red-jobs

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #207514

What Problem This Solves

Refreshing translations for Connected apps makes its fallback test fail to type-check. The test replaces the entire Spanish catalog with one title. That works against an empty translation file, but not after the refresh supplies a complete Spanish catalog.

User Impact

Locale updates can pass the Connected apps type check without changing what users see. The existing test still checks that changing languages updates the page title, keeps untranslated buttons in English, and does not reload grants.

Why This Change Was Made

The fixture uses a private-use Spanish locale, es-x-fixture, for its single translated title. It no longer overwrites the generated es catalog. Only the fixture key and the test’s locale selection changed; production code and generated translations are untouched.

Evidence

Contributor: @daniel-lxs

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

🦞 Made with OpenClaw

roboclaw-bot and others added 2 commits November 29, 2026 02:31
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 573ef8e1-331c-4d65-b7df-49bdc53970ae
@clawsweeper

clawsweeper Bot commented Nov 29, 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.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 29, 2026 03:00
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR moves the partial Spanish test catalog to the private-use locale es-x-fixture so generated Spanish translations remain intact.

Example: The locale refresh supplies Spanish strings including title “Aplicaciones conectadas” and button “Revocar”.

  • Before: The test overwrites the complete es catalog with one title, conflicting with the generated catalog’s inferred type.
  • After: The test selects es-x-fixture, displays “Apps conectadas”, and retains the English “Revoke” fallback.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A minimal, correct fixture repair supported by source inspection and passing hosted checks, with validation limited to test infrastructure.
Proof confidence 🦐 gold shrimp (3/6) This test-only repair needs no shipped-entry-point demonstration; hosted checks support the change, while the reported refreshed-catalog verification was not independently inspected.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Translation refreshes encounter a test type error even though the production catalog is valid.
Reason: This maintainer-authored repair keeps locale automation compatible with a meaningful existing test and changes no shipped behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a focused fixture repair while preserving the existing behavioral assertions; no actionable defects were found.

Reviewed head: c72e1e7bf783a80092603ef2e3b5afbb0d97e02e

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Connected apps DOM test mounts the plugin with a synthetic host, loads its mocked translation catalog, and observes rendered text and Gateway request counts.

flowchart LR
  A[Test host locale] --> B[Connected apps page]
  C[Generated catalog and fixture] --> D[Plugin message loader]
  D --> E[SDK translator]
  B --> E
  E --> F[Rendered page text]
Loading

Technical review

Best possible solution:

Retain the isolated fixture locale and all existing behavioral assertions without changing production translation handling.

Do we have a high-confidence way to reproduce the issue?

Source inspection confirms that the original mock replaces a complete generated es object with a partial one; the linked refresh job failed, although its detailed log was inaccessible and no code was executed during this review.

Is this the best way to solve the issue?

The two-line change directly removes the generated-catalog collision while preserving the intended translation, fallback, and request-count checks.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 32403124cae2.

Provenance checked

  • Connected apps partial translation fixture keeps the original intent (82fb9ab: The translation change added a partial Spanish fixture to verify locale switching and English fallback.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 82fb9ab adds extensions/mcp-relay/src/control-ui.test.ts:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 82fb9abb3ac0; files: extensions/mcp-relay/src/control-ui.test.ts)
  • Peter Steinberger: Raw commit 15915bf adds extensions/mcp-relay/src/control-ui.test.ts:169 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 15915bf1367a; files: extensions/mcp-relay/src/control-ui.test.ts)

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 2 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 2 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 28, 2026, 10:21 PM ET / November 29, 2026, 03:21 UTC.

@daniel-lxs
daniel-lxs merged commit 48187ae into main Nov 29, 2026
187 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/locale-207514-red-jobs branch November 29, 2026 03:26
vincentkoc added a commit that referenced this pull request Nov 29, 2026
…ions suite

* commit '60e80f1c5fd439f7aa4ce33f54985c7efdc30884': (555 commits)
  refactor: remove the bundled GBrain adapter (#207924)
  improve(ui): show optional run limits beside the automation schedule (#201283)
  test(onboarding): inspect recorded output for credential leaks (#207872)
  perf(exec): reduce host memory sampler allocations (#207927)
  test(mcp-relay): isolate the Connected apps fallback locale (#207923)
  fix(acp): deliver bound channel replies to the pending question (#207035)
  fix(cron): keep required reports from going silent when nothing changes (#207044)
  test(sessions): assert participant queue rollback state (#207891)
  perf(gateway): skip session display preparation for transcript recall (#207916)
  test(agents): verify complete bracketed paste payload (#207733)
  test: stop timing out the cron recovery settlement test on slow runners (#207920)
  fix: show when worktree cleanup stopped or will retry (#207883)
  fix: show approval destinations only when the forwarding mode uses them (#207885)
  fix: keep inherited tools when changing agent settings (#207884)
  feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881)
  fix: stop reporting a child worker as finished when the Gateway loses contact (#207713)
  fix: keep the Activity visibility test stable at midnight (#207847)
  perf(agents): reuse prepared tool catalog executors (#207900)
  fix: show the Gateway command default beside host rules in Devices (#207887)
  fix: verify chat Stop recovery after dashboard pairing (#207888)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit 'ba0a7a5fac3e2f1b642d05502273b98dc75adf4f': (556 commits)
  test(agents): fix provider header filtering coverage (#207732)
  refactor: remove the bundled GBrain adapter (#207924)
  improve(ui): show optional run limits beside the automation schedule (#201283)
  test(onboarding): inspect recorded output for credential leaks (#207872)
  perf(exec): reduce host memory sampler allocations (#207927)
  test(mcp-relay): isolate the Connected apps fallback locale (#207923)
  fix(acp): deliver bound channel replies to the pending question (#207035)
  fix(cron): keep required reports from going silent when nothing changes (#207044)
  test(sessions): assert participant queue rollback state (#207891)
  perf(gateway): skip session display preparation for transcript recall (#207916)
  test(agents): verify complete bracketed paste payload (#207733)
  test: stop timing out the cron recovery settlement test on slow runners (#207920)
  fix: show when worktree cleanup stopped or will retry (#207883)
  fix: show approval destinations only when the forwarding mode uses them (#207885)
  fix: keep inherited tools when changing agent settings (#207884)
  feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881)
  fix: stop reporting a child worker as finished when the Gateway loses contact (#207713)
  fix: keep the Activity visibility test stable at midnight (#207847)
  perf(agents): reuse prepared tool catalog executors (#207900)
  fix: show the Gateway command default beside host rules in Devices (#207887)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…#207923)

Give the incomplete Connected apps fixture its own locale so the Spanish catalog can refresh and the test still exercises English fallback.

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 573ef8e1-331c-4d65-b7df-49bdc53970ae
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit '99b4afc696081eda8aefd8e91250c112f53a8a73': (564 commits)
  test(ios): verify send-at-tap feedback and work grouping (#207913)
  test(agents): reject unsuccessful live replay completions (#207724)
  fix(cron): keep a started cron turn running when its job is edited (#207947)
  improve(ui): put waiting for a free agent under automation timing (#201282)
  chore(ui): refresh control ui locales (#207514)
  fix: distinguish unresolved delivery failures from delivery history (#207897)
  test(doctor): require security check in proxy ordering assertion (#207912)
  fix: keep update rollback tests in sync with shipped workers (#207822)
  test(agents): fix provider header filtering coverage (#207732)
  refactor: remove the bundled GBrain adapter (#207924)
  improve(ui): show optional run limits beside the automation schedule (#201283)
  test(onboarding): inspect recorded output for credential leaks (#207872)
  perf(exec): reduce host memory sampler allocations (#207927)
  test(mcp-relay): isolate the Connected apps fallback locale (#207923)
  fix(acp): deliver bound channel replies to the pending question (#207035)
  fix(cron): keep required reports from going silent when nothing changes (#207044)
  test(sessions): assert participant queue rollback state (#207891)
  perf(gateway): skip session display preparation for transcript recall (#207916)
  test(agents): verify complete bracketed paste payload (#207733)
  test: stop timing out the cron recovery settlement test on slow runners (#207920)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: mcp-relay rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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.

2 participants