Skip to content

Studio: remove unused image assets - #14967

Merged
shimmyshimmer merged 2 commits into
mainfrom
studio-unused-assets
Oct 23, 2026
Merged

shimmyshimmer merged 2 commits into
mainfrom
studio-unused-assets

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes 22 image files that nothing in the repo loads, on any surface: the Studio web UI, the Desktop app (macOS, Windows, Linux), the installers, Docker and the wheel. No user-visible change.

All but react.svg ship today: Vite copies public/ into frontend/dist/, which goes into the wheel, the Desktop bundles and the Docker images. Against the published unsloth-2026.10.7 wheel (30.95 MB) this takes 2.40 MB off the download.

Removed:

  • studio/frontend/public/Sloth emojis/: 16 stickers that are not in the profile avatar list (sloth-avatars.ts), the chat greeting, the login or 404 screens, or the JupyterLab sticker list in docker/jupyter/install_sloth_stickers.py:
    241024 Sloth Drink Jus.png, 251008 Sloth Pin.png, FO2C6766BA42 Sloth Gift.png, FO71A40FA5581 Sloth and Llama.png, Sloth w Gameboy Confetti no Logo.png, Sloth w PC Confetti no Logo.png, Sloth w PC no Logo.png, UnSloth Eat GPU Mouth.png, UnSloth Eat GPU.png, UnSloth Laptop.png, large sloth laugh.png, sloth huglove large33.png, sloth pc emoji.png, sloth rounded.png, sloth w pc transparent.png, sloth with gameboy.png
  • studio/frontend/public/hub/profile/logo/Qwen.svg: the Hub uses qwen.png for Qwen
  • studio/frontend/public/provider-logos/misc/perplexity.png
  • studio/frontend/public/logotext.png
  • studio/frontend/public/vite.svg and studio/frontend/src/assets/react.svg: Vite template leftovers; the favicon is favicon.png
  • studio/src-tauri/icons/tray-icon.png: the 18 px tray icon. The tray embeds [email protected] on macOS, tray-icon-color.png on Windows and Linux, and tray-icon-dark.png / tray-icon-light.png for the macOS appearance switch; include_image! takes an exact path, so the 1x file was never picked up

How unused was established

  • Every tracked file was searched for each asset's file name, raw and URL-encoded, with word boundaries so Hellix-SemiBold.woff does not count as a hit for .woff2. That covers the frontend, backend, tauri*.conf.json (base, macOS, Linux, Windows), NSIS / AppImage / dmg packaging, install.sh, install.ps1, Dockerfiles, workflows, pyproject.toml and MANIFEST.in.
  • Checked for paths built at runtime (template literals over public/ folders, import.meta.glob, directory listings): none reach these files.
  • Saved profile avatars: the avatar picker list has never offered any of the removed stickers (full git log -p of sloth-avatars.ts), so no stored avatarDataUrl can point at one.
  • Open PRs: grepped the heads of all open same-repo PRs. The only hits (sloth w pc transparent.png in studio: KV preemption by slot checkpointing, an experiment beside #10301 #10346, sloth rounded.png in Add Qwen3-4B GRPO rollout engine benchmarks (vLLM vs transformers CB) #5108) are old main code those branches inherited from their merge base; neither PR touches studio/frontend, and main already dropped both usages (Studio: open chat HTML in the Browser and remove Canvas #12804 removed the Canvas surface).
  • Other unslothai repos: GitHub code search for each name returns nothing.

Deliberately kept

  • images/: about 20 of its files are not referenced in this repo, but the folder is hotlinked from outside it. The notebooks repo links Merge.png, Assistant.png, Terminal_Type.png, Where_Terminal.png, start free finetune button.png and Documentation Button.png; Hugging Face model cards link buy me a coffee button.png (88 of 737 sampled unsloth cards), among others; older READMEs still shown on PyPI release pages link the rest. Removing any of them would break those pages.

Verification

  • studio/frontend: npm run typecheck clean, npm test 13730 passed / 0 failed, npm run build clean; the built dist/ references none of the removed names. npm run biome:check errors are the existing ones on main (non-blocking in CI) and biome does not read image files.
  • tests/studio/test_pwa_manifest.py, tests/test_installer_shortcut_icons.py, tests/studio/install/test_package_discovery.py: 19 passed, 2 skipped.
  • Staging CI across macOS / Windows / Linux with the Playwright leg (link below once green).

Not run from this host: a Desktop build. The Tauri bundle config and the tray include_image! paths do not reference the removed files.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 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-10-23T10:08:45.335736Z 7b61ad8 Manual request
🔒 Security Review ✅ Completed 2026-10-23T09:39:39.345944Z 86ca882 Manual request
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 86ca88287b

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 7b61ad8c81

ℹ️ 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".

@shimmyshimmer
shimmyshimmer merged commit 00b97e0 into main Oct 23, 2026
5 of 45 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-unused-assets branch October 23, 2026 10:11
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