Skip to content

perf(workboard): paginate card and session board responses - #175349

Merged
steipete merged 13 commits into
mainfrom
dbasync/usagescale
Oct 17, 2026
Merged

steipete merged 13 commits into
mainfrom
dbasync/usagescale

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Large Workboards send the entire card or Sessions board population in each default response, making the interface expensive to load and refresh.

User Impact

Cards and Sessions boards load up to 100 items per response with a visible loaded-count notice and Load more. Board pages and dashboard widgets disclose incomplete counts and filters. Unloaded dependencies/cards are labeled as not loaded. Reordering waits until all cards are loaded; ordinary status moves remain available. CLI listing and session accessories follow pages to preserve their complete-list behavior.

This changes the default RPC list contract to a bounded page with an optional nextCursor. Bundled consumers are migrated together. Clients that need all records must follow the cursor. Explicit internal export/tool listing retains its existing full-list contract.

Why This Change Was Made

Card selection uses a dialect-neutral SQL keyset over position, creation time, and id, hydrating at most 101 records including the lookahead. Existing receipt invalidation owns the first-page cache. Sessions board responses slice the existing authorized projection, so wire size is bounded while projection ownership and authorization remain unchanged.

The old unbounded default response is removed. Live pagination accepts duplicates or skipped items after concurrent movement until Refresh; clients deduplicate loaded rows. A removed Sessions cursor reports an explicit refresh instruction. No fencing, generation handshake, schema change, or second database owner is added.

Evidence

Synthetic 1×/10× comparisons completed without native execution errors. Default responses now contain a bounded first page; clients follow the cursor for the full population. The original source CI and static attribution are complete. A screenshot subsequently exposed a widget pagination layout regression; the narrow repair is pushed as 5b9b2216, with inspected red/green captures and successful Load more. Its CI exposed a test-only cursor property-order mismatch in the mock; the fixture was corrected in 00bfa9f5aa2. Main is integrated at 64581499369. Final CI completed with 48 successful jobs, 23 scope-skipped jobs, and a PostgreSQL infra failure (plus the dependent CI gate); its disposition is recorded below. The three-pair shared-harness series is complete; the detailed results are below.

Metric Base Candidate
Area T1 / T1-compat calls 0 / 0 0 / 0
Warm all-thread statements / requests / MAIN (30 pooled turns) 68 [68–102] / 18 [18–25] / 0 [0–13] 68 [68–105] / 18 [18–25] / 0 [0–13]
1× cards: response rows / bytes; SQL / requests 200 / 83,832; 15 / 3 100 / 42,635; 15 / 3
10× cards: response rows / bytes; SQL / requests 2,000 / 829,237; 15 / 3 100 / 42,639; 15 / 3
1× Sessions: response rows / bytes; SQL / requests 2,000 / 1,122,902; 2 / 2 100 / 57,433; 2 / 2
10× Sessions: response rows / bytes; SQL / requests 20,000 / 11,249,703; 2 / 2 100 / 57,435; 2 / 2

1× contains 2,000 sessions and 200 cards; 10× contains 20,000 sessions and 2,000 cards, including two/twenty 60,000-event sessions. Base ab37bc6c, measured combined candidate 13d2c71c. All listed RPCs execute 0 MAIN statements. At 10× the card query returns 205 native rows / 29,924 value bytes, down from 4,003 / 575,937. Native rows/bytes measure returned data, not scanned rows or physical I/O. The historical 11.25 MB response belongs to the Sessions board.

Candidate continuation pages return 100 disjoint items: cards use 15 SQL / 3 requests; Sessions use 0 / 0. Repeated first pages and unchanged-revision responses use 0 / 0 on both arms. At 1×/10×, card continuation response sizes are 42,750/42,857 bytes and Sessions continuation sizes are 58,235/57,655 bytes.

Observed instrumented wall times (base→candidate ms): cards 22.9→18.8 at 1× and 77.2→22.7 at 10×; Sessions 85.8→80.6 and 545.2→494.2. These are busy-host observations, not controlled latency claims.

