Task list can leave completed work marked pending
Summary
Claude Code can leave a task in the task list as pending even after the underlying work has already been completed. In my session, I had to manually fix the stale task status afterwards.
What happened
During a multi-step troubleshooting session, Claude created multiple tasks and completed the actual work, but one task remained in the task list as unfinished.
Example from the session:
- Task
#22remainedpending - Task
#23was markedcompleted - The work associated with
#22had already been done, but the task state was not updated until I explicitly asked why a task was still unfinished
Expected behavior
If the work tied to a task is already completed, the task list should not continue showing that task as pending.
Actual behavior
A stale unfinished task remained in the task list and required manual cleanup.
Notes
This looked like a task-state synchronization / cleanup issue rather than user error. It happened in a session that involved multiple task updates plus some failed/retried tool calls, so there may be an edge case where a task is created but not reliably finalized.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