Keep each tool's output with the tool that produced it#169
Merged
Conversation
When the assistant starts several tools in the same turn, the Emacs frontend should not make the user guess which output belongs to which call. Each tool now keeps its own preview, live output, and final result from start to finish. If the assistant revises the set of pending tool calls while it is still composing the message, stale previews disappear instead of lingering in the buffer. This also fixes a quieter kind of damage: once a tool had finished, markdown fontification could still mangle its header. Finished tool headers now remain intact, and tool blocks keep a stable order even when previewed calls and execution-only calls are interleaved. The result is a transcript that stays readable, navigable, and trustworthy under parallel tool use.
1205980 to
ba56446
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the assistant starts several tools in the same turn, the Emacs frontend should not make the user guess which output belongs to which call. Each tool now keeps its own preview, live output, and final result from start to finish. If the assistant revises the set of pending tool calls while it is still composing the message, stale previews disappear instead of lingering in the buffer.
This also fixes a quieter kind of damage: once a tool had finished, markdown fontification could still mangle its header. Finished tool headers now remain intact, and tool blocks keep a stable order even when previewed calls and execution-only calls are interleaved. The result is a transcript that stays readable, navigable, and trustworthy under parallel tool use.