Repository navigation
fix: keep Connected apps tests passing after translation updates - #207923
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 573ef8e1-331c-4d65-b7df-49bdc53970ae
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis 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”.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete 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: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 28, 2026, 10:21 PM ET / November 29, 2026, 03:21 UTC. |
…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) ...
* 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) ...
…#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
* 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) ...
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 generatedescatalog. Only the fixture key and the test’s locale selection changed; production code and generated translations are untouched.Evidence
extensions/mcp-relay/src/control-ui.test.ts:7(TS2769).3fc89f03passed locale verification but reproduced TS2769. The same catalog with this fixture change passed the extension test typecheck.2f1baedf: both CI type graphs, the 12 tests, formatting, and lint passed against main’s empty catalog as well. The published commit has the same source tree.Contributor: @daniel-lxs
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw