Skip to content

fix: keep My sessions within the selected agent - #201207

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/keen-prawn-4
Nov 18, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
openclaw/keen-prawn-4

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • The new browser regression fails on current main 392506102468cb92aeb66a6a39ef7b3130583070: an X front door session is visible with Roboclaw selected. It passes with this fix.
  • 2 browser scenarios and 17 focused component tests passed. Coverage includes My sessions, All owners, named owners, empty scoped results, switching agents, personal pins/sections, and Show all. Production UI typecheck, targeted lint, formatting, and diff checks passed.
  • Independent local autoreview (Codex, GPT-6.1 Sol, P0–P2) reviewed the complete local change against 6691acaed56357d2210d380d577c0430ca0ee782: scoped-clean, no actionable findings. The reviewer assessed source; it did not execute tests.
  • Proof uses the real production Control UI in Chromium, a 1280×800 emulated viewport, and synthetic Gateway data. Session titles deliberately identify the agent. No live Gateway or provider proof; no full CI run yet.

Clean comparison

Roboclaw + My sessions in both captures.

Before After
My sessions mixes Roboclaw and X front door sessions My sessions contains only Roboclaw sessions

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.

Before: Roboclaw is selected but X front door sessions appear

After: the same selection shows only Roboclaw sessions

Show all

Both agents and their saved pins remain available.

Show all keeps both agents and their saved pins

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.

roboclaw-bot and others added 2 commits November 18, 2026 13:03
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
@clawsweeper

clawsweeper Bot commented Nov 18, 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 size: M labels Nov 18, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Both agents' conversations and sidebar pins appear.
  • After: Only Roboclaw conversations and sidebar pins appear; Show all restores both agents.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, visually demonstrated implementation with no definite introduced defect; broad CI remains unexercised on this draft.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium screenshots exercise the production Control UI sidebar with synthetic Gateway responses and show selected-agent filtering of both ordinary rows and pins; the body reports a failing baseline and passing changed browser scenario.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Choosing My sessions can display conversations from agents other than the selected agent, while switching to All owners unexpectedly narrows the list.
Reason: Historical behavior was intentional, but maintainer authorship supplies the direction decision for consistent agent-first filtering; broader picker improvements are expressly deferred.

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
Reviewed head: 03b85f5ef6865827944cab7c3f2b0f7e4dd61885

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Explicit-owner query scope changes intended behavior with a stated reason (f9cb55f: Keep a named owner's sessions available across agents even when the currently viewed agent has no matching conversations.)
  • Agent resume and unread expectations changes intended behavior with a stated reason (37d0db1: Read resume, unread, and Home activity from the aggregate personal result rather than an unrelated per-agent cache.)
  • Personal pins and group references keeps the original intent (fd01817: Personal navigation references preserve ordering and preferences independently of shared session metadata and access.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 89f6ab1 adds ui/src/components/session-data-controller-events.ts:24 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 89f6ab109b2e; files: ui/src/components/session-data-controller-events.ts)
  • RoboClaw: Raw commit f9cb55f adds ui/src/components/session-data-controller-events.ts:110 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f9cb55fd00c4; files: ui/src/components/session-data-controller-events.ts)

PR surface

Source +14, Tests +222, Docs +7. Total +243 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 18 4 +14
Tests 4 231 9 +222
Docs 1 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 256 13 +243

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.

Review metrics

Metric Value Why it matters
Production versus test changes Production +18/-4; tests +231/-9 Small production growth scopes saved references; browser coverage exercises filter transitions and pins, while component coverage checks personal groups and retained references.

Labels

Label changes:

  • add P2: The scope inconsistency affects conversation discovery without established data loss or blocked first use.
  • add merge-risk: 🚨 compatibility: Existing cross-agent personal-list behavior changes, including resume and unread behavior for unloaded agents; the maintainer-authored PR explicitly accepts this tradeoff.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The scope inconsistency affects conversation discovery without established data loss or blocked first use.
  • merge-risk: 🚨 compatibility: Existing cross-agent personal-list behavior changes, including resume and unread behavior for unloaded agents; the maintainer-authored PR explicitly accepts this tradeoff.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 18, 2026, 8:22 AM ET / 13:22 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 18, 2026 15:17
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 18, 2026 15:20
@vyctorbrzezowski
vyctorbrzezowski merged commit 5d106dd into main Nov 18, 2026
95 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/keen-prawn-4 branch November 18, 2026 15:55
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
* 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]>
github-actions Bot pushed a commit to clawhaven/openclaw that referenced this pull request Nov 23, 2026
* 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]>
tideclaw-bot pushed a commit that referenced this pull request Nov 23, 2026
* 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)
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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. 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: M 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.

2 participants