Skip to content

fix(workboard): avoid empty session columns before results arrive - #199375

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
fix/defensive-ui-sessions-board-readiness
Nov 15, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
fix/defensive-ui-sessions-board-readiness

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: Workboard’s Sessions boards show zero counts and “No sessions in this column” before the initial read or a changed people filter has returned, including failed reads.

User Impact

User impact: Unknown results stay neutral while column headings, filter choices and real errors remain visible. Confirmed empty results and existing sessions remain available during ordinary refreshes. Navigation recovery, permissions and write behavior are unchanged. No migration or configuration change is required.

Why This Change Was Made

Board metadata can remain available when the selected people view has no accepted session result. The existing controller now records that distinction, and the view uses it for counts, empty messages, accessible labels and its existing loading feedback. It does not add requests or use the optional revision token as a readiness test.

Evidence

Actual compiled Control UI with a supported synthetic Gateway, light theme, 1280×900 viewport. These matching upper-board crops show a failed people-filter read. Before is current main at 8fc58f8; after is this independent fix. Orange marks unsupported empty claims; green marks the retained real error.

Before

Before: failed people read incorrectly labels both session columns empty

After

After: columns stay neutral while the actual read failure remains

  • The browser regression fails on isolated main with five assertions, then passes through initial pending/failure, navigation recovery, changed-filter pending/failure and confirmed emptiness. No move, update or session creation request is sent.
  • The owning regression fails on main and passes with the fix, including accepted empty results during a later pending/failed refresh and wire results without optional revisions.
  • All three selected browser scenarios pass independently in 14.78s, including locale changes with retained board-edit drafts. All 27 focused owner cases pass in 1.36s, preserving paging, scoped filters, retained tile identity, stale-result retirement, dock retry and exact saved-dock reopening. Hosted CI timing is not yet known.
  • Targeted plugin production typecheck, focused lint (zero warnings/errors), formatting and diff checks pass. The new test was shortened without removing assertions to stay within the existing file-length limit.
  • Source/history review traces initial empty-column rendering to feat(workboard): add utility-model categorized Sessions boards #161958 and metadata-retaining people changes to feat(workboard): add a people view filter to Sessions boards #162283. The Gateway’s accepted-result, warning and authorization behavior is unchanged.
  • Self-review/simplification: 15 net production lines add one accepted-result fact to the existing owner; 198 test lines cover the actual route and its distinct retained-data boundary. No new cache, request, retry policy or permission layer.

The PR is ready for maintainer integration. Live-provider operations are not claimed.

Requested and co-authored by @vyctorbrzezowski.

Work sessions

Linked for team reference; these sessions aren’t public.

Maintainer verification of CI recovery

The new browser test could click back before the intermediate route finished mounting. The router correctly retained the original surface while that module loaded, so the second click cancelled the departure and no recovery read occurred. A temporary held-module diagnostic reproduced the CI failure and confirmed the unchanged RPC count.

The final correction adds only three test lines: record the read count, wait for the outgoing surface to become hidden, and wait for the new read after returning. Final result assertions and all production code are unchanged. The focused browser case passed on the exact CI merge tree plus this correction in 16.25 seconds; temporary holds/logging were removed. Final lint, formatting and diff checks passed. This reuses the original visual proof; it is not a new live-provider run. Hosted CI completed; the unrelated failure exception is documented below.

Maintainer CI assessment

Reviewed head e9f2e9e64cd69463ea910ea208402b4b800bf4c2. CI run 43687123011 is not green: checks-ui (2/3) failed in two Goal keyboard cases and one Appearance background case, so the aggregate gate failed. The Workboard browser lane, security checks and PostgreSQL checks passed.

The failing entries never mount the changed Workboard owners. Worker/order logs show the failing modules finish before the Workboard cases start, and the new Workboard browser test is not part of that job. The failing source, setup and runtime inputs are unchanged between the actual tested merge and its base. The scheduled-main baseline passed; this is a scoped causal exclusion, not a claim that the same failures were reproduced on main or fixed here.

Integration uses the authorized unrelated-CI exception with these failures retained in the evidence. Production and final assertions are unchanged by the three-line navigation synchronization correction described above.

Track accepted session results separately from retained board metadata, preserving known results during refresh and genuine error recovery.

