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

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.bugSomething isn't workingclawsweeper: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.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.

    Type

    No type

    Fields

    Priority

    Medium

    Projects

    Status
    UX

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions