Files
magpie/internal
yetone e7980ed955 gateway: a summary that arrives while the reply streams still branches from the run's session (recih on X, #6128)
A call got the conversation it answers only in park(), after the whole
reply ended. Claude Code's AgentSummary that arrived while the reply
still streamed (a call shown, park not yet run) found no line with that
conversation, so branch() said "no run waits on a reply to this
conversation" and a new Claude Code was told the whole transcript
(108K cache tokens written). emit now registers a call's line with the
run's conversation when the call is shown; park and noteLines keep it.

Run (mica, load on mote): TestClaudeBranchForSummaryWhileTheReplyStreams
(attach, KStart, KToolStart, no park, then the summary) is red on the old
code ("no run waits on a reply to this conversation") and green now.
go test -run 'Claude|Branch|Fork|Park|Subscription' ./internal/gateway ok;
gofmt clean; go vet darwin, windows, linux nogui ok.
Broken by hand: the fix reverted, the new test goes red.
Not tried: a real AgentSummary on a live TUI run; the full suite is
started after the tag.
2026-11-12 02:14:08 +08:00
..
…
…
…
…
…
2026-11-11 08:14:28 +08:00
…
…
…