Skip to content

Transcripts don't keep text from tool rounds in place #291

Description

@mattt

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.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions