feat: sessions outline names tools on tool-only turns (v0.20.0)#50
Merged
Conversation
A pure tool-call assistant turn -- the agent acted without narrating -- rendered a content-free "tools..." in the sessions rail, dead exactly when the agent was doing the work. It now names what it did in the conversation folds' own vocabulary: Bash, Read, skill ccx, mcp github, Task -- deduped and capped at three with a +N remainder. A thinking-only turn reads "thinking...", a genuinely empty one "(no text)". The rail should narrate the agent's actions; that is the whole point of the trace. turnToolLabel in src/ui.ts; two dom-stub tests pin the single-tool and multi-tool-capped cases. CHANGELOG 0.20.0 also records the ui.md/TASTE.md reconciliation merged in #49 -- 0.19.0 was the last npm release, so this is the release unit that ships both. Co-Authored-By: Claude Opus 4.8 (1M context) <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.
What
The sessions rail went content-free exactly when the agent did tool work: a pure tool-call assistant turn (no narration text) rendered a dead
tools…. It now names what the agent did.Before:
turn07 tools…After:
turn07 Bash/turn07 Read, Edit, Bash, +1How
turnToolLabel(turn)in src/ui.ts maps each tool_use block to the conversation folds' own vocabulary -- subagent spawns toTask,Skilltoskill · <name>,mcp__*tomcp · <server>, everything else to the plain tool name -- deduped, capped at three with a+Nremainder.!textfallback in the outline now prefers that label; a thinking-only turn readsthinking…, a genuinely empty one(no text)-- no more asserting "tools" when there were none.Ships in src/ui.ts, so users get the improved rendering (unlike the docs-only #49). CHANGELOG 0.20.0 records both this and the ui.md/TASTE.md reconciliation from #49, since 0.19.0 was the last npm release.
479 tests pass; binary compiles.
🤖 Generated with Claude Code