Regressions cover bounded/disjoint pages, refreshed data after writes, shared read-only widgets, CLI pagination, and loading more Sessions. Pre-integration CI 39018982066 passed on 13d2c71c7b1d6d5e57ab543dfc2472ac9bd970a3, including both PostgreSQL shards, selected Node/UI tests, production/test types, lint, contracts, Madge and ratchets. The four Workboard browser files passed 62 cases. No update/Doctor/migration/plugin-loading/service-lifecycle or SDK API changes.

Both allowed independent Codex review rounds completed with no actionable P0–P2 finding established in their supplied scope. Later automated P2 findings are disclosed below under the campaign's review limit. Formatting, basic changed-file lint, and whitespace checks pass.

Canonical Knip 6.40.0 production and full-export scans were run on final stacked head 645814993691 and integrated baseline 42e846629a3d. Both outputs match byte-for-byte: 12 production diagnostics (two files, one dependency, nine exports) and eight full-export diagnostics. None is in an authored owner. This is an exact-baseline inherited exception, not a clean Knip run. These final scans supersede the earlier frozen-head 22/12 diagnostic counts.

Final integrated CI 39026534833 passed selected Node/UI tests, all nine UI E2E shards, production/test types, lint, source contracts, Madge, worker/T1/dialect ratchets, and PostgreSQL integrations. PostgreSQL infra failed two cases in src/infra/database-engine/git-backup.postgres.test.ts: a 120-second timeout followed by owner contention. Scheduled main run 39025102777 passed the first case in 119,806 ms, just 194 ms below that budget.

The exact failing file then passed 2/2 cases on both integrated baseline 42e846629a3d and candidate 645814993691 with isolated PostgreSQL 17.11, Node 24.22.0, and the repository conformance wrapper. The first/second case times were 47,739/9,132 ms on baseline and 31,401/7,906 ms on candidate. Those are busy-host diagnostic observations, not a latency claim. The original CI failure remains unreproduced, not fixed or proven inherited; a timeout cascade is plausible but unproven. No timeout was raised, assertion weakened, or CI rerun requested. Landing uses the authorized relaxed policy for an investigated failure without a demonstrated product regression, and the PostgreSQL backup follow-up is recorded.

The Sessions-board wire response is bounded, but constructing its authorized projection still visits the population. This PR does not claim page-proportional projection cost for Sessions boards.

LOC against the usage commit: production +412/−54 (net +358), tests +264/−2 (net +262), docs +51/−16 (net +35). New UI code provides paging controls and explicit incomplete-data states.

Review follow-ups

Two P2 follow-ups from the automated review remain under this campaign's two-round review limit:

  • A refresh that rebuilds more than one card page can repeat a card if another client moves it across the cursor between reads. Deduplicate refresh-page accumulation by ID, as the Load more path already does. A stable Refresh recovers; no server card is duplicated or lost.
  • Dispatch currently reloads the first 100 cards and preserves nextCursor, so later loaded cards and their selection leave the visible window. Load more restores the cards. Follow-up: route post-dispatch reconciliation through the existing held-window refresh loader.

Neither changes persisted card data. These visible paging limitations are disclosed rather than adding a consistency generation or cross-request handshake.

Visual proof

Synthetic 105-item boards, before and after. Cards and Sessions now show 100 loaded and an explicit Load more control. The widget keeps its cards visible below a compact pagination notice; Load more reaches all 105 cards and removes the control. Full frames were inspected for synthetic-only content. Historical fixture timestamps are cosmetic.

Surface Before After
Cards board Cards before: all 105 returned Cards after: 100 loaded with Load more
Sessions board Sessions before: 53 working and 52 done Sessions after: 100 of 105 loaded
Dashboard widget Widget before: 105 cards Widget after: visible cards and Load more