Co-authored-by: vyctorbrzezowski <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 15, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR hides session counts and empty-column messages until the selected people view has returned an accepted result.

Example: Select Involving me on Team sessions, then the read fails with People view unavailable.

  • Before: Working and Done display zero counts and No sessions in this column alongside the error.
  • After: Both column headings remain neutral while the actual error stays visible.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-level repair with direct visual proof, distinct regression boundaries, and no actionable findings; hosted CI remains in progress.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after captures exercise the compiled Control UI against a supported synthetic Gateway at 1280×900: a failed people-filter read retains its real error and removes unsupported empty claims; the production patch is unchanged by the navigation-test correction.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Pending or failed session reads falsely tell users that their selected columns contain no sessions.
Reason: The maintainer-authored direction corrects misleading feedback while retaining real errors, confirmed results, and existing operations.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it fixes a current Workboard empty-state bug, and the navigation-test correction preserves the behavior assertions. No actionable findings; exact-head CI remains pending.

Priority: P2
Reviewed head: e9f2e9e64cd69463ea910ea208402b4b800bf4c2

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Workboard browser controller accepts caller-scoped session-board RPC results and projects their readiness, sessions, and errors into the Solid column view.

flowchart TD
  A[People filter selection] --> B[Sessions board controller]
  B --> C[Gateway session board read]
  C --> B
  B --> D[Accepted result and readiness]
  D --> E[Solid column view]
Loading

Technical review

Best possible solution:

Keep accepted-result readiness in the existing controller and consistently gate counts, accessible labels, empty messages, and loading feedback on it.

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

Current-main source conflates absent or cleared session arrays with confirmed emptiness, and the inspected before screenshot demonstrates the failed people-filter case; this read-only review executed no target code.

Is this the best way to solve the issue?

The patch repairs the distinction at its existing owner without adding requests or parallel state ownership, and preserves accepted results through refresh failures.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 676ad663bbcb.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 567cb64 adds extensions/workboard/browser/pages/workboard/sessions-board-controller.ts:147 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 567cb64369dd; files: extensions/workboard/browser/pages/workboard/sessions-board-controller.ts)
  • RoboClaw: Raw commit c9affe5 adds extensions/workboard/browser/pages/workboard/view-sessions-board.tsx:347 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: c9affe5a4a59; files: extensions/workboard/browser/pages/workboard/view-sessions-board.tsx)

PR surface

Source +15, Tests +201. Total +216 across 4 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 2 19 4 +15
Tests 2 201 0 +201
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 220 4 +216

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +19/-4 lines; tests +201/-0 lines The small owner-state change has distinct coverage for retained accepted results and compiled-browser navigation and picker behavior.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: Misleading empty-state feedback affects Sessions-board reads with limited blast radius and no demonstrated data loss or blocked workflow.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-15T02:12:38.611Z sha 90de276 :: needs maintainer review before merge. :: none

Reviewed November 15, 2026, 1:53 AM ET / 06:53 UTC (Revision 2).

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 15, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 15, 2026 06:26
@vyctorbrzezowski

Copy link
Copy Markdown
Member

@clawsweeper re-review

Published the three-line browser-test synchronization fix. Root reviewed the final patch; the focused cold-route reproduction and corrected recovery are documented in the body. Production and visual proof are unchanged.

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026

@vyctorbrzezowski vyctorbrzezowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the full change, accepted-result ownership and visual evidence, and the exact three-line recovery-test correction. The existing result is retained during refresh; missing first results are not presented as empty columns. Focused recovery and published Workboard CI passed. The unrelated Goal/Appearance failures remain failures and are disclosed with source, worker-order and tested-merge evidence in the PR body; this approval does not call that CI green.

@vyctorbrzezowski
vyctorbrzezowski merged commit eae3fa9 into main Nov 15, 2026
130 of 133 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the fix/defensive-ui-sessions-board-readiness branch November 15, 2026 07:35
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
…enclaw#199375)

Distinguish a pending Workboard sessions result from an accepted empty result, retaining known data during refresh. Keep the existing permission and recovery paths. Synchronize the browser recovery test with actual route retirement.

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
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 P2 Normal backlog priority with limited blast radius. plugin: workboard proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. 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