Skip to content

fix(workboard): stop showing PR-loading warnings and apply agent filter before paging on Sessions boards - #205114

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
openclaw/remover-avisos-ou-corrigir-na-raiz-aeffc3
Nov 25, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
openclaw/remover-avisos-ou-corrigir-na-raiz-aeffc3

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

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 retryAt becomes 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

  • Background pull-request loading finishes in bounded waves and survives unrelated agent-run, subagent, catalog, profile, and transcript events instead of repeatedly resetting to stale or unloaded states.
  • Routine background PR loading no longer shows an orange warning banner above the columns; warnings stay reserved for actual session-fact outages and GitHub rate limiting.
  • Selecting an agent on a Sessions board filters all authorized sessions on the server before paging (without widening the board's saved scope.agentIds), removing the client-side filter caveat.
  • When more than 100 matching sessions exist, a compact pagination footer (Showing X of Y sessions + Load more sessions) renders below the board viewport so columns start immediately under the toolbar.
  • No migrations, config changes, or breaking RPC changes; workboard.sessionsBoard.read accepts an optional view.agentId filter.

Why This Change Was Made

All three defects lived at existing owners:

  1. Prepared PR snapshot retention (src/gateway/control-ui-session-pr-prepared-read.ts): narrowed subscribeFacts invalidation using sessionChangeScopeAffectsStoredRows (plus config and stored-row mutations) so unrelated run, catalog, profile, category, and transcript events stop clearing prepared PR snapshots.
  2. Deferred wave retries and board wake-up (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 respect source.retryAt both in projection expiry and via a bounded wake timer.
  3. Server-side agent filter and quieter presentation (packages/workboard-contract, extensions/workboard): added view.agentId to workboard.sessionsBoard.read, scoped inScope to the intersection of board scope and requested agent, forwarded host.agents.scopeId from sessions-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/main af9c697714fb)

Before: Sessions board showing orange PR-loading warning banner and top pagination caveat pushing columns down

After (e64293d8b2e3)

After: Sessions board with columns starting directly below the toolbar and compact pagination footer below the board

Annotated comparison

Before (origin/main af9c697714fb)

Before annotated: PR-loading warning banner and top pagination caveat add 154 px above columns

After (e64293d8b2e3)

After annotated: 24 px toolbar-to-columns gap and compact footer below board with server-side agent filtering

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.
  • Targeted oxlint, stylelint, oxfmt --check, pnpm ui:i18n:verify, pnpm check:control-ui-controllers, and node --import ./scripts/tsx.mjs scripts/build-plugin-control-ui.mts extensions/workboard — all passed.
  • pr-simplify pass removed redundant closure allocation in session-facts-read.ts and duplicated session-reset blocks in sessions-board-controller.ts.

@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime plugin: workboard size: M labels Nov 25, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. 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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This 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.

  • Before: Selecting writer filters only the loaded page and can omit matching sessions.
  • After: The server selects authorized writer sessions before returning the first page.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful owner-approved repairs with inspected layout proof, one definite controller regression, and incomplete runtime coverage of the backend changes.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Large Sessions boards omit agent matches outside the loaded page and repeatedly show warnings while PR facts remain unloaded.
Reason: The maintainer-authored direction restores useful filtering and background loading through existing owners, with a small additive RPC extension.

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: e64293d8b2e3a086fd1725d8917d32d5da4e2853

Before merge

  • Preserve write settlement when the agent filter changes (P2) - Start a session move or Board agent operation, then select another agent before its request completes. The agent picker remains enabled, and this branch increments generation through invalidate() while leaving busy true. The pending write's finally block clears busy only when current(id, receipt) succeeds, which is now permanently false for that write. Subsequent reads do not clear busy, so moves, Board agent actions, people filtering, and Load more remain disabled until the view resets. Keep read-result invalidation separate from the pending write's busy settlement, without allowing another write to overlap it.

Findings

  • [P2] Preserve write settlement when the agent filter changes — extensions/workboard/browser/pages/workboard/sessions-board-controller.ts:312-316

Tests

  • Missing end-to-end proof: Provide redacted runtime evidence of cold/deferred PR loads draining through the production owner and agent selection finding matches beyond page one; the supplied regression results also do not show red-on-base controls.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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:

  • [P2] Preserve write settlement when the agent filter changes — extensions/workboard/browser/pages/workboard/sessions-board-controller.ts:312-316
    Start a session move or Board agent operation, then select another agent before its request completes. The agent picker remains enabled, and this branch increments generation through invalidate() while leaving busy true. The pending write's finally block clears busy only when current(id, receipt) succeeds, which is now permanently false for that write. Subsequent reads do not clear busy, so moves, Board agent actions, people filtering, and Load more remain disabled until the view resets. Keep read-result invalidation separate from the pending write's busy settlement, without allowing another write to overlap it.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test extensions/workboard/browser/pages/workboard/sessions-board-controller.test.ts extensions/workboard/browser/pages/workboard/workboard-page-sessions.test.ts --maxWorkers=1
  • node scripts/run-tsgo.mjs -p extensions/workboard/browser/tsconfig.json
  • Show the new busy-settlement regression failing on the reviewed head and passing with the repair.

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 8c02b95 adds extensions/workboard/browser/pages/workboard/sessions-board-controller.ts:31 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8c02b95a1a69; files: extensions/workboard/browser/pages/workboard/sessions-board-controller.ts)
  • RoboClaw: Raw commit eae3fa9 adds extensions/workboard/browser/pages/workboard/sessions-board-controller.ts:35 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: eae3fa9b07fe; files: extensions/workboard/browser/pages/workboard/sessions-board-controller.ts)

PR surface

Source +127, Tests +239, Docs +2. Total +368 across 16 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 9 175 48 +127
Tests 5 244 5 +239
Docs 2 19 17 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 438 70 +368

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
RPC surface 1 optional request parameter view.agentId extends workboard.sessionsBoard.read; existing omitted-filter calls remain valid.

Labels

Label changes:

No label changes.

Label justifications:

  • merge-risk: 🚨 compatibility: The plugin RPC gains optional view.agentId and corresponding validation and contract typing; the maintainer-authored PR explicitly authorizes this additive direction.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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.

Reviewed November 25, 2026, 1:04 AM ET / 06:04 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 25, 2026 23:01
@vyctorbrzezowski
vyctorbrzezowski merged commit 192b26a into main Nov 25, 2026
351 of 356 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/remover-avisos-ou-corrigir-na-raiz-aeffc3 branch November 25, 2026 23:47
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 26, 2026
tideclaw-bot pushed a commit that referenced this pull request Nov 28, 2026
…d by agent before paging (#205114)

(cherry picked from commit 192b26a)
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
…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]>
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 docs Improvements or additions to documentation gateway Gateway runtime impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: workboard rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant