Skip to content

[Bug]: Post-launch-added agent icons (hermes/pi/amp/fx/qwen/grok) don't render — never bundled, only CDN-fetched #118

Closed

Description

@gsvprharsha

What happens

Agents added to config/agents.json after the initial ship — Hermes, Pi, Amp, Fx (Factory), Qwen, Grok — show the TerminalSquare fallback glyph instead of their logo across the UI (NewSessionMenu, AgentTabs, DynamicIsland, Automations, BroadcastDialog, etc.). The original nine (agy, claude, cline, codex, copilot, cursor, gemini, goose, opencode) render correctly.

Root cause

Icons for the later-added agents were only committed to config/agent-icons/ in the repo. They were never:

  1. Copied into src/assets/agent-icons/ (the Vite-imported bundle directory).
  2. Registered in ICON_ASSETS in src/lib/agentRegistry.ts:30-40.

The manifest field "icon" for these agents is a filename (e.g. "hermes.svg", "amp.svg"), whereas the original nine use a plain key (e.g. "claude", "gemini"). agentRegistry.ts handles the two shapes differently:

  • Plain key → resolved via ICON_ASSETS[icon] → Vite-imported SVG data URL, bundled into the app, works offline instantly.
  • Filename → falls through remoteIconUrl() → https://cdn.jsdelivr.net/gh/tempestai-dev/tempest@main/config/agent-icons/<filename> → fetched at runtime, cached to localStorage under tempest-agent-icon:<id>.

So the later icons only render when all of the following hold:

  • Network is available on first launch (or later, when the manifest fetch retries).
  • jsDelivr has cached the file for @main (can lag hours after commit).
  • The fetch() in remoteAgents.ts:32 succeeds and the blob is ≤512 KB.
  • localStorage write succeeds (setIconDataUrl).

Any failure at first launch, and the icon stays as the TerminalSquare fallback until a subsequent successful fetch. Users behind restrictive networks, offline first-runs, or before jsDelivr propagation see no logos for the newer agents.

Steps to reproduce

  1. Open Tempest 0.1.22 with cleared localStorage (or a fresh install with no network).
  2. Open the NewSessionMenu — the newer agents render with TerminalSquare instead of their logo.
  3. localStorage.getItem('tempest-agent-icon:hermes') (or pi, amp, fx, qwen, grok) returns null.
  4. Compare with Claude/Codex/etc. which render from bundled SVGs immediately, regardless of network.

Fix

Treat the newer icons the same way as the original nine — bundle them:

  1. Copy hermes.svg, pi.svg, amp.svg, fx.svg, qwen.svg, grok.svg from config/agent-icons/ to src/assets/agent-icons/.
  2. Add each as an import at the top of src/lib/agentRegistry.ts.
  3. Register in ICON_ASSETS — key must match the manifest's icon field.
  4. Either:
    • Change config/agents.json icon values to plain keys ("hermes" instead of "hermes.svg"), or
    • Keep the filenames as keys in ICON_ASSETS (map "hermes.svg" → hermesSrc). Less clean, avoids touching the signed manifest.

Once bundled, they render instantly, offline, on first launch — same guarantee as the original nine. The jsDelivr fallback stays for any FUTURE agents that ship via signed remote manifest between releases.

Follow-up

Add a build-time check in scripts/ that greps every "icon" value in config/agents.json and asserts either (a) it's a key in ICON_ASSETS, or (b) the corresponding file exists in config/agent-icons/. Prevents the same drift on the next new agent.

Tempest version

0.1.22

Operating system

All

Activity

  1. added
    bug
    on Sep 18, 2026
  2. added a commit that references this issue on Nov 22, 2026
    58350d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions