Skip to content

Tray UI: completed ACP/subagent sessions clutter session list — need archive/hide support #881

Description

@shanselman

Summary

The Windows tray app (and likely other UI surfaces) shows a growing list of completed ACP/copilot sessions and native subagents with no way to hide or dismiss them. This makes the session list cluttered and hard to navigate.

Current behavior

  • Every sessions_spawn call (ACP codex/copilot sessions, native subagents) adds an entry to the session list in the tray UI
  • Completed sessions remain visible indefinitely in the UI
  • With frequent cron jobs or coding agent usage, the list quickly grows to dozens of entries with names like "copilot", "subagent", etc.

Expected behavior

  • Completed/done sessions should be hidden from the tray UI session list (or collapsible/filterable)
  • Ideally, a "hide completed sessions" toggle in the tray UI
  • ACP sessions should respect agents.defaults.subagents.archiveAfterMinutes the same way native subagents do (or have an equivalent acp.archiveAfterMinutes setting)

Config context

agents.defaults.subagents.archiveAfterMinutes is set to 60 — this helps with native subagents but ACP sessions don't appear to be affected by it.

Suggested fixes

  1. Tray UI: Add a toggle or filter to hide status: done sessions from the session list
  2. ACP sessions: Apply archiveAfterMinutes (or equivalent) to ACP session lifecycle so they drop off the list after completion
  3. Config knob: A sessions.uiShowCompleted: false or similar setting that controls visibility across all UI surfaces

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.bugSomething isn't workingclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact: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

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions