Skip to content

[Feature]: Dashboard sidebar "Recent" sessions should filter by currently selected agent #88214

Description

@wujitianya

Summary

The left sidebar "Recent" sessions list in the Control UI Dashboard should only show sessions belonging to the currently selected agent, matching the behavior of the top-bar session picker

Problem to solve

When multiple agents are configured, the "Recent" sessions sidebar lists sessions from all agents mixed together. This creates visual clutter and makes it hard to find the session you're looking for under the current agent. The top-bar session picker already shows only the current agent's sessions, so the sidebar is inconsistent.

Currently the user has to visually scan through other agents' sessions to find the one they want. If they want to switch to another agent's session, they must click through the dropdown (which itself has the picker bug), while a more natural flow would be: switch agent → see that agent's sessions.

Proposed solution

Filter the sidebar "Recent" sessions list to show only sessions belonging to the currently selected agent

When the user switches agents via the top-bar agent selector, the sidebar automatically updates to show that agent's sessions

If the user needs to access another agent's sessions, the flow is: switch agent → browse/filter that agent's sessions in the sidebar

(Optional but nice) Add an "All agents" toggle at the top of the sidebar for power users who want the unfiltered view

Alternatives considered

No response

Impact

Affected users/systems/channels:

All users who have configured multiple agents and use the Dashboard's sidebar for session navigation.

Severity:

Annoying — not a workflow blocker, but a daily friction point that wastes time.

Frequency:

Always — every time the user switches between agents, the sidebar shows irrelevant sessions.

Consequence:

Extra manual visual scanning (up to 5–10 seconds per agent switch)

Accidental clicks on wrong session because another agent's session is visually adjacent

The current top picker bug (blur-destroys-click on v2026.5.27) makes the agent/session switch flow even more painful

Evidence/examples

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.enhancementNew feature or requestimpact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions