Claude Code /clear No Longer Kills Commands Running for Background Agents and Teammates
Claude CodeView original changelog
Claude Code 2.1.319 fixes /clear killing running commands of background agents, teammates and workflows that are meant to keep running, along with their foreground subagents. The release also fixes "Send now" on a waiting message in cloud sessions ending running background agents, and background tasks disappearing from the task list on Claude Code on the web after /clear.
Key Takeaways
/clearno longer kills the running commands of background agents, teammates and workflows.- It also no longer kills the foreground subagents of background agents and teammates.
- In cloud sessions, "Send now" no longer ends running background agents.
- Surviving background tasks now stay in the task list on Claude Code on the web.
- It shipped in 2.1.319.
The fix
Background agents, teammates and workflows are meant to keep running when the user clears the conversation. Before 2.1.319, /clear killed their running commands, and also killed the foreground subagents of background agents and teammates. In 2.1.319 they keep running.
Related cloud-session fixes
- Using "Send now" on a waiting message in cloud sessions used to end running background agents. They now keep running.
- Background tasks that keep running after
/clearused to disappear from the task list in Claude Code on the web until another task started or ended. They now stay listed.