Repository navigation
fix(qa): restore QA Lab web build - #127310
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 1:46 PM ET / 17:46 UTC. ClawSweeper reviewWhat this changesThe PR adds a QA Lab Vite alias so its browser build can resolve the existing public Plugin SDK duration formatter. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. Current main imports the public time-runtime facade in QA Lab’s web source but lacks its Vite alias; this PR restores that owner-boundary mapping with no correctness finding. The branch is mergeable, but the supplied exact-head status still has one failed and several pending checks, so it is not merge-ready yet. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherQA Lab’s web UI is bundled by Vite, which maps selected public Plugin SDK runtime imports to source facades during local and Docker startup builds. The resolved formatter produces duration text in the generated QA Lab UI bundle. flowchart LR
A[QA Lab web source] --> B[Vite module resolver]
B --> C[Plugin SDK time facade]
C --> D[Duration formatter]
D --> E[QA Lab browser bundle]
Decision needed
Why: The protected maintainer label and incomplete check state require an explicit human merge decision even though the source repair is sound. Before merge
Agent review detailsSecurityNone. PR surfaceSource +4. Total +4 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the explicit public-SDK alias, then land after the exact-head failed check is resolved or shown unrelated and all required checks complete green. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main imports the time-runtime SDK subpath but omits its Vite resolver alias; the PR body also records the resulting production-build error. This review did not execute the build because the checkout is read-only. Is this the best way to solve the issue? Yes. Resolving the already-public SDK facade at the existing browser alias owner preserves plugin boundary and dependency ownership; restoring a plugin-local formatter dependency would duplicate that ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 10a3df4fb699. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
fb00ad6 to
eec8f81
Compare
eec8f81 to
2509996
Compare
|
Land-ready proof for
ClawSweeper's rank-up move (resolve the boundary job and obtain exact-head green CI) is complete. No proof gaps remain for this source-time build repair. |
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where developers starting or building QA Lab would hit a Vite missing-export failure after the web UI's duration formatter moved behind the Plugin SDK time-runtime seam.
pnpm qa:lab:buildfailed on current main with:Because the standard QA Lab Docker startup builds this UI unless explicitly skipped, the missing resolver also blocked the default
qa:lab:uppath when no prebuilt UI was available.Why This Change Was Made
The QA Lab Vite source resolver now maps
openclaw/plugin-sdk/time-runtimethrough the canonical workspace@openclaw/plugin-sdkfacade, matching its existing browser aliases for the error and text-utility SDK runtimes. This keeps extension production code on the public SDK seam and preserves the dependency centralization from #126119 instead of restoring a directpretty-msdependency.No config-string unit test was added: the real
pnpm qa:lab:buildcommand is the authoritative regression boundary and failed before this change for the exact missing alias.User Impact
Developers can build and start QA Lab normally again. The generated UI and runtime behavior are unchanged; this only restores source-time resolution for the existing SDK import.
Evidence
pnpm qa:lab:buildfailed with the missingformatDurationCompactexport shown above.pnpm qa:lab:buildpassed: Vite transformed 46 modules and emitted the complete production bundle in 108 ms.node scripts/check-changed.mjspassed, including the extension-to-core source boundary guard; the exact production build, boundary guard, and all 35 owner tests passed again after rebase.88588345576dac9659006c4118ca51dbd83c584don currentorigin/main.Production LOC: +4/-0; tests: +0/-0. The four lines add the missing canonical resolver capability at the existing Vite alias owner.
AI-assisted implementation and verification; no agent transcript is attached.