Skip to content

fix: skip attachments when deciding if a sub-agent is running - #61

Merged
stefanprodan merged 1 commit into
mainfrom
fix-subagent-attachments
Sep 23, 2026
Merged

stefanprodan merged 1 commit into
mainfrom
fix-subagent-attachments

Conversation

@stefanprodan

Copy link
Copy Markdown
Owner

Claude Code now appends attachment entries (e.g. total_tokens_reminder) after a tool result in sub-agent transcripts. The running check read the newest entry of any kind, so the attachment hid the tool_result that marks the agent as mid-flight, and a quiet agent dropped out of the tree after 20s. Derive the running state from the newest user/assistant entry instead.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan
stefanprodan merged commit d0c2018 into main Sep 23, 2026
2 checks passed
@stefanprodan
stefanprodan deleted the fix-subagent-attachments branch September 23, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant