Repository navigation
test(ui): protect lazy file-preview translations and active-language preservation - #150465
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 4:19 AM ET / 08:19 UTC (Revision 8). ClawSweeper reviewWhat this changesAdds a regression test verifying that file-preview translations load with the component while preserving the active language and shared startup label. Merge readiness✅ Ready for maintainer review Keep open: the test adds useful coverage of the standalone preview component that existing skill-preview coverage does not replace. No actionable defect was found, and the protected maintainer PR is not eligible for automatic closure. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI translation manager combines the selected language with English fallback text. File-preview components register their deferred English catalog when loaded, keeping preview-only text out of the initial catalog. flowchart LR
A[Selected language] --> B[Translation manager]
C[Shared English labels] --> B
D[Preview component loads] --> E[Register preview fallback text]
E --> B
B --> F[Translated preview labels]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +32. Total +32 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain the existing lazy catalog owner and protect both standalone modal loading and skill-preview loading with focused regressions. Do we have a high-confidence way to reproduce the issue? Not applicable to a current defect: this PR protects behavior already implemented on main. Source inspection confirms the tested loading boundary; tests were not executed during this read-only review. Is this the best way to solve the issue? Yes. Importing the standalone modal exercises its real catalog-registration boundary and complements the existing skill-preview test without adding production hooks or another implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 34f548cb2808. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
063f877 to
4c1bf8e
Compare
|
I retrieved the completed log for the failed shard on this head. The failure is in The same omission produces 16 failures in #111367's tooling shard. I also compared #111367 against its current-main base with the same installed UI toolchain: both produce exactly 362,706 startup gzip bytes, identical startup assets, so its performance failure is the same baseline issue this PR repairs. No budget change or duplicated UI implementation is being introduced in #111367. This is a dependency diagnostic for the existing canonical fix; I have not changed this branch or its active writer's checkout. Once the fixture follow-up and this PR land, #111367 can incorporate the verified main fix and rerun its exact-head gates. |
|
Following up on the exact failure above: I am taking the one-line cold-fixture input repair on this existing canonical branch under the standing maintainer fix-PR ownership flow, then carrying its checks/review/landing through for dependent #111367. I will preserve the current UI/provisioning source and contributor commits. The update will be conditional on the current |
|
Reconciliation: #150491 landed as |
…0455) Keep Control UI startup within its existing asset budget by loading Usage-only English with the page. Preserve all labels, shared search copy, translation order, and UI behavior. Protect native PR provisioning through the canonical wrapper inventory: select the real provisioning test when copied source changes and verify its complete eager import closure. Include the newly imported bundled-source helper in the cold-worktree fixture. These changes preserve the reviewed work from #150465 and the original Usage and cold-fixture commits. Validation: exact-head CI 35174399666 passed; 135 integrated tests passed with one existing platform skip; all selected type, lint, i18n, and boundary checks passed; independent P0-P2 review was clean. The integrated startup bundle is 361,237 bytes gzip against the unchanged 362,588-byte limit. The English catalog is byte-identical, and inspected before/after screenshots render in the PR.
cf28628 to
be6baf0
Compare
be6baf0 to
47200bd
Compare
Retain the supervised maintenance fix from #150399 and consolidate the shared eager-import scanner, cold fixture, and duplicate-inventory guard from #150465. Keep inline type dependency proof tied to real Node execution. Source contributions: 3d1929b27385d8f86f09ce639395d67758c955b6 and be6baf02f277466c75e4faef543a42c698b82dc1.
…nclaw#150455) Keep Control UI startup within its existing asset budget by loading Usage-only English with the page. Preserve all labels, shared search copy, translation order, and UI behavior. Protect native PR provisioning through the canonical wrapper inventory: select the real provisioning test when copied source changes and verify its complete eager import closure. Include the newly imported bundled-source helper in the cold-worktree fixture. These changes preserve the reviewed work from openclaw#150465 and the original Usage and cold-fixture commits. Validation: exact-head CI 35174399666 passed; 135 integrated tests passed with one existing platform skip; all selected type, lint, i18n, and boundary checks passed; independent P0-P2 review was clean. The integrated startup bundle is 361,237 bytes gzip against the unchanged 362,588-byte limit. The English catalog is byte-identical, and inspected before/after screenshots render in the PR.
…150399) Retain the supervised maintenance fix from #150399 and consolidate the shared eager-import scanner, cold fixture, and duplicate-inventory guard from #150465. Keep inline type dependency proof tied to real Node execution. Source contributions: 3d1929b27385d8f86f09ce639395d67758c955b6 and be6baf02f277466c75e4faef543a42c698b82dc1.
47200bd to
243bc15
Compare
|
Merged via squash.
|
…penclaw#150399) Retain the supervised maintenance fix from openclaw#150399 and consolidate the shared eager-import scanner, cold fixture, and duplicate-inventory guard from openclaw#150465. Keep inline type dependency proof tied to real Node execution. Source contributions: 3d1929b27385d8f86f09ce639395d67758c955b6 and be6baf02f277466c75e4faef543a42c698b82dc1.
…50465) Protect deferred file-preview English fallback registration through a direct modal import. Assert that preview-only copy stays out of startup, becomes available when the modal loads, and preserves the selected German translation and shared Support files label. The canonical runtime owner already landed in openclaw#150420; the wrapper manifest-discovery and dependency-context fixes are on main through openclaw#150399 and openclaw#150504. This change adds only regression coverage: production/tooling 0 lines, tests +32/-0. No runtime or visible UI change. Validation: r3 Codex review scoped-clean; exact-head ClawSweeper review without findings; native CI watcher GREEN for run 35196349026 on 243bc15. The existing PR evidence records the successful changed checks and the separate, unchanged local wrapper timeout cases; the test-only hosted run does not claim to rerun those cases.
What Problem This Solves
Guards file-preview fallback translations so lazy loading cannot leak preview-only copy into startup or replace the active language.
Related: #150312, #149585, #150399, #150504, #150420, #150424.
User Impact
No runtime or visible UI change. This PR now contains only a regression test; the production fixes from this lane have been incorporated into main by sibling PRs.
Why This Change Was Made
Rebased onto
7885f84b1988d5a3b635473c565b00573cbdb99b, which includes the materialized-wrapper dependency-context fix #150504 (7f2637f18d79c0a74e414da629062f65064d1ff4) and red-main #56 fix #150656 (d768ad297d5c).#150399 (
68663e6c648) shared the eager-import scanner, derived the cold-worktree fixture from its entrypoints, and added duplicate-inventory detection. #150504 (7f2637f18d79c0a74e414da629062f65064d1ff4) made the materialized anchor complete its dependency context and extended validation to package exports and copied workspace aliases. The wrapper resolution preserves main's complete inventory and stronger shared import-closure helper, including eager imports, package export subpaths, copied workspace aliases, missing relative sources, and duplicate-entry detection. Main already contains the derived cold-worktree fixture and manifest-based test selection, so the redundant fixture commit drops out.The UI resolution is semantic: #150420 (
68b4251368c) already supplies the lazy preview catalog and registers it directly from both preview consumers, while preserving the eager “Support files” label. This PR retains that owner and behavior. The remaining regression checks that preview-only list and bundle copy appears when the component loads and that the active German translation remains intact. The reviewed #150424 cherry-pick provenance remains in the surviving commit; its runtime changes are now upstream.Review status: The lead's r3 Codex review of
243bc1514b04555f6fe44a8bc8a4f01ddd506988is scoped-clean, with no accepted/actionable findings. The r2 review was invalidated by the earlier semantic rebase. The completed ClawSweeper review on this exact head reports no findings and no before-merge actions; there are no Rank-up moves to apply or skip.Evidence
pnpm install --frozen-lockfilepassed.pnpm check:changedpassed once on the rebased head, including formatting, catalog verification, UI test typechecking, all three unused-export scans, and lint. It selected the UI test lane and did not rerun the wrapper timeout cases.git diff --checkpassed.runLockShellcases at 10.229 s, 10.094 s, and 10.233 s, each reportingexpected null to be +0against the helper's 10,000 ms subprocess budget. The maintainer attributes these to host load above 50; hosted CI is the proof of record. The run was stopped, with no rerun or timeout change.--mode branch --base origin/main --max-priority P1) is scoped-clean.Final delta: production/tooling 0, tests +32/-0, documentation 0; one file,
ui/src/i18n/file-preview-loading.test.ts.Exact-head CI
The
pull_requestCI run 35196349026 attached to243bc1514b04555f6fe44a8bc8a4f01ddd506988. The nativescripts/watch-pr-ci.mjswatcher exited 0 / GREEN, with zero pending checks and sixteen superseded results reconciled in the landing re-verification. GitHub's raw aggregate still showed FAILURE; the native watcher resolved the superseded evidence before returning GREEN. No rerun or additional rebase was performed.The test-only selection included all three UI shards, changed-node boundary checks, and topology. It did not select the wrapper suites or startup-size measurement; this run does not claim a hosted rerun of the three accepted local lock-shell timeouts.