Skip to content

refactor(workboard): group session tiles without rescanning each column - #207380

Merged
vyctorbrzezowski merged 617 commits into
mainfrom
openclaw/loop-ui-r2-workboard-2811
Nov 29, 2026
Merged

vyctorbrzezowski merged 617 commits into
mainfrom
openclaw/loop-ui-r2-workboard-2811

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

What Problem This Solves

When a Sessions board refreshes, each column scans every visible session to find its tiles. A full page on the default six-column board repeats the same 100-session scan six times, even though the Gateway has already assigned each session a column.

Related: #205114 (agent filtering on paginated Sessions boards).

User Impact

No visible change. Columns stay in their configured order, tiles keep their order within each column, and empty columns remain visible. Filtering, opening a session, and moving a tile work as before.

Why This Change Was Made

The view groups the already-filtered tiles once by their assigned column ID with Map.groupBy. It still renders the configured columns, not the groups, so a column without tiles does not disappear. The grouping lasts only for the current projection; it adds no persistent cache or Gateway work. Production: +3/−1 lines; tests: +17.

Evidence

  • The same 25 mounted-page checks passed on base d79f9830c07c and head 777651409500 with a fixture Gateway. Interleaved Done, Working, Done sessions rendered as Working then Done, with both Done sessions in input order. The suite also exercised a people-filter change, empty columns, tile navigation, and moving a session.
  • With 100 interleaved tiles and six columns, a counter on the projected tiles' column IDs recorded 600 reads before, 100 after, plus six group lookups after. Both grouping expressions produced identical ordered lists in all six columns. This measures grouping work, not page latency.
  • The focused renderer typecheck, lint and formatting on both touched files, and git diff --check passed.
  • Local autoreview (Codex, P0–P3) found no actionable issues on d79f9830c07c..777651409500. It reviewed the committed diff and supplied renderer, page-test and board-contract sources; it did not execute the code. Local ClawSweeper was unavailable.

🦞 Made with OpenClaw

@clawsweeper

clawsweeper Bot commented Nov 28, 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 the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 28, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 28, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR groups filtered session tiles once by column instead of scanning every session separately for each column.

Example: A Sessions board displays 100 sessions across six configured columns.

  • Before: Column assignment performs 600 column-ID comparisons.
  • After: Grouping reads 100 column IDs and performs six lookups, preserving the displayed order and empty columns.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, minimal optimization with clear source reasoning and focused preservation coverage; execution evidence remains reported harness results and operation counts.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored, behavior-preserving refactor is exempt from contributor runtime proof. The body reports mounted-page checks on base and head and grouping reads falling from 600 to 100; these support equivalence and reduced work but establish no page-latency improvement. Inspected screenshots belong to the earlier pagination repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Refreshing a Sessions board repeats the same tile-classification scan for every column.
Reason: Maintainer-approved direction removes concrete repeated work with a small local change and preserves presentation and interaction contracts.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored draft open: it removes repeated grouping work through the existing renderer, and no actionable correctness or security defect was found.

Reviewed head: 7776514095006152609a1b35d0147f5bdbb53629

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Workboard browser renderer receives controller snapshots and host filters, derives session tiles, and renders configured columns with navigation and drag actions.

flowchart LR
  A[Gateway board snapshot] --> B[Sessions controller]
  B --> C[Filtered tile projection]
  C --> D[Group by column]
  D --> E[Configured column rendering]
  E --> F[Session tiles and actions]
Loading

Technical review

Best possible solution:

Keep the grouping inside the existing projection and retain configured-column rendering and ordering coverage.

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

Current-main source establishes one full session scan per configured column; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The minimal replacement removes repeated work at its existing owner without adding retained state, changing classification, or altering public contracts.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Session grouping and column presentation keeps the original intent (0d4a332: The Solid migration preserved board columns, session views, selectors, and interaction contracts; grouping once preserves those requirements.)
  • Unknown versus accepted-empty results keeps the original intent (eae3fa9: Readiness tracking prevents unknown results from displaying false zero counts or empty messages; this PR retains its conditions.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +2, Tests +17. Total +19 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 3 1 +2
Tests 1 17 0 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 20 1 +19

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.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 28, 2026, 3:52 AM ET / 08:52 UTC.

vyctorbrzezowski and others added 19 commits November 29, 2026 03:22
* fix(ui): remove Open PR from the session menu

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

* fix(ui): remove Open PR from the session menu

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 19ab49eb-2fdb-4e2a-ba0e-3fcf8de38db9

* fix(ui): preserve shared session menu copy

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: remove dismissed chat suggestions without waiting

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

* fix: remove dismissed chat suggestions without waiting

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: a7065126-58f4-41f4-ab35-887c77e05eac

* refactor: keep suggestion dismissal focus with the pane keyboard helpers

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

* fix: remove dismissed chat suggestions without waiting

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 362ae3c3-16c8-4016-8f59-dc477414e07a

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
…207809)

* fix(ui): show a subtle placeholder while a new chat gets its title

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

* fix(ui): show a subtle placeholder while a new chat gets its title

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 5a8d6d8e-7c91-4b07-9467-ff499cf2786a

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: keep skill highlights in sent chat messages

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

* fix: keep skill highlights in sent chat messages

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 303c108c-485c-4ee9-bcdc-b6845d507543

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
)

* improve: keep Workboard editing and Save within reach on phones

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

* improve: keep Workboard editing and Save within reach on phones

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 41fdebe7-35c4-435a-8128-eb9f12e2fabf

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
* fix(ui): highlight skills and mentions in queued messages

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

* fix(ui): highlight skills and mentions in queued messages

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: d26fee27-de6c-4b5f-8264-da07de4df6f9

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
…07748)

* fix(ui): even the gap below a lone tool row in chat

* fix(ui): center a lone tool row on the agent avatar
Move project selection and its New worktree switch into the visible project field. Keep agent selection and Remember settings in their original menu.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: stop warning about unsaved drafts when opening a chat

Keep failed background recovery reads distinct from failed edits in the composer and Side chat. Keep one access notice when browser storage is unavailable without consuming the warning for a later failed save.

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

* fix: stop warning about unsaved drafts when opening a chat

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 227e24ff-2a24-4a82-a325-e7787c443eed

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
* fix(ui): keep the flat session list collapsed

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

* fix(ui): keep the sidebar session list collapsed

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: d5d9e6c3-ba53-4dec-9efe-a5a9c5c29445

* fix(ui): page the sidebar only when it scrolls to the end

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: stop treating limited access as an inbox alert

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

* fix: stop treating limited access as an Inbox alert

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: a014cab4-b01d-458b-aa67-ec83ad3a2a99

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: child session activity ring freezes during startup

Project accepted preparation as running without starting the execution clock. Reserve queued presentation for actual mailbox/global-lane waits and preserve recorded capacity waits.

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

* fix: child session activity ring freezes during startup

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 2bf26c5b-2410-44b2-9915-d2289a90f388

* fix: align Gateway consumers with active session startup

Expect active accepted chat preparation, record a real lane wait in metrics, and distinguish preparation from actual queued input in describe/list coverage.

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

* Publish openclaw/plaid-crayfish

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 29690b6c-a214-45c1-9591-fd19b1d51336

* test(gateway): cover child startup in the current session checks

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added extensions: memory-lancedb Extension: memory-lancedb cli CLI command changes security Security documentation scripts Repository scripts commands Command implementations docker Docker and sandbox tooling agents Agent runtime and tooling channel: feishu Channel integration: feishu channel: twitch Channel integration: twitch channel: irc channel: qa-channel Channel integration: qa-channel extensions: qa-lab extensions: memory-wiki extensions: tokenjuice Changes to the bundled tokenjuice extension plugin: bonjour Plugin integration: bonjour plugin: google-meet plugin: azure-speech Azure Speech plugin extensions: diagnostics-prometheus plugin: migrate-hermes channel: synology-chat plugin: migrate-claude plugin: zoom Zoom plugin plugin: file-transfer extensions: oc-path extensions: admin-http-rpc extensions: policy plugin: pixverse channel: sms Channel integration: sms extensions: llama-cpp channel: raft Channel integration: Raft labels Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: android App: android app: ios App: ios app: linux app: macos App: macos app: web-ui App: web-ui channel: a2a channel: buzz channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: irc channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: qa-channel Channel integration: qa-channel channel: raft Channel integration: Raft channel: reef Channel integration: reef channel: signal Channel integration: signal channel: slack Channel integration: slack channel: sms Channel integration: sms channel: synology-chat channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: twitch Channel integration: twitch channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: x channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser cli CLI command changes commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: active-memory extensions: admin-http-rpc extensions: advisor extensions: agent-guidance extensions: autoreview AutoReview plugin and integration extensions: copilot-proxy Extension: copilot-proxy extensions: diagnostics-otel Extension: diagnostics-otel extensions: diagnostics-prometheus extensions: llama-cpp extensions: llm-task Extension: llm-task extensions: lobster Extension: lobster extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: memory-wiki extensions: oc-path extensions: policy extensions: qa-lab extensions: tokenjuice Changes to the bundled tokenjuice extension extensions: vault Extension: vault gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: azure-speech Azure Speech plugin plugin: beam Beam session sharing plugin plugin: bonjour Plugin integration: bonjour plugin: celeris plugin: code-mode-quickjs plugin: cua-computer plugin: facetime FaceTime plugin plugin: fastino plugin: file-transfer plugin: geolocation Geolocation plugin (IP to coarse city) plugin: google-meet plugin: imap plugin: knowledge plugin: levanto Levanto Sage decision provider plugin: linux-node plugin: logbook Logbook automatic work journal plugin plugin: mcp-events plugin: mcp-relay plugin: migrate-claude plugin: migrate-hermes plugin: muse plugin: mxc plugin: nace plugin: onnx plugin: openclaw-id-access plugin: pixverse plugin: session-share plugin: skill-workshop plugin: slack-huddles plugin: subq SubQ Snap decision provider plugin: team-reports plugin: teams-meetings Teams Meetings plugin plugin: typesafe plugin: visitor-access plugin: workboard plugin: zoom Zoom plugin rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts security Security documentation size: XL 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.