Repository navigation
fix(tests): prevent bootstrap locale from leaking into Workboard - #174065
Merged
Merged
Conversation
The bootstrap preference fixture added in #170649 selects German through the real i18n owner but did not restore its locale or document attributes. The shared UI worker retained document.documentElement.lang=de, so a later Workboard clock test rendered "gerade eben" instead of "just now". Capture the incoming i18n state before fixture setup and restore it with onTestFinished after runtime cleanup. Reuse the existing locale, storage, and document-attribute restoration helper. Keep all bootstrap identity, preference, clock-boundary, focus, and visibility assertions unchanged. No production behavior changes. Current-main proof: Workboard alone passes 2/2; bootstrap followed by Workboard reproduces both hourly failures. The fix passes all four cases with producer-first order explicitly pinned through the native UI runner. The existing restoration helper's absent, empty, and explicit state cases also pass. No CI dispatch, rerun, timeout change, retry, or weaker assertion. Targeted UI-app test typecheck, file lint/format, whitespace checks, and independent P2 review pass.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
steipete
marked this pull request as ready for review
October 16, 2026 09:29
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
steipete
enabled auto-merge (squash)
October 16, 2026 09:37
Contributor
Author
|
Merged via squash auto-merge.
|
vincentkoc
added a commit
that referenced
this pull request
Oct 16, 2026
* commit 'ac03ca0b6d26a7dc55d0d262e40d2549631b1ea7': (25 commits) fix: apply shared plugin model policy to decisions (#156621) perf: shortlist transcript relevance scores before metadata reads (#174058) fix: strip standalone trailing NO_REPLY from replies (#171990) fix(ci): avoid repeated discovery during changed-test planning (#174069) fix(sqlite): preserve transaction outcomes when warnings throw (#157151) fix(ai): native video handoff to chat-completions providers + preflight video cost (#170920) fix(litellm): image generation fails when the backend returns image URLs (#173508) test(memory,gateway,infra,subagents): remove low-value tests (batch d152) (#174034) perf(memory): bound derived worker snapshot and pricing retention (#174067) fix(test): reduce eager imports during test startup (#174056) refactor(codex): share lifecycle preflight fixtures (#174062) test(gateway,matrix,agents,ui): remove low-value tests (batch d150) (#174025) perf(infra): batch usage refresh maintenance (#174050) fix(gateway): revert cold session list worker regression (#174052) refactor(config): consolidate browser meeting configuration (#173947) fix(cron): keep global-session deliveries on the selected agent (#173855) test(compaction): assert structured stale-writer failure (#174064) fix(cli): local terminal chat sends model requests without the configured proxy (#173530) test(ui): restore bootstrap preference locale after each case (#174065) fix: download session files through the development proxy (#173973) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 17, 2026
…aw#174065) The bootstrap preference fixture added in openclaw#170649 selects German through the real i18n owner but did not restore its locale or document attributes. The shared UI worker retained document.documentElement.lang=de, so a later Workboard clock test rendered "gerade eben" instead of "just now". Capture the incoming i18n state before fixture setup and restore it with onTestFinished after runtime cleanup. Reuse the existing locale, storage, and document-attribute restoration helper. Keep all bootstrap identity, preference, clock-boundary, focus, and visibility assertions unchanged. No production behavior changes. Current-main proof: Workboard alone passes 2/2; bootstrap followed by Workboard reproduces both hourly failures. The fix passes all four cases with producer-first order explicitly pinned through the native UI runner. The existing restoration helper's absent, empty, and explicit state cases also pass. No CI dispatch, rerun, timeout change, retry, or weaker assertion. Targeted UI-app test typecheck, file lint/format, whitespace checks, and independent P2 review pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The bootstrap preference fixture selects German through the real i18n owner but leaves its locale and document language behind. In the shared UI worker, subsequent Workboard clock tests render
gerade ebenwhere they expectjust now. Main hourly 38875037669 reproduced both clock failures.User Impact
No user-visible behavior changes. The shared UI test worker no longer carries this fixture’s German locale into later tests.
Why This Change Was Made
Capture the incoming i18n state before each bootstrap fixture installs timers or storage mocks, then restore it with the existing
captureI18nStateForTestinghelper after test cleanup. The helper restores the original locale, exact documentlang/dirattributes, and stored preference.This is test-only. Every bootstrap preference/identity assertion and Workboard clock, focus, and visibility assertion stays unchanged. No product behavior, timeouts, retries, or test selection changes.
Evidence
gerade ebenmismatch.ui-apptest type graph, file lint, formatting, and whitespace checks pass.The leaking fixture was introduced by 79422aa (#170649), after the Workboard clock tests already existed. Its intended authenticated pre-hello preference behavior is preserved. Three authorized direct pushes were rejected by concurrent main updates; no remote main write occurred. The patch stayed byte-identical through those rebases. No CI dispatch or rerun was used.