Skip to content

Draw each step by what it uses, pass on MCP server icons, and keep a run working between steps - #35

Merged
andyjmorgan merged 8 commits into
mainfrom
claude/tool-icons
Dec 1, 2026
Merged

andyjmorgan merged 8 commits into
mainfrom
claude/tool-icons

Conversation

@andyjmorgan

Copy link
Copy Markdown
Owner

Follow-up to #30.

  • Icons by program. A command is drawn by what it runs: Python, Git, GitHub and Go marks (Simple Icons, CC0, tree-shaken to the four used), text search, reading, finding, packages, containers, network; a terminal otherwise. Claude's built-in Read, Grep, Glob and WebFetch match their command counterparts. Steps that look alike count together on the run line. The expanded step rows use the same icons.
  • MCP server icons. Servers send their icons with each tool result under _meta["io.modelcontextprotocol/serverInfo"]; Claude Code and Codex both pass it through. The host fetches a server's icon once in the background (https only, public addresses only, also across redirects; image types only; 24 KB at most), and attaches it as a data URI to the server's tool steps when it fits the item body limit. The web client remembers icons per conversation, so a server's earlier steps get it too. Obsidian and Telegram send icons today.
  • A run stays working between steps. It counts as working while its turn runs and nothing has come after it, so it no longer flips to "Worked" between tool calls, and the session's separate "Working…" line stays away while the run line shows it.
  • The cheeky line carries across a run split by a message sent mid-turn, instead of being struck out and retyped.
  • Three more lines (129 in all). A gallery row shows every icon.

Tests: Go tests for picking, fetching (including the private-address refusal), the body-size guard and the Claude Code path; unit tests for program detection and icon choice; e2e 139/139 in Chromium. Codex review addressed through five rounds; the last fix (queued message vs. the Working line) was not re-reviewed.

🤖 Generated with Claude Code

andyjmorgan and others added 8 commits December 1, 2026 15:07
…run working between steps

A command is drawn by its program: Python, Git, GitHub and Go marks
(Simple Icons, CC0), text search, packages, containers and the network,
else a terminal. Steps that look alike count together in the run line.

An MCP server can send its icons with its tool results under _meta.
Claude Code and Codex both pass that through. The host fetches a
server's icon once (https, image types only, 64 KB at most) and hands
it to the web client as a data URI on the server's tool steps, since
the client only shows images it is given.

A run now counts as working for as long as its turn runs and nothing
has come after it, so the line no longer flips to Worked between steps
and the session's own Working line stays away. A run split by a message
sent mid-turn carries its cheeky line on to the next run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd find each turn's latest run across queued messages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a queued message, and add three more lines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d did it

Read, cat, head and tail are an eye; Glob, ls, find and tree a folder
search; Grep joins rg and grep; WebFetch joins curl and web search.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andyjmorgan
andyjmorgan merged commit 9617f33 into main Dec 1, 2026
7 of 8 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