Skip to content

test(ui): stabilize Control UI suite routing - #100108

Merged
vincentkoc merged 2 commits into
mainfrom
fix/control-ui-refactor-gates-20260704
Jul 4, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/control-ui-refactor-gates-20260704

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 4, 2026

Copy link
Copy Markdown
Member

Summary

  • keep moved chat-responsive and sessions browser layout tests in both UI Vitest routing configs
  • isolate the chat avatar test from suite-order module mocks
  • assert BTW side-result visible copy independent of markdown-rendering order

Verification

  • corepack pnpm format:check ui/src/pages/chat/chat-avatar.test.ts ui/src/pages/chat/chat-composer.test.ts ui/vitest.config.ts ui/vitest.node.config.ts && cd ui && node ../scripts/run-vitest.mjs run --config vitest.node.config.ts --configLoader runner src/pages/chat/chat-responsive.browser.test.ts src/pages/sessions/view.browser.test.ts && cd .. && corepack pnpm ui:build && corepack pnpm test:ui via Testbox tbx_01kwqq66mn6y5crbtzx3ca92r4, Actions https://github.com/openclaw/openclaw/actions/runs/28722986679
  • OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed via Testbox tbx_01kwqq6bdwhyfyqwst5qh783kr, Actions https://github.com/openclaw/openclaw/actions/runs/28722989000

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Jul 4, 2026
@clawsweeper

clawsweeper Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 4, 2026, 7:34 PM ET / 23:34 UTC.

Summary
This PR updates Control UI Vitest routing for moved browser-layout tests and adjusts two chat tests to avoid order-dependent mocks and markdown-rendering assertions.

PR surface: Source 0, Tests +3. Total +3 across 4 files.

Reproducibility: yes. from source inspection: current main points both UI Vitest routing configs at old src/ui browser-test paths while the files now exist under ui/src/pages. I did not run tests locally because this review is read-only.

Review metrics: 1 noteworthy metric.

  • Vitest routing sync: 2 moved test paths updated across 2 configs. The same node-driven browser layout tests must be routed consistently in the main UI suite and standalone node-only UI config.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P2] Wait for current CI on head f3bc230d7f3fae54f6b68a187813a99a7090b27e to finish before merge.

Risk before merge

  • [P1] Current CI was still running on the latest head at review time; merge should wait for required checks to complete.

Maintainer options:

  1. Decide the mitigation before merge
    Land the narrow routing and test-isolation fix once current CI completes, keeping both UI Vitest configs aligned with the route-owned pages layout.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P2] No repair lane is needed because the current PR head has no actionable review finding; it needs ordinary maintainer and CI completion handling.

Security
Cleared: The diff only changes UI tests and Vitest include paths; it does not touch dependencies, workflows, secrets, package metadata, or runtime security boundaries.

Review details

Best possible solution:

Land the narrow routing and test-isolation fix once current CI completes, keeping both UI Vitest configs aligned with the route-owned pages layout.

Do we have a high-confidence way to reproduce the issue?

Yes from source inspection: current main points both UI Vitest routing configs at old src/ui browser-test paths while the files now exist under ui/src/pages. I did not run tests locally because this review is read-only.

Is this the best way to solve the issue?

Yes. Updating both routing configs and isolating the leaking display mock is the narrow maintainable fix for a test-only stabilization, with no new product or config surface.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4682364fa6f4.

Label changes

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external contributor proof gate does not apply because this is a maintainer-authored test-only PR; validation remains normal CI/Testbox evidence.

Label justifications:

  • P3: This is a low-risk maintainer test-stabilization PR for Control UI routing, not a user-facing regression or release blocker.
  • 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 external contributor proof gate does not apply because this is a maintainer-authored test-only PR; validation remains normal CI/Testbox evidence.
Evidence reviewed

PR surface:

Source 0, Tests +3. Total +3 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 4 4 0
Tests 2 10 7 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 14 11 +3

What I checked:

  • PR diff reviewed: The patch changes only UI tests and Vitest routing: it updates moved browser-layout test paths in both UI Vitest configs, adds a chat-avatar unmock, and relaxes one side-result text assertion around markdown formatting. (f3bc230d7f3f)
  • Current main has stale UI routing paths: Current main still routes node-driven browser layout tests through old src/ui paths for chat-responsive and sessions, while the actual files now live under src/pages. (ui/vitest.config.ts:62, 4682364fa6f4)
  • Node-only config prior finding is addressed: The previous ClawSweeper finding asked to sync the node-only UI Vitest config; the current PR head updates those same two moved browser-layout paths in ui/vitest.node.config.ts. (ui/vitest.node.config.ts:11, f3bc230d7f3f)
  • Shared routing invariant checked: The main UI Vitest config uses nodeDrivenBrowserLayoutTests both to include tests in the unit-node project and exclude them from the browser project, so the path list must match the moved files exactly. (ui/vitest.config.ts:130, 4682364fa6f4)
  • Mock leak context checked: Neighbor chat tests mock lib/agents/display.ts with isolate disabled; the chat-avatar test imports the real display helpers, so the PR's explicit unmock is a focused suite-order guard. (ui/src/pages/chat/components/chat-message.test.ts:63, 4682364fa6f4)
  • Control UI refactor provenance: The moved page test files and most Control UI route restructuring came from merged PR feat: refactor the Control UI architecture #100024, whose merge commit added the new pages test paths while leaving some old routing entries behind. (ui/vitest.config.ts:62, 65e12328aa20)

Likely related people:

  • shakkernerd: Authored and merged the Control UI architecture refactor that moved the relevant tests under ui/src/pages and changed the nearby Vitest routing surface. (role: recent area contributor; confidence: high; commits: 65e12328aa20; files: ui/vitest.config.ts, ui/src/pages/chat/chat-responsive.browser.test.ts, ui/src/pages/sessions/view.browser.test.ts)
  • sunlit-deng: Blame on the old node-driven browser layout entries points to the pre-refactor config baseline carried forward into current main, though the commit itself was not a UI-routing change. (role: historical config contributor; confidence: low; commits: 364494623051; files: ui/vitest.config.ts, ui/vitest.node.config.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.
Review history (2 earlier review cycles)
  • reviewed 2026-07-04T23:10:29.074Z sha 3c8f1c3ef95b9ae3443f8bc0c837f87b4801ae2e :: needs changes before merge. :: [P2] Sync the node-only UI Vitest config
  • reviewed 2026-07-04T23:16:04.650Z sha 3c8f1c3ef95b9ae3443f8bc0c837f87b4801ae2e :: needs changes before merge. :: [P2] Sync the node-only UI Vitest config

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 4, 2026
@vincentkoc
vincentkoc force-pushed the fix/control-ui-refactor-gates-20260704 branch from 2973f34 to 3c8f1c3 Compare July 4, 2026 23:06
@vincentkoc vincentkoc changed the title fix(ui): restore Control UI refactor gates test(ui): stabilize Control UI suite routing Jul 4, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 4, 2026 23:06
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 4, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@vincentkoc
vincentkoc force-pushed the fix/control-ui-refactor-gates-20260704 branch from 6a7dd4e to f3bc230 Compare July 4, 2026 23:28
@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 4, 2026
@vincentkoc
vincentkoc force-pushed the fix/control-ui-refactor-gates-20260704 branch from f3bc230 to 8139cb9 Compare July 4, 2026 23:38
@vincentkoc
vincentkoc merged commit 3d64efb into main Jul 4, 2026
18 checks passed
@vincentkoc
vincentkoc deleted the fix/control-ui-refactor-gates-20260704 branch July 4, 2026 23:38
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 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. size: XS 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.

1 participant