Skip to content

Keep each tool's output with the tool that produced it#169

Merged
dnouri merged 1 commit intomasterfrom
better-parallel-tool-calls
Mar 17, 2026
Merged

Keep each tool's output with the tool that produced it#169
dnouri merged 1 commit intomasterfrom
better-parallel-tool-calls

Conversation

@dnouri
Copy link
Copy Markdown
Owner

@dnouri dnouri commented Mar 17, 2026

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.

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.
@dnouri dnouri force-pushed the better-parallel-tool-calls branch from 1205980 to ba56446 Compare March 17, 2026 11:14
@dnouri dnouri changed the title Teach parallel tool calls to stay in their own lanes Keep each tool's output with the tool that produced it Mar 17, 2026
@dnouri dnouri merged commit 3f6ced9 into master Mar 17, 2026
11 of 12 checks passed
@dnouri dnouri deleted the better-parallel-tool-calls branch March 17, 2026 11:23
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