Repository navigation
fix: respect the owner filter in pinned sessions - #203746
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: f38fb9a3-fb7b-45a9-bbb4-314a04aa6039
|
🦞👀 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: blocked before merge. What this changesThis PR applies the selected session owner filter to pinned sidebar sessions while preserving saved pins and global rail shortcuts. Example: Daniel is selected while Story notes, Release planning, and Model picker review are pinned.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep open: this maintainer-authored PR fixes a real sidebar inconsistency, but an introduced cached-reload regression blocks merge. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI sidebar combines Gateway session rows, personal pin references, owner selection, and persisted display snapshots into rendered sections and selection order. flowchart TD
A[Gateway session rows] --> D[Sidebar projection]
B[Personal pin references] --> D
C[Selected owner] --> E[Shared owner matcher]
D --> E
F[Persisted sidebar snapshot] --> D
E --> G[Pinned rows and selection]
Technical reviewBest possible solution: Keep shared owner matching and retire incompatible owner-less sidebar projections through the existing snapshot owner before rendering them. Do we have a high-confidence way to reproduce the issue? Current-main source omits owner filtering for pins, matching the supplied before screenshot; source also establishes the introduced owner-less snapshot failure without executing target code. Is this the best way to solve the issue? Sharing the existing owner predicate and pin visibility owner is appropriately small, but snapshot admission must account for previously serialized pins before the new predicate consumes them. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 58a3c7e9a8f2. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +27, Tests +94, Docs +5. Total +126 across 9 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 22, 2026, 4:57 PM ET / 21:57 UTC. |
Keep saved pin order and rail shortcuts independent of the selected owner. Use the tested main sidebar and retire only owner-scoped cached pins that lack the filtered projection.
* fix: respect the owner filter in pinned sessions Co-authored-by: vyctorbrzezowski <[email protected]> * fix: respect the owner filter in pinned sessions Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: f38fb9a3-fb7b-45a9-bbb4-314a04aa6039 --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
When you choose a person in the Control UI Sessions sidebar, Pinned can still show sessions owned by someone else. The list appears to contradict the name in its header.
User Impact
A named owner or My sessions now shows only matching pins. When none match, Pinned disappears. All owners brings the hidden pins back in their saved order. Rail shortcuts, the open conversation, and its draft stay put. No user action or migration is required.
Why This Change Was Made
Pinned rows now use the same named-owner match as the session list, without treating absence from the current page as a mismatch. The same visibility rule serves rendering and selection; saved pins and rail shortcuts are unchanged. The existing warm sidebar projection retains the same compact owner fields used by the boot roster.
Evidence
The browser reproduction showed two out-of-scope pins on
f066f9cba3135and only the matching pin oncefcc59cc4065. The focused browser suite passed all three scenarios, including the empty section, restored pin order, and preserved rail shortcut, chat, and draft. Captured in the real Control UI with synthetic Gateway data and a 1280 × 800 Chromium viewport.Clean comparison
Annotated comparison
The 101 focused projection and snapshot unit tests passed, as did the UI typecheck and formatting checks. Targeted lint reported no errors and one existing Solid warning outside the changed lines. The browser suite took 27 seconds including its production UI build; the unit suite took 2 seconds. No live Team or full-suite CI run was used. Local autoreview stopped before launching because the configured temporary directory is inside the checkout; no review verdict was produced.
Contributor: @vyctorbrzezowski
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by