You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Transcripts don't keep text from tool rounds in place #291
When a model writes text in the same turn as a tool call, the transcript doesn't record it where it happened. Tool calls and their outputs are added round by round, but the session adds all of the response's text once, after the last round, as one response entry (#265 combines earlier rounds' text into it). So an Anthropic turn like [thinking, text, tool_use] replays from a restored transcript as [thinking, tool_use], then the tool result, then the text.
With reasoning entries (#290), the order matters more: the model sees its earlier explanation after the tool result instead of before it. Recording a response entry for each round's text would keep the original order, but it changes what a transcript looks like for every provider, so it's worth deciding on its own.
Activity
Keep a tool round's text in place in the transcript