Repository navigation
fix(workboard): stop showing PR-loading warnings and apply agent filter before paging on Sessions boards - #205114
Conversation
…d by agent before paging
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR repairs background PR-fact loading, applies the Sessions board agent filter before pagination, and moves pagination below the columns. Example: A board has 256 sessions, including writer sessions beyond the first 100.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this useful, maintainer-authored PR open; changing agents during a pending board write can leave the board permanently busy. Reviewed head: Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Workboard plugin reads authorized Gateway session facts, projects them into board columns, and returns paginated results to the Control UI. flowchart LR
A[Control UI filters] --> B[Workboard read RPC]
B --> C[Authorized session facts]
C --> D[Prepared PR owner]
C --> E[Board projection]
E --> F[Pagination]
F --> G[Session columns]
Technical reviewBest possible solution: Keep the existing owners and repairs, while separating agent-filter read invalidation from settlement of an already admitted board write. Do we have a high-confidence way to reproduce the issue? Source establishes the current-main pagination and deferred-retry failures, and the introduced busy-state failure follows directly from changing agents during a pending write; no runtime reproduction was executed. Is this the best way to solve the issue? The patch repairs the existing facts and board owners without introducing a parallel service, but agent-filter invalidation must preserve write settlement. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ba2a62e7f791. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +127, Tests +239, Docs +2. Total +368 across 16 files. Added test files: 1. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 25, 2026, 1:04 AM ET / 06:04 UTC. |
|
Merged via squash.
|
…d by agent before paging (openclaw#205114)
…d by agent before paging (#205114) (cherry picked from commit 192b26a) Companion audit: #207853 is test simplification; #207781 and #207744 add configurable filters beyond the stable pre-pagination fix. #205729 stays separately selected; #207909/#207790/#207787/#207122/#207121 change unrelated board actions, and #207932/#207928/#207839/#207931/#207380/#206929 plus copy work do not change authorization-before-paging. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Opening a Workboard Sessions board with many active sessions shows two stacked full-width notices above the columns: an orange warning that pull-request facts for dozens of sessions are not loaded yet or stale, and a second bar stating how many sessions loaded along with a caveat that the agent filter only applies to loaded sessions. The pull-request notice often never clears because unrelated runtime and run-registry events wipe prepared PR snapshots, sessions deferred by the per-batch PR load budget enter 60 s–15 min failure backoff instead of retrying on the next wave, and the Sessions board service never schedules a wake-up when
retryAtbecomes due. Meanwhile, the agent filter ran only client-side after the server sliced the first 100 sessions, forcing the extra disclaimer above the board.User Impact
scope.agentIds), removing the client-side filter caveat.Showing X of Y sessions+ Load more sessions) renders below the board viewport so columns start immediately under the toolbar.workboard.sessionsBoard.readaccepts an optionalview.agentIdfilter.Why This Change Was Made
All three defects lived at existing owners:
src/gateway/control-ui-session-pr-prepared-read.ts): narrowedsubscribeFactsinvalidation usingsessionChangeScopeAffectsStoredRows(plusconfigand stored-row mutations) so unrelated run, catalog, profile, category, and transcript events stop clearing prepared PR snapshots.src/gateway/session-facts-read.ts,extensions/workboard/src/sessions-board.ts): separated budget-deferred PR loads from genuine failures so deferred sessions retry promptly (2 s wave delay without escalating failure backoff), and made the Sessions board respectsource.retryAtboth in projection expiry and via a bounded wake timer.packages/workboard-contract,extensions/workboard): addedview.agentIdtoworkboard.sessionsBoard.read, scopedinScopeto the intersection of board scope and requested agent, forwardedhost.agents.scopeIdfromsessions-board-controller.ts, restricted PR banners to GitHub rate limiting, and moved the pagination control below the board viewport.Evidence
Visual proof
Scenario: Workboard Sessions board (dark theme, 1280×800 @2x, synthetic fixture with 256 sessions, 53 cold PRs + 1 stale PR, paginated to 100) rendered through the real Control UI + Workboard plugin bundle. Before:
origin/main(af9c697714fb); After: candidate (e64293d8b2e3).Clean comparison
Before (
origin/mainaf9c697714fb)After (
e64293d8b2e3)Annotated comparison
Before (
origin/mainaf9c697714fb)After (
e64293d8b2e3)Automated checks
pnpm test src/gateway/server-plugins.session-facts.test.ts src/gateway/control-ui-session-pr-prepared-read.retention.test.ts extensions/workboard/src/sessions-board.test.ts extensions/workboard/src/gateway.test.ts extensions/workboard/src/gateway.sessions-board-pagination.test.ts extensions/workboard/browser/pages/workboard/sessions-board-controller.test.ts --maxWorkers=1— 6 files, 77 tests passed.pnpm test ui/src/e2e/workboard-sessions-readiness.e2e.test.ts --maxWorkers=1— 1 Playwright E2E test passed.pnpm test extensions/workboard/browser/pages/workboard/workboard-page-sessions.test.ts --maxWorkers=1— 26/27 passed; 1 unrelated pre-existing ICU locale formatting difference on Node 26 (expected 'vor 1min' to be 'vor 1 Min.'in German relative time, also failing identically on base).pnpm tsgo:core && pnpm tsgo:extensions && node scripts/run-tsgo.mjs -p extensions/workboard/browser/tsconfig.json— passed.oxlint,stylelint,oxfmt --check,pnpm ui:i18n:verify,pnpm check:control-ui-controllers, andnode --import ./scripts/tsx.mjs scripts/build-plugin-control-ui.mts extensions/workboard— all passed.pr-simplifypass removed redundant closure allocation insession-facts-read.tsand duplicated session-reset blocks insessions-board-controller.ts.