Claude Code parallel Task subagents misattribute TodoWrite incremental checkpoints
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 5.1k
- Forks
- 475
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 178
Description
Summary
Incremental PostTodo checkpoints resolve the parent Task via FindActivePreTaskFile, which returns the most recently modified pre-task-*.json. That is correct for nested Tasks, but wrong for sibling parallel Tasks: every TodoWrite can land under the newer sibling's tool_use_id.
Claude PostToolUse hooks inside a subagent include agent_id, but SubagentCheckpointHookInput did not capture it.
Expected
Prefer agent_id → remembered task link over mtime heuristic when attributing incremental subagent checkpoints.
Notes
Tests previously only covered 0/1 pre-task files.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with SubagentCheckpointHookInput and the PostToolUse/TodoWrite checkpoint flow, then inspect FindActivePreTaskFile and the remembered task-link handling. Add coverage for sibling parallel Tasks with multiple pre-task files and verify each incremental checkpoint is attributed to the correct tool_use_id.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100