Skip to content

fix(ui): restore Workboard routing and full-gate contracts - #116342

Merged
steipete merged 3 commits into
mainfrom
fix/ui-e2e-full-gate
Jul 30, 2026
Merged

steipete merged 3 commits into
mainfrom
fix/ui-e2e-full-gate

Conversation

@steipete

@steipete steipete commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #116297

What Problem This Solves

Fixes an issue where users navigating from a deleted Workboard board to the canonical Workboard route could be left with an empty page, while current-main Control UI contracts also left the mandatory UI merge gate red for unrelated pull requests.

Why This Change Was Made

Workboard now uses a private path marker for the router's dynamic startup bridge instead of overloading the public legacy board query. The bridge strips that marker before route resolution, preserves the one-load deep-link contract, and no longer overwrites a redirect that moved browser history while startup was resolving.

The accompanying test repairs align three assertions with current contracts: startup may reconcile the shared agent catalog, the mock request journal is document-local across reloads, and a replayed offline send remains active until terminal gateway evidence arrives.

User Impact

Deleted Workboard board links reliably normalize to the all-boards view instead of leaving the routed content empty. This also restores the Control UI full-gate baseline so unrelated changes can pass mandatory hosted validation.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Jul 30, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. labels Jul 30, 2026
@clawsweeper

clawsweeper Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 30, 2026, 6:28 AM ET / 10:28 UTC.

ClawSweeper review

What this changes

This PR changes the Control UI startup router so Workboard deep links use a private bootstrap marker rather than the public board query, and updates three E2E expectations for current startup, reload, and offline-send behavior.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 3 items remain

Keep this PR open: the routing repair is a plausible, focused fix for the linked current-main regression, but its only after-fix evidence is a mock-gateway browser test run. Add direct browser proof that a deleted board deep link renders the all-boards Workboard view before merge.

Priority: P1
Reviewed head: a523a114a34e42a63ed46603746b358d3b9af654

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is focused and has targeted test evidence, but real visible browser proof remains the merge gate.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The Blacksmith focused browser tests are useful mock-gateway validation, but no direct after-fix browser artifact demonstrates deleted-board normalization and rendered Workboard content. Add a redacted recording or screenshot with the URL and all-boards view; updating the PR body should trigger re-review automatically.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The Blacksmith focused browser tests are useful mock-gateway validation, but no direct after-fix browser artifact demonstrates deleted-board normalization and rendered Workboard content. Add a redacted recording or screenshot with the URL and all-boards view; updating the PR body should trigger re-review automatically.
Evidence reviewed 5 items Focused routing repair: The branch replaces the dynamic Workboard bootstrap use of the public board query with a private path parameter, then removes that parameter before Workboard route resolution so public route semantics remain distinct from router bootstrap state.
Redirect-preservation guard: Startup now restores the original browser location only when history still equals the location captured at startup, preventing a loader-triggered canonical redirect from being overwritten after resolution.
Established linked regression: The linked canonical issue documents a deterministic current-main failure for deleted Workboard-board normalization and identifies the dynamic-deep-link series beginning at commit 5285b28c5e7 as the regression boundary.
Findings None None.
Security None None.

How this fits together

Control UI receives a browser URL, starts the application router, and loads the Workboard route. The Workboard route resolves a board path and may redirect deleted boards to the all-boards view before the page renders.

flowchart LR
  A[Browser Workboard deep link] --> B[Application startup router]
  B --> C[Private dynamic-path marker]
  C --> D[Workboard route resolver]
  D --> E{Board exists?}
  E -->|No| F[Canonical all-boards route]
  E -->|Yes| G[Board Workboard view]
  F --> H[Rendered Control UI]
  G --> H
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The Blacksmith focused browser tests are useful mock-gateway validation, but no direct after-fix browser artifact demonstrates deleted-board normalization and rendered Workboard content. Add a redacted recording or screenshot with the URL and all-boards view; updating the PR body should trigger re-review automatically.
  • Resolve merge risk (P1) - The private route marker changes startup route identity and browser-history reconciliation; without direct after-fix UI evidence, the deleted-board redirect and rendered all-boards state remain unverified outside the mock harness.
  • Complete next step (P2) - The patch has no concrete code defect to automate, but its protected maintainer label and missing direct browser proof require normal maintainer/contributor follow-up before merge.
Agent review details

Security

None.

PR surface

