feat(tui): coalesce streamed tool calls into one live block + concise summary - #23
Merged
Conversation
… summary
Before: every provider TOOL_CALL rendered as its own transcript line with the
full command, so a big shell command wrapped over 3 lines and repeated — noisy
and hard to read.
Now, following the Claude Code "⏺ tool(arg)" pattern (and grok-build's compact
scrollback / Orca's status-oriented display):
- Consecutive same-type tool calls stream into ONE live block above the input
("⏺ command_execution ×3 <latest cmd, one line>"), updated in place.
- When the group closes (a non-tool event, a new tool type, or the run ending),
a single concise summary lands in the scrollback ("⏺ command_execution ·
4 calls"; a lone call keeps its truncated command).
- The command is collapsed to one line and truncated — no more wrap-spam. Glyph
and tool name in accent, args/count dimmed.
5 tests cover coalescing, the summary flush (non-tool event / new type / run
end), single-call detail, and one-line truncation. 364 tests pass, ruff clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Reworks how streamed provider tool-calls are shown, based on how industry tools display agent activity (Claude Code
⏺ tool(arg), grok-build's compact scrollback, Orca's status-oriented display).Before: each
TOOL_CALL= its own transcript line with the full command → a big shell command wrapped over 3 lines and repeated.After:
⏺ command_execution ×3 <latest cmd, one line>, updated in place.⏺ command_execution · 4 calls(a lone call keeps its truncated command).Verification
5 new tests (coalescing, summary flush on non-tool event / new type / run end, single-call detail, one-line truncation). 364 tests pass, ruff clean. Captured render confirms the live block + committed summaries.
🤖 Generated with Claude Code