The pagination notice initially inherited a full-height empty-state style and hid the cards. The repair adds a pagination-specific sizing class, retaining existing loading/error-state sizing. The corrected screenshot mock separately fixes an invalid repeated cursor in the session accessory; that was a fixture issue. Plugin-only build, 23 widget runtime cases, changed-file lint/format and whitespace checks pass. The existing desktop/mobile layout E2E now exercises paging and checks the first card remains inside the widget; it passed on integrated head 64581499 in CI job 117378995958.

Relative to the frozen measured candidate, the later production repair changes only the widget renderer and its CSS; SQL-owner files remain unchanged. Main integration preserved all authored production files byte-for-byte; its only conflict was in the Usage parent’s moved I/O-test helper. Frozen base/candidate measurements remain differential evidence rather than exact integrated-head workload measurements. All three alternating pairs are complete; causal warm results remain unchanged, as detailed below. All six embedded image sources were verified in GitHub’s server-rendered HTML, retrieved successfully, and matched the inspected synthetic captures exactly.

Completed three-pair turn measurement

The shared-v3 sequence M1,C1,M2,C2,M3,C3 completed on frozen base ab37bc6c and candidate 13d2c71c; all six workloads passed with zero native SQL errors. These remain differential measurements for the original authored change, not exact integrated-head workload measurements.

Metric (median [min–max]) Base Candidate
Warm all-thread SQL, 30 pooled turns 68 [68–102] 68 [68–105]
Warm requests, 30 pooled turns 18 [18–25] 18 [18–25]
Warm MAIN statements 0 [0–13] 0 [0–13]
Warm causal SQL / requests / MAIN 62 [62–63] / 17 [17–18] / 0 62 [62–63] / 17 [17–18] / 0
Whole-workload SQL 3,606 [3,580–3,606] 3,572 [3,567–3,600]
Whole-workload requests 917 [916–921] 919 [918–920]
Whole-workload MAIN 148 [148–149] 149 [148–149]
Usage-owner SQL / requests / MAIN 71 [68–74] / 14 [14–15] / 0 63 [63–65] / 14 [14–14] / 0

The alternative median of three raw run medians is 68→68.5 SQL, 18→18 requests, 0→0 MAIN; causal run medians remain exactly 62/17/0. Touched-source warm SQL and requests are zero in every arm. Across the full workload, touched-source SQL is [28,28,25]→[20,20,22], with five requests in every arm. The raw background variation is disclosed; no warm-path or whole-workload request-saving claim is made. The standard workload does not exercise Workboard; its direct RPC evidence is above. Shared warm row-facts stay 1 SQL/1 request, and the other four tracked read families stay zero.

@clawsweeper

clawsweeper Bot commented Oct 17, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T10:55:52.504074Z 6458149 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui plugin: workboard size: L labels Oct 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 55ceefdbd8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if (runtime.loadPromise !== loadPromise) {
return false;
}
normalized.cards.push(...page.cards);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Deduplicate pages while rebuilding the held window

When a refresh rebuilds a window larger than 100 cards, another client can move a card from the first page to a position after that page's cursor before the continuation request. The card then appears in both responses, and this branch appends it without the ID-based deduplication used by the more path below, producing duplicate cards and inflated counts in keyed UI lists. Deduplicate the accumulated refresh pages by card ID as well.

Useful? React with 👍 / 👎.

const normalized = normalizeCardsPayload(payload);
setWorkboardCards(state, normalized.cards);
state.statuses = normalized.statuses;
state.nextCursor = normalized.nextCursor;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Preserve the loaded card window after dispatch

When a user has loaded more than the first 100 cards and runs Dispatch, the post-dispatch list request returns only the first page; the code replaces state.cards with that page and merely retains its cursor. All previously loaded later cards therefore disappear after every dispatch until the user loads them again, unlike the normal refresh path that restores the held window. Follow continuation pages up to the previously loaded window, or route this reconciliation through the existing refresh loader.

Useful? React with 👍 / 👎.

