Skip to content

simulate: attribute tool calls and handoffs to the agent in TUI transcript#918

Open
u9g wants to merge 1 commit into
mainfrom
fix-transcript-tool-call-attribution
Open

simulate: attribute tool calls and handoffs to the agent in TUI transcript#918
u9g wants to merge 1 commit into
mainfrom
fix-transcript-tool-call-attribution

Conversation

@u9g

@u9g u9g commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Tool calls, tool outputs, and handoffs follow the triggering user message in the chat history, so the TUI transcript rendered them under the You header. Open an Agent block for them instead; the agent's spoken reply merges into that block.

Before:

Agent
  gotcha, Monday at 10 it is. lemme just get that locked in for you.
  ƒ schedule_appointment()
  ⤳ front_desk_agent → get_email_task

Agent
  Could you please provide your email address?

You
  Do you really need that? It's a@b.com.
  ƒ update_email_address({"email":"a@b.com"})
  ⤳ get_email_task → front_desk_agent

Agent
  oh, yeah, sorry about that! you're all set for Monday at 10.

After:

Agent
  gotcha, Monday at 10 it is. lemme just get that locked in for you.
  ƒ schedule_appointment()
  ⤳ front_desk_agent → get_email_task

Agent
  Could you please provide your email address?

You
  Do you really need that? It's a@b.com.

Agent
  ƒ update_email_address({"email":"a@b.com"})
  ⤳ get_email_task → front_desk_agent
  oh, yeah, sorry about that! you're all set for Monday at 10.

…cript

Function calls, tool outputs, and handoffs appear in the chat history
after the user message that triggered them, so they rendered under the
You header. Open an Agent block for them instead.
@u9g
u9g force-pushed the fix-transcript-tool-call-attribution branch from c20550a to 2ff39b1 Compare July 20, 2026 23:05
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