Skip to content

Render tool calls fully when resuming a session#152

Merged
dnouri merged 1 commit intomasterfrom
feature/history-full-tool-rendering
Mar 4, 2026
Merged

Render tool calls fully when resuming a session#152
dnouri merged 1 commit intomasterfrom
feature/history-full-tool-rendering

Conversation

@dnouri
Copy link
Copy Markdown
Owner

@dnouri dnouri commented Mar 4, 2026

When a user resumes a session, the tool calls that were executed
previously ought to appear just as they did during the live
conversation — with headers, output, overlays, and toggles.
Showing only '[N tool calls]' discards the very context that makes
a session history useful.

This replaces the count-and-summarize approach with a result index
built in a single pass over the message vector. Each tool call is
then rendered through the same display-tool-start and
display-tool-end machinery used during streaming, so the history
and the live view are visually identical. Tool calls whose results
are absent (aborted sessions) render the header alone.

When a user resumes a session, the tool calls that were executed
previously ought to appear just as they did during the live
conversation — with headers, output, overlays, and toggles.
Showing only '[N tool calls]' discards the very context that makes
a session history useful.

This replaces the count-and-summarize approach with a result index
built in a single pass over the message vector.  Each tool call is
then rendered through the same display-tool-start and
display-tool-end machinery used during streaming, so the history
and the live view are visually identical.  Tool calls whose results
are absent (aborted sessions) render the header alone.
@dnouri dnouri merged commit 3d4510b into master Mar 4, 2026
9 checks passed
@dnouri dnouri deleted the feature/history-full-tool-rendering branch March 4, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant