Repository navigation
feat(workboard): add a people view filter to Sessions boards - #162283
Conversation
|
🦞👀 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 maintainer review before merge. Reviewed September 30, 2026, 11:50 PM ET / October 1, 2026, 03:50 UTC (Revision 5). ClawSweeper reviewWhat this changesAdds 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 Review scores
Verification
How this fits togetherWorkboard 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +188, Tests +291, Docs +8. Total +487 across 12 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
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.
…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.
The extensions lint lane rejects spread-to-modify inside map callbacks (oxc/no-map-spread).
…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.
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.readaccepts optionalview: { involvingMe?: boolean; involvingProfileId?: string; includePeople?: boolean }. Strict RPC validation admits only these fields. The caller-scoped roster forwards the filters tosessions.list, intersects its result with classified sessions, and returnspeople?: 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:
extensions/workboard/src/sessions-board.test.tsextensions/workboard/src/gateway.test.tsextensions/workboard/browser/pages/workboard/workboard-page-sessions.test.tsextensions/workboard/browser/pages/workboard/workboard-page.test.tsextensions/workboard/src/tools.test.tsThe 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=0setting; 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.pnpm tsgo:extensionspnpm tsgo:extensions:testoxfmt --checkon touched filespnpm check:deprecated-api-usagepnpm deadcode:full--checkgit diff --checkpnpm plugins:assets:checkgit merge-tree --write-tree origin/main HEADb5555b0bd9ed987d09fcdd5375031c023f25db7cAutoreview: both the pre-commit and committed-branch Codex reviews are
scoped-cleanat 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
involvingMesemantics 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:
After, Involving me selected and remembered per device:
After, default Everyone view: