Skip to content

fix(chat): minimal tool-call styling + breathing room before downstream content#286

Merged
blove merged 1 commit into
mainfrom
claude/tool-call-minimal
May 13, 2026
Merged

fix(chat): minimal tool-call styling + breathing room before downstream content#286
blove merged 1 commit into
mainfrom
claude/tool-call-minimal

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 13, 2026

Summary

Tool calls are an advanced-user signal that was visually competing with the actual rendered content (A2UI surfaces, markdown) inside assistant messages. This PR makes them quieter and gives downstream content room to breathe.

  • Tool name dimmed to muted color, 13px, weight 400 (was full-brightness body color, weight inherited)
  • Status pill is now monochrome muted regardless of state — dropped the saturated green (complete) and red (error) color overrides. Pill text shrinks to 10px and the icon shrinks to 10px
  • 2px left padding on the name to separate it from the trace chevron
  • chat-tool-calls host now contributes 20px bottom margin, giving the next sibling (A2UI surface, markdown, etc.) ~24px of clear space. Inter-group spacing inside tightens from 8px to 4px since the host carries the breathing room

Test plan

  • npx nx test chat — 615 tests pass (added a host-margin breathing-room assertion)
  • npx nx build chat
  • npx nx lint chat
  • npm run generate-api-docs
  • Visually confirm in the examples-chat app that the tool-call card looks subdued and an A2UI surface immediately below has visible separation

…am content

Tool calls are an advanced-user signal that competes with the actual
rendered content (A2UI surfaces, markdown) inside assistant messages.
Reduce their visual weight and add space below the group:

- Dim and shrink the tool name (muted color, 13px, weight 400)
- Replace saturated green/red status pill color with monochrome muted
  text regardless of status; trim pill font to 10px and icon to 10px
- Add 2px left padding on the name so it breathes from the trace chevron
- chat-tool-calls host now contributes 20px bottom margin so downstream
  content (e.g. rendered surface, markdown) gets clear separation; the
  inter-group spacing inside tightens to 4px since the host carries the
  breathing room
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cacheplane Building Building Preview, Comment May 13, 2026 3:30am

Request Review

@blove blove merged commit 6ce0471 into main May 13, 2026
13 of 14 checks passed
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