Repository navigation
fix: keep My sessions within the selected agent - #201207
Conversation
Keep owner-filtered sidebar queries scoped to the selected agent. Apply the same scope to personal pins and sections without deleting saved references or narrowing global rail shortcuts. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 27397ade-2d5c-4178-83d9-6bf00153d2f8
|
🦞👀 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. What this changesThis PR keeps owner-filtered sessions, sidebar pins, and personal groups within the selected agent while preserving cross-agent Show all and rail shortcuts. Example: Select Roboclaw and My sessions with saved conversations on Roboclaw and X front door.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored draft implements an approved change to sidebar scope, with no actionable code findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI combines agent selection and owner filters into Gateway session queries, then projects returned sessions and saved personal references into sidebar rows. flowchart TD
A[Agent picker] --> C[Sidebar session query]
B[Owner filter] --> C
C --> D[Gateway session list]
D --> F[Sidebar projection]
E[Saved pins and groups] --> F
A --> F
F --> G[Visible sidebar rows]
Technical reviewBest possible solution: Retain the focused query and reference-projection change, with the explicitly accepted picker limitations kept separate. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically drops agentId for explicit owners, and supplied before screenshots show the resulting cross-agent list; this review executed no target code. Is this the best way to solve the issue? The patch is a small implementation of the approved semantics using existing query and navigation owners, without introducing another inventory, cache, or persisted setting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dbdf64fae01d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +14, Tests +222, Docs +7. Total +243 across 7 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. Review metrics
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 18, 2026, 8:22 AM ET / 13:22 UTC. |
|
Merged via squash.
|
* fix: keep My sessions within the selected agent Keep owner-filtered sidebar queries scoped to the selected agent. Apply the same scope to personal pins and sections without deleting saved references or narrowing global rail shortcuts. Co-authored-by: vyctorbrzezowski <[email protected]> * fix: keep My sessions within the selected agent Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 27397ade-2d5c-4178-83d9-6bf00153d2f8 * test(ui): exercise unloaded pins within the active agent * test(ui): verify session refresh and snooze in the selected agent --------- Co-authored-by: vyctorbrzezowski <[email protected]>
* fix: keep My sessions within the selected agent Keep owner-filtered sidebar queries scoped to the selected agent. Apply the same scope to personal pins and sections without deleting saved references or narrowing global rail shortcuts. Co-authored-by: vyctorbrzezowski <[email protected]> * fix: keep My sessions within the selected agent Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 27397ade-2d5c-4178-83d9-6bf00153d2f8 * test(ui): exercise unloaded pins within the active agent * test(ui): verify session refresh and snooze in the selected agent --------- Co-authored-by: vyctorbrzezowski <[email protected]> (cherry picked from commit 5d106dd) Release adaptation: Reviewed owner/agent query and personal navigation projection cutover; saved Chromium regression and consumer tests inspected. Co-authored-by: RomneyDa <[email protected]>
* fix: keep My sessions within the selected agent Keep owner-filtered sidebar queries scoped to the selected agent. Apply the same scope to personal pins and sections without deleting saved references or narrowing global rail shortcuts. Co-authored-by: vyctorbrzezowski <[email protected]> * fix: keep My sessions within the selected agent Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 27397ade-2d5c-4178-83d9-6bf00153d2f8 * test(ui): exercise unloaded pins within the active agent * test(ui): verify session refresh and snooze in the selected agent --------- Co-authored-by: vyctorbrzezowski <[email protected]> (cherry picked from commit 5d106dd) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit bc9fa56b26def4b24aef32f1f87437837128198c) (cherry picked from commit fc8fe82d193af24de442b7bf310d19817fb7170d)
Related: #199621 and #194814.
What Problem This Solves
Selecting Roboclaw and My sessions can show conversations from another agent. Changing to All owners then unexpectedly narrows the agent scope, and saved sidebar pins can remain outside the selected agent.
User Impact
The agent picker sets the sidebar scope: My sessions and other owner filters stay within the selected agent. Sidebar pins and personal sections follow that scope without deleting saved references. Show all remains cross-agent; explicit rail shortcuts remain global.
An agent without a loaded matching session window uses the existing Home fallback when selected. This patch does not add an independent cross-agent inventory for unread badges or latest-conversation selection. The broader picker work in #194814 remains separate.
Why This Change Was Made
Vyctor explicitly chose agent scope first, then owner filtering. The change removes the owner-filter exception from the existing query and applies the same agent scope to saved sidebar references. Gateway authorization, owner defaults, and stored preferences are unchanged.
Evidence
392506102468cb92aeb66a6a39ef7b3130583070: an X front door session is visible with Roboclaw selected. It passes with this fix.6691acaed56357d2210d380d577c0430ca0ee782: scoped-clean, no actionable findings. The reviewer assessed source; it did not execute tests.Clean comparison
Roboclaw + My sessions in both captures.
Selection and result, annotated
Each panel combines two successive real screenshots: the agent picker and its resulting session list. The UI pixels are unchanged; arrows and captions explain the selected scope.
Show all
Both agents and their saved pins remain available.
Contributor credit
Requested and shaped by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
Maintainer verification: Both exact browser scenarios and the 18 combined navigation/filter scenarios passed with a simulated Gateway. Two follow-up commits update tests only: the off-roster pin fixtures now belong to the selected agent, and the refresh test verifies a deferred previous-agent read cannot replace the new agent’s pending list. The drag test still checks saved order, descriptor lookup and absence of a server write. All 112 focused checks and the complete UI test typecheck passed on the final test patch.