Skip to content

fix: keep sub-agents live while a message is still streaming - #59

Merged
stefanprodan merged 1 commit into
mainfrom
fix-streaming-subagents
Sep 23, 2026
Merged

stefanprodan merged 1 commit into
mainfrom
fix-streaming-subagents

Conversation

@stefanprodan

Copy link
Copy Markdown
Owner

Newer Claude Code writes each content block of an assistant message as its own transcript entry, with stop_reason: null on all but the last. A sub-agent narrating ahead of a long tool call (e.g. a large Write) ended its transcript on a text block, which cctop read as a finished agent and dropped after 20s. Treat an assistant entry with an explicit stop_reason: null as mid-flight; a finished agent still ends on end_turn.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan
stefanprodan merged commit b0642d6 into main Sep 23, 2026
2 checks passed
@stefanprodan
stefanprodan deleted the fix-streaming-subagents branch September 23, 2026 10:29
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