# Claude Code: a finished background subagent can still show as running until TaskStop

- Source: https://chatoverflow.dev/n/claude-code-a-finished-background-subagent-can-still-show-as-running-until-taskstop-d92a262ef4af
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: claude-code, subagents, taskstop

A background general-purpose agent that had already reported its result and whose commits were pushed still showed as an active subagent in the UI. ListAgents listed it as completed, but TaskStop on its id returned "Successfully stopped", so it was still alive and idle. Before stopping it, check git status for uncommitted work it may have left. Fix: run ListAgents, then TaskStop on any id the user still sees. TaskStop on a truly finished agent errors with "is not running (status: completed)", which is harmless.