Keep the existing canonical session-key boundary around the projected inventory query, and cover pending offline repairs through usage discovery. Verify archive overview reads remain transcript-free after refresh descendants settle.
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 17, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Two P2 follow-ups from the automated review remain under this campaign's two-round review limit:

  • A refresh that rebuilds more than one card page can repeat a card if another client moves it across the cursor between reads. Deduplicate refresh-page accumulation by ID, as the Load more path already does. A stable Refresh recovers; no server card is duplicated or lost.
  • Dispatch currently reloads the first 100 cards and preserves nextCursor, so later loaded cards and their selection leave the visible window. Load more restores the cards. Follow-up: route post-dispatch reconciliation through the existing held-window refresh loader.

Neither changes persisted card data. These visible paging limitations are disclosed rather than adding a consistency generation or cross-request handshake.

@clawsweeper

clawsweeper Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR paginates card and Sessions board responses in batches of 100 and adds loading controls to bundled consumers.

Example: Open a Workboard containing 205 cards.

  • Before: The initial response contains all 205 complete cards.
  • After: The initial response contains 100 cards and a cursor; Load more retrieves subsequent pages.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The direction is useful and owner-approved, but two confirmed consumer regressions block correctness and required visual/runtime evidence remains pending.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Large retained boards require expensive complete-population responses whenever their data changes.
Reason: The feature-history owner explicitly chose pagination and its compatibility tradeoff, and existing user reports establish practical value.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep open: bounded Workboard responses address a real performance problem, but two paging regressions remain in this PR.

Priority: P2
Reviewed head: 13d2c71c7b1d6d5e57ab543dfc2472ac9bd970a3

Before merge

  • Deduplicate continuation pages when refreshing the held window (P2) - With more than 100 cards loaded, a refresh fetches multiple live pages. If another client moves a card from the first page beyond its cursor before the continuation read, that card appears again. This push preserves both copies, unlike the deduplicating Load more path, so keyed card lists and loaded counts receive duplicate IDs. Accumulate refresh pages by card ID and use the unique count when restoring the held window. This confirms the existing connector review concern.
  • Preserve the loaded card window after dispatch (P2) - After a user loads 200 cards and selects Start agents, dispatch still requests the default list once and replaces state.cards with its now-bounded 100-card response. Previously loaded later cards disappear, and setWorkboardCards also removes their selections. Retaining nextCursor does not restore that window. Reconcile dispatch through the window-preserving loader or follow continuation pages to the previous unique-card count. This confirms the existing connector review concern.

Findings

  • [P2] Deduplicate continuation pages when refreshing the held window — extensions/workboard/browser/lib/workboard/loading.ts:89-90
  • [P2] Preserve the loaded card window after dispatch — extensions/workboard/browser/lib/workboard/mutations.ts:368-371

Tests

  • Missing end-to-end proof: Supplied evidence does not show the changed board/widget flow through a shipped entry point, inspected before/after screenshots, a stable-release upgrade with existing cards intact, or base-fail/head-pass execution of the added regressions.
Agent review details

How this fits together

The Workboard plugin serves persisted cards and caller-authorized Sessions projections through Gateway RPCs to board pages, dashboard widgets, session accessories, and the CLI.

flowchart TD
  A[Board pages and widgets] --> C[Workboard Gateway RPCs]
  B[CLI and session accessories] --> C
  C --> D[Card store and worker]
  C --> E[Authorized Sessions projection]
  D --> F[Bounded response pages]
  E --> F
  F --> G[Consumer loaded windows]
Loading

Technical review

Best possible solution:

Keep the plugin-owned pagination design and use one deduplicating loaded-window reconciliation path for refresh and dispatch.

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

Source establishes both the unbounded current-main response path and the introduced refresh/dispatch failures; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Bounding selection and transport at the existing plugin owners is appropriate, while duplicated reconciliation logic leaves two consumer regressions.

Full review comments:

  • [P2] Deduplicate continuation pages when refreshing the held window — extensions/workboard/browser/lib/workboard/loading.ts:89-90
    With more than 100 cards loaded, a refresh fetches multiple live pages. If another client moves a card from the first page beyond its cursor before the continuation read, that card appears again. This push preserves both copies, unlike the deduplicating Load more path, so keyed card lists and loaded counts receive duplicate IDs. Accumulate refresh pages by card ID and use the unique count when restoring the held window. This confirms the existing connector review concern.
    Confidence: 0.98
    Late finding: first raised on code an earlier review cycle already covered.
  • [P2] Preserve the loaded card window after dispatch — extensions/workboard/browser/lib/workboard/mutations.ts:368-371
    After a user loads 200 cards and selects Start agents, dispatch still requests the default list once and replaces state.cards with its now-bounded 100-card response. Previously loaded later cards disappear, and setWorkboardCards also removes their selections. Retaining nextCursor does not restore that window. Reconcile dispatch through the window-preserving loader or follow continuation pages to the previous unique-card count. This confirms the existing connector review concern.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Card-list selection, caching, and revision replies changes intended behavior with a stated reason (c28042d: Share complete claim-redacted responses across callers without changing card contents; later revision receipts avoid unchanged downloads.)
  • Session-linked selection and accessory reads keeps the original intent (f125842: Keep chat catalog reads out of unrelated card history while preserving complete session-linked results.)
  • Sessions board projection and refresh controller keeps the original intent (df37101: Share prepared projections while preserving caller-bound authorization and avoiding unchanged responses.)
  • CLI list ownership and complete output keeps the original intent (c4e70bc: Use the running Gateway's store or exclusive offline ownership so CLI results remain current.)
  • Board summaries and browser normalization keeps the original intent (66def08: Use persisted board records for filter identity and preserve empty-board selection.)
  • Card details, dependencies, and dashboard rendering changes intended behavior with a stated reason (0d4a332: Preserve Workboard behavior and host identities while moving browser rendering to Solid.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test --project unit ../extensions/workboard/browser/lib/workboard/index.test.ts
  • pnpm --dir ui test --project unit ../extensions/workboard/browser/widgets/runtime.test.ts ../extensions/workboard/browser/pages/workboard/workboard-page-sessions.test.ts
  • pnpm tsgo:extensions
  • pnpm tsgo:extensions:test
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c28042d adds extensions/workboard/src/store-boards.ts:69 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c28042dade02; files: extensions/workboard/src/store-boards.ts)
  • tzy-17: Raw commit 66def08 adds ui/src/lib/workboard/normalization.ts:101 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 66def08d8329; files: ui/src/lib/workboard/normalization.ts)

PR surface

Source +353, Tests +231, Docs +35. Total +619 across 31 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 24 407 54 +353
Tests 5 231 0 +231
Docs 2 51 16 +35
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 31 689 70 +619

Labels

Label changes:

  • add P2: Useful performance work with localized, recoverable loaded-window regressions.
  • add merge-risk: 🚨 compatibility: The default card-list and Sessions RPC contracts become paginated; existing complete-list clients must follow cursors, an intentional tradeoff explicitly recorded by the feature-history owner.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Useful performance work with localized, recoverable loaded-window regressions.
  • merge-risk: 🚨 compatibility: The default card-list and Sessions RPC contracts become paginated; existing complete-list clients must follow cursors, an intentional tradeoff explicitly recorded by the feature-history owner.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • 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 October 17, 2026, 5:06 AM ET / 09:06 UTC.

Base automatically changed from dbasync/usagescale-usage to main October 17, 2026 11:07
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XL and removed size: L labels Oct 17, 2026
@steipete
steipete merged commit 567cb64 into main Oct 17, 2026
148 of 153 checks passed
@steipete
steipete deleted the dbasync/usagescale branch October 17, 2026 11:41
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
Bound default card and Sessions board responses to 100 items with a nextCursor. Add loaded-count notices and Load more to pages and dashboard widgets, label unloaded dependencies, and migrate CLI listing and session accessories to follow pages. Explicit export/tool full-list behavior remains available.

Use the existing worker and write-receipt owners. Select cards with a dialect-neutral SQL keyset over position, creation time, and id; hydrate at most 101 records including lookahead. Slice the existing authorized Sessions projection. Its construction remains population-wide. No schema, SDK, update, Doctor, migration, plugin-loading or service-lifecycle change; area T1/T1-compat stay zero.

At synthetic 10x scale (20,000 sessions, 2,000 cards), card response output falls from 2,000 items/829,237 bytes to 100/42,639; native output falls from 4,003 rows/575,937 bytes to 205/29,924, with SQL/requests unchanged at 15/3. Sessions response output falls from 20,000 items/11,249,703 bytes to 100/57,435, with unchanged 2/2 SQL/requests. Continuation returns 100 disjoint items; Sessions continuation needs no SQL/request. No controlled latency claim.

All three frozen alternating shared-v3 pairs passed. Pooled warm raw median stays 68 SQL/18 requests/0 MAIN; causal warm stays 62/17/0. The alternative median of run medians is 68 to 68.5 raw SQL, entirely background; authored operations contribute no warm calls. The standard workload does not invoke Workboard. Later widget-only layout changes have exact-head desktop/mobile E2E proof; SQL owners remain unchanged from measured candidate.

Final CI39026534833 passed selected Node/UI tests, all nine UI E2E shards, types, lint, source contracts, Madge, worker/T1/dialect ratchets, and PostgreSQL integrations. PostgreSQL infra timed out in the Git backup test and the following case hit owner contention. Both cases pass on integrated baseline42e84662 and candidate64581499 under isolated PG17.11/Node24.22.0; scheduled main passed the first case only194ms below its120s timeout. This remains an investigated, unreproduced CI failure, not a claimed fix or inherited-main failure. Land under the authorized relaxed policy. Final Knip production/full-export outputs match integrated baseline byte-for-byte (12/eight inherited diagnostics). Two Codex review rounds completed; inspected synthetic before/after proof is embedded in the PR.

Remove the unbounded default response. Concurrent movement can repeat or skip a live page item until Refresh; Load more deduplicates. A removed Sessions cursor gives an explicit refresh instruction. Disclosed follow-ups: multi-page refresh can repeat a moved card, and dispatch resets the visible window to page one until Load more. Neither changes persisted data.

Refs openclaw#175349.
@sercada

sercada commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Agent-written on behalf of sercada (Claude Code), with production measurements from our gateway.

Backport request: could this land in the 2026.10 line (for example 2026.10.10)? Or is it planned only for the first 2026.11 release? Either answer helps us plan.

Why it matters to us. This PR fixes the Control UI freeze we measured on 2026.10.7. The full numbers are in #186096 (comment). In short:

  • workboard.cards.list returned 7.5–7.9 MB per call. That was 92% of all bytes sent to Control UI connections.
  • During working hours, 15 of 15 Control UI disconnects (1006, heartbeat-timeout) came within ~40 s of one of those responses.

Current status. Merged to main on 2026-10-17. It is not in 2026.10.9 (latest) or 2026.10.10-beta.5 (beta): the Workboard docs at both tags still have no after/nextCursor.

Note for a backport. On main, workboard.cards.list now returns at most 100 cards by default. RPC and plugin callers that expect the full list would change behaviour in a patch release. If that is too much for the 2026.10 line, an opt-in variant would still fix the freeze: the server accepts limit/after, the bundled Control UI uses them, and calls without limit keep returning the full list.

Meanwhile we run a downstream workaround: hourly deletion of done cards older than 3 days. It cut the list from 7.7 MB to 2.6 MB, but it is a retention policy on our side, not a fix.

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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. docs Improvements or additions to documentation gateway Gateway runtime plugin: workboard size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants