Skip to content

feat(workboard): add a people view filter to Sessions boards - #162283

Merged
steipete merged 5 commits into
mainfrom
steipete/sessions-board-people-filter
Oct 1, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/sessions-board-people-filter

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Sessions board viewers need a quick way to focus on sessions involving themselves or another person without changing the board everyone shares.

Solution

Add an Everyone / Involving me / person picker beside the agent filter. The picker uses the Gateway people facet, omits the viewer's own person entry, and remembers the selection in browser storage scoped to the viewer, Gateway, and board. Existing identity RPCs resolve that storage scope once per mounted view; no extra count requests are made.

workboard.sessionsBoard.read accepts optional view: { involvingMe?: boolean; involvingProfileId?: string; includePeople?: boolean }. Strict RPC validation admits only these fields. The caller-scoped roster forwards the filters to sessions.list, intersects its result with classified sessions, and returns people?: SessionPerson[] unchanged from the Gateway protocol contract.

User Impact

Everyone remains the default. Viewers can switch to sessions they own or previously prompted, or sessions associated with a selected person. Column counts and live refresh follow the selected view. The shared board spec, classification, placements, Board agent, drag-to-pin operation, and agent tools retain their existing behavior.

Why This Change Was Made

The Gateway already owns people-filter semantics and caller visibility. Applying the filter only to the foreground read preserves one shared classifier and keeps a personal presentation preference out of durable board state. No SDK surface, database schema, dependency, or configuration changes are needed.

Evidence

All 90 tests across the five requested files passed. Measured file execution wall times from Vitest's native JSON reports:

Test file Tests Wall time Result
extensions/workboard/src/sessions-board.test.ts 17 33.397 s Pass
extensions/workboard/src/gateway.test.ts 19 56.137 s Pass
extensions/workboard/browser/pages/workboard/workboard-page-sessions.test.ts 9 1.728 s Pass
extensions/workboard/browser/pages/workboard/workboard-page.test.ts 33 15.278 s Pass
extensions/workboard/src/tools.test.ts 12 15.189 s Pass

The new service case took 1.801 s; the extended RPC validation case took 3.591 s. The backend files retain existing worker-backed SQLite fixtures to prove shared placements and caller behavior across the persistence boundary; host load and existing fixture setup dominate their file times. No real timers, sleeps, or polling were added.

The exact requested combined command passed both UI files, then stalled before backend test execution. Process diagnostics showed an idle fork with no SQLite workers. After stopping it through the runner's lifecycle owner, the same three backend files passed with the repository-supported OPENCLAW_VITEST_FS_MODULE_CACHE=0 setting; fork isolation, setup, and compiled-artifact verification remained enabled. The initial stall's cause is unproven. Backend recovery command wall time: 587.99 s (392.36 s transforming modules). UI timing capture command wall time: 35.37 s. CI timings are not available at PR creation; no workflow was dispatched or rerun for proof.

Check Wall time Result
pnpm tsgo:extensions 146.67 s Pass
pnpm tsgo:extensions:test 354.53 s Pass
oxfmt --check on touched files 4.26 s Pass
pnpm check:deprecated-api-usage 181.44 s Pass
pnpm deadcode:full 942.07 s Both passes clean
Workboard Control UI build / copy 13.96 s / 6.29 s Pass; manifest regenerated
Plugin SDK surface report --check 82.82 s Unchanged: 158 entrypoints / 4,594 exports / 2,698 callable exports
git diff --check — Pass
pnpm plugins:assets:check 6.69 s Pass; generated bytes match the committed manifest
git merge-tree --write-tree origin/main HEAD — Clean against b5555b0bd9ed987d09fcdd5375031c023f25db7c

Autoreview: both the pre-commit and committed-branch Codex reviews are scoped-clean at P1 severity through the direct API route. No accepted findings and no follow-up code changes. Branch review command wall time: 927.57 s.

{
  "schema_version": 1,
  "status": "scoped-clean",
  "exit_code": 0,
  "engine": "codex",
  "report_produced": true,
  "reason": null,
  "reviewer_exit_code": null,
  "timed_out": false
}

Reviewed candidate: aafe621551966488271102b4a6e720bb377e0c95.

Screenshot capture and attachment are assigned to the coordinator. This PR is not set to auto-merge and has not been merged.

Visual proof

Captured on a dev Gateway built from this branch with the Sessions board from #161958 (single-operator rig, so Involving me shows the same sessions as Everyone; the Gateway's involvingMe semantics are covered by its own tests).

Before (unchanged toolbar from #161958, no people filter): see the board capture in #161958.

After, the people picker beside the agent filter, open:

People filter open: Everyone, Involving me

After, Involving me selected and remembered per device:

Involving me selected

After, default Everyone view:

Everyone view

@clawsweeper

clawsweeper Bot commented Oct 1, 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 plugin: workboard size: M labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. 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. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 30, 2026, 11:50 PM ET / October 1, 2026, 03:50 UTC (Revision 5).

ClawSweeper review

What this changes

Adds a remembered Everyone, Involving me, or person filter to Workboard Sessions boards using the Gateway’s existing people-filter semantics.

Merge readiness

✅ Ready for maintainer review

This PR remains useful because current main lacks the Sessions-board people picker. The prior lifecycle findings are addressed, and no remaining introduced correctness or security blocker was found.

Priority: P2
Reviewed head: 8bfb59f79e65ccb657a025a07bf047a7e1a9c261

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable feature with useful visual evidence and addressed lifecycle regressions.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected dev-Gateway screenshots show the Workboard picker open and the Everyone and Involving me states after the change; source and supplemental tests connect selection to caller-scoped board reads. Multi-person reduction is outside the single-operator capture, and the referenced Sessions-board before image could not be inspected. Existing-state compatibility is supported by the new isolated preference namespace, Everyone fallback, and unchanged shared storage contracts.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected dev-Gateway screenshots show the Workboard picker open and the Everyone and Involving me states after the change; source and supplemental tests connect selection to caller-scoped board reads. Multi-person reduction is outside the single-operator capture, and the referenced Sessions-board before image could not be inspected. Existing-state compatibility is supported by the new isolated preference namespace, Everyone fallback, and unchanged shared storage contracts.
Evidence reviewed 8 items Introduced production changes: The pinned introduced delta adds the picker, caller-scoped read options, scoped browser preference, contract types, documentation, and regression coverage. Classification and mutation paths continue to request unfiltered rosters.
Still necessary on main: The fetched main controller reads the board with only boardId and has no people picker or preference handling. The related merged Sessions-board implementation establishes the underlying board, rather than superseding this filter.
Existing filtering owner: The Gateway protocol already defines involvingMe, involvingProfileId, and includePeople. Workboard forwards these options through the existing caller-scoped sessions.list operation; Gateway filtering retains visibility checks and intersects profile selection with authenticated involvement.
Findings None None.
Security None None.

How this fits together

Workboard Sessions boards display caller-visible conversations in shared, classified columns. The new personal filter narrows foreground reads and displayed counts without changing shared board specifications or placements.

flowchart TD
  A[Viewer selects people filter] --> B[Viewer and Gateway identity]
  B --> C[Board preference in browser storage]
  C --> D[Workboard board read]
  D --> E[Gateway session visibility and people filters]
  E --> F[Intersect with shared classified sessions]
  F --> G[Session tiles and column counts]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +188, Tests +291, Docs +8. Total +487 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 8 202 14 +188
Tests 3 299 8 +291
Docs 1 8 0 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 509 22 +487

Review metrics

Metric Value Why it matters
Production and test growth production TypeScript +188 lines; tests +291 lines Production growth supports the stated picker, preference lifecycle, and forwarding contract; tests cover distinct UI lifecycle and RPC boundaries.
Read API extension 3 optional view fields; Everyone remains the default The documented additive read options preserve existing callers and shared board behavior.

Technical review

Best possible solution:

Keep personal filtering in foreground board reads, with the Gateway owning matching and visibility and shared classification remaining independent.

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

Not applicable to a feature request; current main lacks the picker, and inspected screenshots show the added rendered states.

Is this the best way to solve the issue?

Yes: forwarding existing Gateway filters is narrower than duplicating matching rules or persisting personal choices in shared board state.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded improvement to an optional board view with no demonstrated urgent regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected dev-Gateway screenshots show the Workboard picker open and the Everyone and Involving me states after the change; source and supplemental tests connect selection to caller-scoped board reads. Multi-person reduction is outside the single-operator capture, and the referenced Sessions-board before image could not be inspected. Existing-state compatibility is supported by the new isolated preference namespace, Everyone fallback, and unchanged shared storage contracts.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected dev-Gateway screenshots show the Workboard picker open and the Everyone and Involving me states after the change; source and supplemental tests connect selection to caller-scoped board reads. Multi-person reduction is outside the single-operator capture, and the referenced Sessions-board before image could not be inspected. Existing-state compatibility is supported by the new isolated preference namespace, Everyone fallback, and unchanged shared storage contracts.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected dev-Gateway screenshots show the Workboard picker open and the Everyone and Involving me states after the change; source and supplemental tests connect selection to caller-scoped board reads. Multi-person reduction is outside the single-operator capture, and the referenced Sessions-board before image could not be inspected. Existing-state compatibility is supported by the new isolated preference namespace, Everyone fallback, and unchanged shared storage contracts.

Evidence

What I checked:

  • Introduced production changes: The pinned introduced delta adds the picker, caller-scoped read options, scoped browser preference, contract types, documentation, and regression coverage. Classification and mutation paths continue to request unfiltered rosters. (extensions/workboard/src/sessions-board.ts:462, 8bfb59f79e65)
  • Still necessary on main: The fetched main controller reads the board with only boardId and has no people picker or preference handling. The related merged Sessions-board implementation establishes the underlying board, rather than superseding this filter. (extensions/workboard/browser/pages/workboard/sessions-board-controller.ts:57, 2ecf00ba391f)
  • Existing filtering owner: The Gateway protocol already defines involvingMe, involvingProfileId, and includePeople. Workboard forwards these options through the existing caller-scoped sessions.list operation; Gateway filtering retains visibility checks and intersects profile selection with authenticated involvement. (packages/gateway-protocol/src/schema/sessions-list.ts:68, 8bfb59f79e65)
  • Prior findings and review continuity: The current controller resets identity on activation and reloads stale identity work before a waiting board read restores its preference. The latest head changes only test fixture construction. GitHub comparison independently confirmed this after local historical blob retrieval returned HTTP 403. (extensions/workboard/browser/pages/workboard/sessions-board-controller.ts:48, 8bfb59f79e65)
  • Preference compatibility: The new browser-storage namespace includes Gateway, viewer, and board identity. Missing or unavailable storage defaults to Everyone; existing board specifications and placement storage are untouched. Page coverage checks restoration, scope separation, reconnects, board switches, and unavailable storage. (extensions/workboard/browser/pages/workboard/sessions-board-controller.ts:42, 8bfb59f79e65)
  • Inspected visual proof: Inspected the three prepared after screenshots linked in the captured PR body: the picker is open, Involving me is selected, and Everyone is selected on the stated dev Gateway. The single-operator setup demonstrates these rendered states but cannot demonstrate multi-person roster reduction. The prepared fourth image shows the prior Cards board; fetching the separately linked prior Sessions-board image failed with a browser cache miss, so that before image was not independently inspected.

Likely related people:

  • Peter Steinberger: Raw commit 8c02b95 adds extensions/workboard/src/sessions-board.ts:436 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/src/sessions-board.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-01T02:09:10.909Z sha aafe621 :: blocked before merge. :: [P2] Refresh the preference identity when the view reconnects
  • reviewed 2026-10-01T02:35:42.654Z sha dd68e66 :: blocked before merge. :: [P2] Refresh the preference identity when the view reconnects
  • reviewed 2026-10-01T02:58:54.307Z sha ea09383 :: needs changes before merge. :: [P2] Fence identity loading by connection rather than board generation
  • reviewed 2026-10-01T03:21:51.374Z sha d65a483 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 1, 2026
The viewer and Gateway identity behind the people-filter preference key loaded once per mount, so a reconnect within the mounted page as another viewer or Gateway reused the stale scope. Reload identity whenever the view activates, fence stale identity responses by generation, and cover a same-mount reconnect in the page test.
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. label Oct 1, 2026
…is waiting on it

Switching Sessions boards while the identity RPCs were still pending left the destination board's read waiting on a load that then returned nothing, so its saved people filter was not restored. A stale identity load now reloads for the current activation before the waiting read continues; the regression fails without this.
@clawsweeper clawsweeper Bot added 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 rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 1, 2026
The extensions lint lane rejects spread-to-modify inside map callbacks (oxc/no-map-spread).
@steipete
steipete merged commit f262cf4 into main Oct 1, 2026
125 checks passed
@steipete
steipete deleted the steipete/sessions-board-people-filter branch October 1, 2026 04:02
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
…w#162283)

Add a per-viewer people filter beside the agent filter on Sessions boards: Everyone (default), Involving me, or a person from the Gateway's people facet. workboard.sessionsBoard.read accepts an optional view { involvingMe, involvingProfileId, includePeople } forwarded to the caller-scoped sessions.list roster; the board's shared columns, classification, placements, and Board agent are unchanged. The choice is remembered per viewer, device, Gateway, and board, and the preference scope reloads on reconnect so a different viewer or Gateway never inherits a stale selection.
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 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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.

1 participant