Skip to content

fix(simulate): mark a cited tool output where it prints - #946

Merged
u9g merged 1 commit into
mainfrom
jason/cited-tool-output
Aug 25, 2026
Merged

fix(simulate): mark a cited tool output where it prints#946
u9g merged 1 commit into
mainfrom
jason/cited-tool-output

Conversation

@u9g

@u9g u9g commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

The run summary can cite a tool output (function_call_output) with a <ref>. Pressing that citation's digit opened the job but never marked the turn: renderChatTranscript skipped tool outputs unless tool detail was toggled on, and when it did print them it passed an empty mark, so the reader saw either "the cited turn is not in this transcript" or an unmarked output.

A cited output now prints whether or not tool detail is on, and carries the ◀ cited mark like a cited function call does. Uncited outputs keep hiding behind the toggle.

Whether the stored history carries an id for tool outputs is up to the agent-service summarizer; livekit/agents-private#396 fixes that side. Runs summarized before it deploys still cite ids the history doesn't have and keep showing the "not in this transcript" line.

Verified with go vet and go test ./cmd/lk (system portaudio).

A summary can cite a tool output, and the digit jump opened the job
without marking it: outputs were skipped unless tool detail was on, and
printed with no mark when it was. A cited output now prints regardless
of the toggle and carries the mark, like a cited function call.
@u9g
u9g merged commit df2ef6d into main Aug 25, 2026
22 checks passed
@u9g
u9g deleted the jason/cited-tool-output branch August 25, 2026 02:02
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.

2 participants