Skip to content

style(desktop): filled glyphs for in-thread tool icons - #43430

Merged
OutThisLife merged 3 commits into
mainfrom
bb/desktop-tool-codicons-filled
Jun 10, 2026
Merged

style(desktop): filled glyphs for in-thread tool icons#43430
OutThisLife merged 3 commits into
mainfrom
bb/desktop-tool-codicons-filled

Conversation

@OutThisLife

@OutThisLife OutThisLife commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • In-thread tool rows now render filled glyphs (terminal, file, search, globe, diff, edit, etc.) instead of thin outline codicons
  • Codicons are an outline icon font — an outline glyph has no fillable region, so stroke/fill tricks only bold the outline. Confirmed visually that even a 1px stroke never reads as filled
  • Adds ToolIcon (solid Phosphor "fill" SVG paths, MIT), keyed by the same names as TOOL_META, with a codicon fallback for any uncovered tool. Inlining path data mirrors the existing directive-text.tsx precedent
  • Scope is in-thread tool rows only; composer / sidebar / titlebar codicons are unchanged

Rider: click-to-edit fix

  • Cherry-picked db4e1f4f3 from feat(agent): coding-context posture across CLI/TUI/desktop/ACP #43316 (preserves authorship): sticky user bubbles parked under the titlebar's -webkit-app-region: drag strips, and Electron resolves drag regions at the compositor level (z-index / pointer-events don't apply), so clicking a stuck bubble dragged the window instead of opening the edit composer. The shared bubble base class now carves itself out with no-drag, with a runtime regression test.

Test plan

  • npm run type-check (apps/desktop)
  • vitest run tool-fallback-model.test.ts
  • vitest run --environment jsdom user-message-edit.test.tsx
  • Run a chat turn hitting terminal, read_file, search_files, web_search — leading glyphs should look solid/filled
  • Verify light + dark themes at conversation-tool size
  • Confirm composer/sidebar/titlebar icons remain outline
  • Click a stuck user bubble near the titlebar — opens the edit composer, doesn't drag the window

Outline codicons read too thin at conversation-tool scale; a scoped
filled modifier thickens tool-row and code-card icons without changing
icon semantics elsewhere in the shell.
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

🔎 Lint report: bb/desktop-tool-codicons-filled vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 10689 on HEAD, 10689 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 5592 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@alt-glitch alt-glitch added type/refactor Code restructuring, no behavior change P3 Low — cosmetic, nice to have labels Jun 10, 2026
Replace the earlier text-stroke approach (which only bolds outline
codicons — a font glyph has no fillable region) with dedicated solid
SVG glyphs for tool rows. Adds ToolIcon, keyed by the same names as
TOOL_META, with a codicon fallback for uncovered tools.
@OutThisLife OutThisLife changed the title style(desktop): filled codicons for in-thread tool icons style(desktop): filled glyphs for in-thread tool icons Jun 10, 2026
Sticky human bubbles park at --sticky-human-top (~4px), sliding under the
titlebar's -webkit-app-region:drag strips. Electron resolves drag regions at
the compositor level — z-index and pointer-events don't apply — so clicking a
stuck bubble dragged the window instead of opening the edit composer. Add
no-drag to the shared bubble base class (read-only bubble + edit composer).

Covers the runtime side with a test: clicking a user bubble opens the inline
edit composer through both the incremental external-store runtime and the
stock one.

(cherry picked from commit db4e1f4)
@OutThisLife
OutThisLife enabled auto-merge June 10, 2026 08:48
@OutThisLife
OutThisLife merged commit f222bd2 into main Jun 10, 2026
20 checks passed
@OutThisLife
OutThisLife deleted the bb/desktop-tool-codicons-filled branch June 10, 2026 08:52
alt-glitch pushed a commit that referenced this pull request Jun 14, 2026
…filled

style(desktop): filled glyphs for in-thread tool icons
T02200059 pushed a commit to T02200059/hermes-agent that referenced this pull request Jun 18, 2026
…ol-codicons-filled

style(desktop): filled glyphs for in-thread tool icons
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…ol-codicons-filled

style(desktop): filled glyphs for in-thread tool icons
santhreal pushed a commit to santhreal/hermes-agent that referenced this pull request Jul 13, 2026
…ol-codicons-filled

style(desktop): filled glyphs for in-thread tool icons
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
…ol-codicons-filled

style(desktop): filled glyphs for in-thread tool icons
leewenjie pushed a commit to leewenjie/hermes-agent that referenced this pull request Aug 7, 2026
…ol-codicons-filled

style(desktop): filled glyphs for in-thread tool icons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants