Skip to content

test(ui): protect lazy file-preview translations and active-language preservation - #150465

Merged
steipete merged 1 commit into
mainfrom
upd/pr-manifest-discovery-availability
Sep 17, 2026
Merged

steipete merged 1 commit into
mainfrom
upd/pr-manifest-discovery-availability

Conversation

@steipete

@steipete steipete commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

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 243bc1514b04555f6fe44a8bc8a4f01ddd506988 is 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

  • Confirmed fix(pr): give materialized wrappers their dependency context #150504 and fix(slack): require an acknowledgement sender for envelope guards #150656 are ancestors of this candidate.
  • pnpm install --frozen-lockfile passed.
  • pnpm check:changed passed 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 --check passed.
  • The original-order wrapper test run hit three unchanged runLockShell cases at 10.229 s, 10.094 s, and 10.233 s, each reporting expected null to be +0 against 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.
  • Committed-branch Codex autoreview (--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_request CI run 35196349026 attached to 243bc1514b04555f6fe44a8bc8a4f01ddd506988. The native scripts/watch-pr-ci.mjs watcher 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.

@clawsweeper

clawsweeper Bot commented Sep 17, 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. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 17, 2026
@steipete
steipete marked this pull request as ready for review September 17, 2026 01:30
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 4:19 AM ET / 08:19 UTC (Revision 8).

ClawSweeper review

What this changes

Adds 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
Reviewed head: 243bc1514b04555f6fe44a8bc8a4f01ddd506988

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, useful regression coverage with successful supplied UI checks and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored patch changes only regression coverage and has no runtime or visible UI change. Its test exercises modal loading and translation fallback; inspected Usage screenshots belong to a related PR and are not proof of this test.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored patch changes only regression coverage and has no runtime or visible UI change. Its test exercises modal loading and translation fallback; inspected Usage screenshots belong to a related PR and are not proof of this test.
Evidence reviewed 7 items Verified introduced scope: The merge-base-to-head diff introduces only the file-preview loading test. The host-verified test merge likewise adds only this test; earlier tooling changes are not part of this patch.
Distinct consumer coverage: The existing plugin-bundle test imports the skill-preview consumer, which independently registers the catalog. The added test imports the modal directly, so it can detect missing modal registration even when the skill-preview path remains healthy. It uses the existing translation-manager fixture and locale restoration helper.
Current main retains the production owner: GitHub's pinned-main source confirms that the modal synchronously registers file-preview English. The separately inspected catalog merges into the shared English namespace. The pinned-main i18n directory does not contain the proposed file-preview loading test.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +32. Total +32 across 1 file.

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

Review metrics

None.

Technical review

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

Labels

Label justifications:

  • P3: This is preventive test coverage with no production or user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored patch changes only regression coverage and has no runtime or visible UI change. Its test exercises modal loading and translation fallback; inspected Usage screenshots belong to a related PR and are not proof of this test.

Evidence

What I checked:

  • Verified introduced scope: The merge-base-to-head diff introduces only the file-preview loading test. The host-verified test merge likewise adds only this test; earlier tooling changes are not part of this patch. (ui/src/i18n/file-preview-loading.test.ts:10, 243bc1514b04)
  • Distinct consumer coverage: The existing plugin-bundle test imports the skill-preview consumer, which independently registers the catalog. The added test imports the modal directly, so it can detect missing modal registration even when the skill-preview path remains healthy. It uses the existing translation-manager fixture and locale restoration helper. (ui/src/i18n/plugin-bundle-loading.test.ts:21, 243bc1514b04)
  • Current main retains the production owner: GitHub's pinned-main source confirms that the modal synchronously registers file-preview English. The separately inspected catalog merges into the shared English namespace. The pinned-main i18n directory does not contain the proposed file-preview loading test. (ui/src/components/file-preview-modal.ts:15, 34f548cb2808)
  • Merged implementation and routing history: The supplied GitHub context identifies perf(ui): load skill browser catalogs lazily #150420 as merged. Raw commit inspection records parent 9b5897c; comparison against that parent shows the catalog and namespace-preserving registration added in this commit. This supports routing to steipete through prior merged work, independently of the current PR. (ui/src/i18n/locales/en-file-preview.ts:34, 68b4251368c1)
  • Release boundary: Neither the lazy file-preview catalog nor this proposed test exists at the supplied latest release tag v2026.9.4. The merged catalog implementation is current-main work; no shipped release containing it was established. (3a9d69db306c)
  • Validation and review continuity: The supplied exact-head checks show all three UI shards and the CI gate succeeding. The previous completed review covers this same head and contains no findings or published rank-up moves. This read-only review did not execute tests; whitespace inspection passed and the checkout remained clean. (ui/src/i18n/file-preview-loading.test.ts:1, 243bc1514b04)

Likely related people:

  • Peter Steinberger: Raw commit 68b4251 adds ui/src/i18n/locales/en-file-preview.ts:34 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 68b4251368c1; files: ui/src/i18n/locales/en-file-preview.ts)

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 (7 earlier review cycles)
  • reviewed 2026-09-17T01:39:36.762Z sha 3bb08b45e371c10c3b9bc55c3ce551cc8b0c74dc :: blocked before merge. :: none
  • reviewed 2026-09-17T02:20:36.724Z sha 4c1bf8e :: blocked before merge. :: none
  • reviewed 2026-09-17T02:38:46.919Z sha cf286285539b9277b23196acc56f57ee79f1664b :: blocked before merge. :: none
  • reviewed 2026-09-17T03:05:50.467Z sha be6baf02f277466c75e4faef543a42c698b82dc1 :: blocked before merge. :: none
  • reviewed 2026-09-17T03:25:11.260Z sha 47200bd :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T07:54:26.256Z sha 243bc15 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T08:08:09.904Z sha 243bc15 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the upd/pr-manifest-discovery-availability branch 2 times, most recently from 063f877 to 4c1bf8e Compare September 17, 2026 02:08
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Sep 17, 2026
@steipete steipete changed the title fix(pr): restore trusted landing worktree provisioning fix(pr): unblock landing provisioning and Control UI startup checks Sep 17, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member

I retrieved the completed log for the failed shard on this head. The failure is in test/scripts/worktree-setup.test.ts, not the newly added provisioning assertion: the isolated fixture omits scripts/lib/bundled-plugin-source-utils.mts, now imported by scripts/lib/static-extension-assets.mts. The cold-plan and execution-boundary cases fail before reaching their intended assertions. #150455 already carries this fixture-input follow-up.

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.

@fuller-stack-dev

Copy link
Copy Markdown
Member

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 cf286285539b9277b23196acc56f57ee79f1664b head; a concurrent source update will stop publication for reconciliation. No duplicate replacement PR.

@fuller-stack-dev

Copy link
Copy Markdown
Member

Reconciliation: #150491 landed as 90b421ae252ceaea5bf5a9f106eab51bf384431b at 02:40:52 UTC and includes both the cold-fixture input and startup-budget repairs needed by #111367. I verified the new main source before editing this branch. No #150465 source change or push was made; the untouched temporary checkout is being retired, and #111367 will incorporate the landed main fix. This PR retains its own preventive coverage and preview-loading scope.

steipete added a commit that referenced this pull request Sep 17, 2026
…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.
@steipete
steipete force-pushed the upd/pr-manifest-discovery-availability branch from cf28628 to be6baf0 Compare September 17, 2026 02:55
@steipete steipete changed the title fix(pr): unblock landing provisioning and Control UI startup checks fix(pr): guard copied worktree closures and restore startup checks Sep 17, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 17, 2026
@steipete
steipete force-pushed the upd/pr-manifest-discovery-availability branch from be6baf0 to 47200bd Compare September 17, 2026 03:14
steipete added a commit that referenced this pull request Sep 17, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…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.
steipete added a commit that referenced this pull request Sep 17, 2026
…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.
Move the unchanged filePreview English namespace to the lazy preview component and retain complete ordered host-side catalogs. Fix the startup gzip regression from #149287 without changing preview behavior or performance budgets.

(cherry picked from commit 0c4b3a0)
@steipete
steipete force-pushed the upd/pr-manifest-discovery-availability branch from 47200bd to 243bc15 Compare September 17, 2026 07:47
@steipete steipete changed the title fix(pr): guard copied worktree closures and restore startup checks improve: cover lazy file preview fallback translations Sep 17, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. and removed P2 Normal backlog priority with limited blast radius. labels Sep 17, 2026
@steipete steipete changed the title improve: cover lazy file preview fallback translations test(ui): protect lazy file-preview translations and active-language preservation Sep 17, 2026
@steipete
steipete merged commit 9020714 into main Sep 17, 2026
91 of 93 checks passed
@steipete
steipete deleted the upd/pr-manifest-discovery-availability branch September 17, 2026 08:31
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…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.
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M 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