Skip to content

Studio: use copy-01 for every copy button - #11395

Merged
shimmyshimmer merged 1 commit into
mainfrom
copy-icon-consistency
Sep 21, 2026
Merged

shimmyshimmer merged 1 commit into
mainfrom
copy-icon-consistency

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

Every copy button in Studio was supposed to be the Hugeicons copy-01 stroke-rounded mark, but six of them were still drawing lucide's copy glyph. The two shapes are close enough that it reads as a rendering bug rather than a deliberate difference: copy a message and you get one mark, copy the code block directly under it and you get another.

This points all of them at copy-01.

Changed

File Button
components/assistant-ui/image.tsx Copy image
components/assistant-ui/reasoning.tsx Copy reasoning
components/assistant-ui/tool-code-cell.tsx Code cell copy
components/assistant-ui/tool-ui-code-execution.tsx Code execution result copy
features/chat/artifacts/artifact-surface.tsx Copy canvas HTML
features/settings/tabs/resources-tab.tsx Copy models folder path
components/assistant-ui/markdown-text.tsx Markdown table copy

The last one is not ours to swap directly. Streamdown renders the table controls itself and ships its own copy glyph, so it goes through the icons prop instead. strokeWidth is dropped rather than forwarded there because SVG types it string | number while HugeiconsIcon wants a number, and the icon set's own 1.5 is already what the rest of the app shows.

Left alone on purpose

components/tauri/window-titlebar.tsx still imports lucide's Copy. It is rotated 180 degrees and used as the restore-window control in the desktop titlebar, so it is window chrome that happens to reuse the copy shape, not a copy affordance. Swapping it would change the titlebar for no reason. After this PR it is the only lucide copy glyph left in the bundle, and it lands in the settings chunk alongside the other titlebar icons (arrow-right, minus, square, x).

Testing

  • npm run typecheck passes
  • node --experimental-strip-types --test over the copy and icon suites (copy-to-clipboard, thread-fast-copy, chrome-icon-button-consistency, composer-icon-alignment): 66 pass, 0 fail
  • npm run build succeeds, and the built bundles carry the copy-01 geometry with no lucide copy glyph outside the titlebar chunk

Note on icon version

We pin @hugeicons/core-free-icons at 4.1.1. Its copy-01 geometry is slightly different from what hugeicons.com serves today on 4.3.4, same two rounded squares with slightly different offsets. This PR uses the pinned package so every copy button matches the ones already shipping, rather than forking the geometry for seven call sites. If we want the newer shape it should be a package bump in its own PR.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-21T02:33:18.409706Z 480e975 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 10f6fbb83a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Six copy affordances were still on the lucide copy glyph while the rest of
the app had moved to Hugeicons copy-01, so the mark changed shape depending
on which button you hit. Point them all at copy-01, and override Streamdown's
own copy glyph on the markdown table controls while we are here.

The lucide copy import left in window-titlebar.tsx is the restore-window
control, not a copy action, so it stays.
@shimmyshimmer
shimmyshimmer merged commit 915fe8f into main Sep 21, 2026
40 of 46 checks passed
@shimmyshimmer
shimmyshimmer deleted the copy-icon-consistency branch September 21, 2026 02:31
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
Six copy affordances were still on the lucide copy glyph while the rest of
the app had moved to Hugeicons copy-01, so the mark changed shape depending
on which button you hit. Point them all at copy-01, and override Streamdown's
own copy glyph on the markdown table controls while we are here.

The lucide copy import left in window-titlebar.tsx is the restore-window
control, not a copy action, so it stays.
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