[Bug] In-session /tasks panel prematurely clears completed subagents without documented cleanup trigger
Bug Description
Subject: In-session subagent panel (/tasks) loses completed subagents faster than documented, and Ctrl+T has no pin effect there
What I'm seeing:
- I watch subagents via /tasks inside a single interactive session (not Agent View /
claude agents). - Completed background subagents drop out of the /tasks list shortly after I switch back
to the main session — well before I've had a chance to review their output.
- Pressing Ctrl+T to try to "pin" a subagent and keep it listed does nothing for it; it
only toggles Claude's to-do checklist, which isn't the feature I'm trying to use.
Expected behavior (per docs):
- sub-agents.md states a completed background subagent "stays listed in /tasks, marked
done and sorted below running work, until the session cleans up its task list" and that
"its detail view stays open when the subagent finishes." No timeout or
switch-back-triggered cleanup is documented.
- agent-view.md documents a Ctrl+T pin that exempts a background session from the ~1-hour
idle cleanup, but that's for Agent View (claude agents) rows, not in-session
subagents. There appears to be no equivalent pin/keep-alive control for the /tasks panel.
Ask:
- Please clarify (or fix) exactly when/why the in-session /tasks list clears a completed
subagent — the current doc wording ("until the session cleans up its task list") is too
vague to tell if this is working as intended.
- Consider adding a pin/keep-alive control for in-session subagents in /tasks, similar to
what Agent View already has for background sessions.
Environment Info
- Platform: darwin
- Terminal: xterm-256color
- Version: 2.1.219
- Feedback ID: 2301fcd1-9f3a-4b60-b5c9-52db5951490d