feat: group consecutive tool calls with verb labels and improved UI#94
Draft
feat: group consecutive tool calls with verb labels and improved UI#94
Conversation
Consecutive same-type tool calls collapse into expandable groups
("Wrote 3 files", "Ran 2 commands") with animated slide-in transition.
Solo items show past-tense verbs ("Wrote foo.html", "Read", "Ran").
Extract ToolChainCards and toolLabelUtils into dedicated files.
Make tool calls full-width, hide result labels, and add context-aware
spacing between tool and prose sections.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… filenames - Distribute artifact candidates per tool call instead of single primary host - Solo tool calls: animated expand with layout transitions for verb/filename in trigger, slide-in content with left border matching grouped style - Grouped items: show just filename with inline open-file arrow link - Extract filenames from tool name, args path keys, or result text - Use "Edited" verb for write operations, inline ArrowUpRight icon for open - Artifact actions render as clickable label+arrow, not separate link below Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Grouping now keys on both tool type and status, so failed or executing calls are never collapsed with completed ones. This prevents "Edited 2 files" from hiding a failure in the group. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Only show the filename label below expanded content when there's a filename detail or artifact candidate. Labels like "Ran" or "Delegate" that just repeat the trigger text are now hidden. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ction - toolLabelUtils: 20 tests covering getToolType, getToolDetail, getToolVerb, getToolLabel, and extractFileDetail (from name, args, and result text) - MessageBubble: groups consecutive same-type calls, splits by outcome, verb labels with filenames, filename extraction from args path keys - ToolCallAdapter: redundant label hidden when no detail, filename shown below content when displayDetail is provided Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7 tasks
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.
Summary
ToolChainCardsandtoolLabelUtilsinto dedicated filesScreen.Recording.2026-04-03.at.9.55.35.AM-compressed.mp4
Test plan
🤖 Generated with Claude Code