Source +28, Tests -1. Total +27 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 4 43 15 +28
Tests 3 7 8 -1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 50 23 +27

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #116297
Summary: This PR is the explicit candidate fix for the open canonical report covering the deleted-board Workboard routing regression and related Control UI E2E contract failures.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Prove both deep-link outcomes before merge (recommended)
    Capture a redacted browser run showing a deleted board normalizing to all boards and a valid board still loading from a direct URL, including the resulting address and rendered page.
  2. Accept the remaining routing uncertainty
    Land on the focused mock-browser coverage alone, accepting that the visible browser-history and redirect outcome was not independently demonstrated.

Technical review

Best possible solution:

Keep the private bootstrap marker and redirect-preservation approach, then attach redacted browser proof showing a deleted Workboard board URL normalize to /workboard while the all-boards page visibly renders.

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

Yes, from source and the linked regression report: navigating to a deleted Workboard board path exercises the startup bridge and the canonical redirect path. The report supplies focused current-main browser-test coverage, although this review did not execute it.

Is this the best way to solve the issue?

Likely yes: a private startup-only marker avoids overloading the public legacy board query while the history equality guard lets a canonical redirect win. Direct browser proof is still needed to confirm the user-visible result.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8a3f5c862b56.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The patch changes how existing Workboard deep links are represented during startup and reconciled back into browser history.

Label justifications:

  • P1: The linked regression leaves Control UI browser E2E shards red for unrelated PRs and can leave a user on an empty Workboard route after a deleted-board link.
  • merge-risk: 🚨 compatibility: The patch changes how existing Workboard deep links are represented during startup and reconciled back into browser history.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The Blacksmith focused browser tests are useful mock-gateway validation, but no direct after-fix browser artifact demonstrates deleted-board normalization and rendered Workboard content. Add a redacted recording or screenshot with the URL and all-boards view; updating the PR body should trigger re-review automatically.

Evidence

What I checked:

  • Focused routing repair: The branch replaces the dynamic Workboard bootstrap use of the public board query with a private path parameter, then removes that parameter before Workboard route resolution so public route semantics remain distinct from router bootstrap state. (ui/src/app-routes.ts, a523a114a34e)
  • Redirect-preservation guard: Startup now restores the original browser location only when history still equals the location captured at startup, preventing a loader-triggered canonical redirect from being overwritten after resolution. (ui/src/app-routes.ts, a523a114a34e)
  • Established linked regression: The linked canonical issue documents a deterministic current-main failure for deleted Workboard-board normalization and identifies the dynamic-deep-link series beginning at commit 5285b28c5e7 as the regression boundary. (ui/src/pages/workboard/route.ts, 5285b28c5e7)
  • Proof remains mock-only: The PR body reports focused Blacksmith browser tests against the mock gateway, but it does not include a direct after-fix browser recording, screenshot, or live output showing a deleted board URL normalize to and render the all-boards Workboard page.
  • Prior review continuity: The previous completed ClawSweeper review found no patch defect and requested direct deleted-board normalization proof; the latest PR body adds test evidence but not the requested real-behavior artifact. (2c9f091a4a3c)

Likely related people:

  • shakkernerd: The linked regression report attributes the dynamic deep-link series to commit 5285b28c5e7 and explicitly identifies this person as its author, making them the strongest routing-history contact for the affected startup bridge. (role: dynamic-route feature contributor; confidence: medium; commits: 5285b28c5e7, e2ae02a0c41, e7d01b511b4; files: ui/src/app-routes.ts, ui/src/pages/workboard/route.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add redacted browser proof of a deleted board URL resolving to the visible all-boards Workboard page.
  • Also show one valid Workboard deep link still loads normally, to cover the startup-identity compatibility path.

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 (1 earlier review cycle)
  • reviewed 2026-07-30T09:59:29.796Z sha 2c9f091 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jul 30, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The requested direct browser proof and exact-head gate are now complete:

The optional screenshot rank-up move is skipped because this changes routing ownership, not visual styling; the browser assertion proves both the final URL and rendered all-boards surface directly.

@clawsweeper

clawsweeper Bot commented Jul 30, 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: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@steipete
steipete merged commit dbe7140 into main Jul 30, 2026
110 of 112 checks passed
@steipete
steipete deleted the fix/ui-e2e-full-gate branch July 30, 2026 10:40
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
…116342)

* fix(ui): restore full-gate routing contracts

* fix(ui): preserve startup route redirects

* fix(ui): import route location type
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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Control UI e2e regressions on main: workboard deleted-board normalization and duplicate agents.list (bisected to 5285b28c5e7)

1 participant