Agent Teams: TaskUpdate status not synced between team and session task lists
Bug Description
When using Agent Teams with a session-level task list, TaskUpdate(status: "completed") calls made while a team is active return success but do not persist to the session task list after TeamDelete.
Steps to Reproduce
- Create tasks using
TaskCreate(session-level task list) - Create an Agent Team with
TeamCreate - Spawn teammates and complete work
- Call
TaskUpdate(taskId: "2", status: "completed")— returns"Updated task #2 status"(success) - Call
TeamDeleteto clean up the team - Call
TaskList— tasks still show asin_progressinstead ofcompleted
Expected Behavior
Tasks updated via TaskUpdate during an active Agent Team session should retain their status after TeamDelete.
Actual Behavior
Tasks revert to their pre-team state (in_progress) after TeamDelete. The updates made during the team session are lost.
Possible Cause
Agent Teams use a separate task list directory (~/.claude/tasks/{team-name}/). When TaskUpdate is called during a team session, it may be updating the team-scoped task list rather than the session-scoped task list. When TeamDelete removes the team directory, the updates are lost.
Environment
- Claude Code CLI
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1- Agent Teams feature (experimental)
Workaround
Re-call TaskUpdate after TeamDelete to manually sync the status.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