Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
fix(grok): ship the official mark, inlined so it follows the theme
enes6613a5899a5e
diff --git a/docs/grok-agent.md b/docs/grok-agent.mdindex be4380132..025086567 100644--- a/docs/grok-agent.md+++ b/docs/grok-agent.md@@ -315,7 +315,7 @@ ai-name / comments).| Context links | **not implemented for grok** (§1) | not wired at all (`initContextLink` is never called from `src/server`) | N/A || Context meter | **not implemented for grok** (§1) | idem | idem || Managed accounts | **deliberately N/A** — accounts are a claude config-dir mechanism. `createAgentNode` never stamps an `accountId` onto a non-claude node, and `CLAUDE_CONFIG_DIR` is irrelevant to `~/.grok/hooks`. A grok node in a managed-account project must still report status (checklist 7) | idem | idem |-| Brand logo | `AGENT_LOGO.grok` → `renderer/assets/grok.svg` — a **placeholder monogram** (§8) | same asset, for free | the phone draws its own icons — **follow-up owed** |+| Brand logo | the **official** xAI mark, INLINED in `agentIcons.tsx` as `GrokMark` rather than shipped as an asset — it is a single monochrome path, so `fill="currentColor"` inherits the label colour and is correct in both themes. The other four marks are multi-colour and stay `<img src>` assets, where `currentColor` cannot inherit | same component, for free | the phone draws its own icons — **follow-up owed** || Notch mascot | yes — its own mid-slate (`#8494a8`) critter through the shared `buildQuadrantSprite`; the CSS rule block is *shared* with claude's, so the geometry cannot drift | **N/A** — there is no notch there; the canvas badge mascot works | the phone has its own SwiftUI renderer || Fullscreen TUI setting | **N/A** — grok runs full-screen by default, so `claude-tui.ts` has no grok analogue | idem | idem || Deterministic hook-reply approvals (phone Approve/Deny) | **claude-only** — `pty-manager` arms `NODETERM_PERM_WAIT_SECS` only for claude, and grok does not subscribe `PermissionRequest` at all | idem | a grok node's approvals are not answerable from the phone |@@ -364,11 +364,14 @@ ai-name / comments).while the skill is undiscoverable. **If grok does not list our skills, this changes shape** (amarker block into grok's own instruction file, as codex/gemini/opencode get) and should bere-planned, not forced.-8. **`src/renderer/assets/grok.svg` is a placeholder monogram, not the official Grok/xAI mark.** It- is a neutral "G" in the app's own line-icon style, deliberately *not* a lookalike, and it carries- an XML comment saying so. Replace it with the official asset from an official press/brand page, at- that asset's published proportions. It uses an explicit `#64748b` rather than `currentColor`- because `agentIcons.tsx` renders these as `<img>` URLs, where `currentColor` cannot inherit.+8. ~~The brand logo is a placeholder.~~ **CLOSED.** The official xAI mark now ships, inlined in+ `agentIcons.tsx` as `GrokMark` (`fill="currentColor"`, the mark's own non-square 512×492 viewBox+ so it is never stretched). Inlining is what makes it theme-correct: the mark is a single+ monochrome path and the vendor's own usage is one ink that flips with the background, which+ `currentColor` reproduces exactly. As an `<img src>` it could not — an SVG in an `<img>` is an+ isolated document, so `currentColor` resolves against nothing and paints black, invisible on the+ default dark theme. That is also why the other four marks, which are multi-colour and carry their+ own fills, remain assets.9. **The local `$GROK_HOME` is read from an environment a GUI app does not have.** `grokHomeDir()`defaults from `process.env`, but a desktop app launched from Finder/Dock/a `.desktop` entry neversourced the user's shell rc — while the grok CLI, started by the shell inside a tmux pane, did. For@@ -540,4 +543,11 @@ Two traps with no code fix — appended so the numbering above stays stablelike codex, a grok node goes green while it is still waiting on you; if it does not, setting theflag would pin NEEDS YOU on a node that genuinely finished. Report which happens — a green nodeover an open question means grok joins the `awaitingInput` path, one line in `normalizeGrok`.+34. **The Grok mark, at 16 px, in BOTH themes.** It is the official mark inlined with+ `fill="currentColor"` (§8.8), so readability is guaranteed by construction — it takes the label+ colour, black-on-light and white-on-dark, the way xAI uses it. What is *not* guaranteed is+ legibility at that size: it is a fine diagonal glyph, and thin strokes can turn to mush where the+ other four marks (heavier, multi-colour) do not. Look at the pane submenu, the Dock `+`, the+ command palette and Settings → Agents, and flip the theme. If it reads as a smudge, the fix is a+ size-specific viewBox nudge, not a colour change.```diff --git a/src/renderer/assets/grok.svg b/src/renderer/assets/grok.svgdeleted file mode 100644index c0b09f145..000000000--- a/src/renderer/assets/grok.svg+++ /dev/null@@ -1,13 +0,0 @@-<!--- PLACEHOLDER — this is NOT the official Grok / xAI mark.-- It is a neutral "G" monogram drawn in this app's own line-icon style (16x16 display, 24x24- viewBox, 1.8 stroke, round caps — see src/renderer/components/icons.tsx). Replace it with the- official Grok asset from an official press/brand page, kept at its published proportions, when- one is available. Do not touch it up into something that resembles the official mark.-- Colour is explicit (slate-500, the same #64748b as AGENT_CONFIG.grok) rather than currentColor,- because agentIcons.tsx loads this file as a URL into an <img>, where currentColor cannot- inherit the surrounding text colour (claude.svg / opencode.svg carry explicit colours too).--->-<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#64748b" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><title>Grok (placeholder monogram)</title><path d="M18 8.6A7 7 0 1 0 18 15.4V12h-4.4"/></svg>diff --git a/src/renderer/lib/agentIcons.tsx b/src/renderer/lib/agentIcons.tsxindex ac7034f1b..7051c0045 100644--- a/src/renderer/lib/agentIcons.tsx+++ b/src/renderer/lib/agentIcons.tsx@@ -3,20 +3,57 @@ import claudeIcon from '../assets/claude.svg'import codexIcon from '../assets/codex-color.svg'import geminiIcon from '../assets/gemini-color.svg'import opencodeIcon from '../assets/opencode.svg'-import grokIcon from '../assets/grok.svg'import { IconTerminal } from '../components/icons'// Brand logo per builtin agent; custom/unknown agents fall back to the terminal glyph.+//+// These four are MULTI-COLOUR marks, so each carries its own fills and is loaded as an `<img src>`+// (Vite hands us a URL). An SVG loaded that way is an isolated document — `currentColor` has nothing+// to inherit there, which is why none of these assets uses it. Grok is the exception and is handled+// below: its mark is monochrome, so it is inlined instead.const AGENT_LOGO: Partial<Record<string, string>> = {claude: claudeIcon,codex: codexIcon,gemini: geminiIcon,- opencode: opencodeIcon,- // Placeholder monogram, not the official Grok mark — see the comment in assets/grok.svg.- grok: grokIcon+ opencode: opencodeIcon+}++/**+ * The official Grok mark (xAI), inlined rather than shipped as an asset.+ *+ * It is a SINGLE monochrome path, and the vendor's own usage is one ink that flips with the+ * background — black on light, white on dark. Inlining is what buys us that: `fill="currentColor"`+ * inherits the surrounding label colour, so the mark is correct in both themes with one copy and no+ * arbitrary recolour. As an `<img src>` it could not (an SVG in an `<img>` is an isolated document,+ * so `currentColor` resolves against nothing and paints black — invisible on the dark theme, which+ * is the default).+ *+ * `viewBox` is the mark's own 512×492, NOT square: with the default `preserveAspectRatio` the glyph+ * scales to fit a `size`×`size` box and stays centred, so it is never stretched. Do not "tidy" the+ * viewBox to 512×512.+ */+function GrokMark({ size }: { size: number }): React.JSX.Element {+ return (+ <svg+ width={size}+ height={size}+ viewBox="0 0 512 492"+ fill="currentColor"+ xmlns="http://www.w3.org/2000/svg"+ aria-hidden+ style={{ display: 'block' }}+ >+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M197.76 315.52l170.197-125.803c8.342-6.186 20.267-3.776 24.256 5.803 20.907 50.539 11.563 111.253-30.08 152.939-41.621 41.685-99.562 50.816-152.512 29.994l-57.834 26.816c82.965 56.768 183.701 42.731 246.656-20.33 49.941-50.006 65.408-118.166 50.944-179.627l.128.149c-20.971-90.282 5.162-126.378 58.666-200.17 1.28-1.75 2.56-3.499 3.819-5.291l-70.421 70.507v-.214l-243.883 245.27m-35.072 30.528c-59.563-56.96-49.28-145.088 1.515-195.926 37.568-37.61 99.136-52.97 152.874-30.4l57.707-26.666a166.554 166.554 0 00-39.019-21.334 191.467 191.467 0 00-208.042 41.942c-54.038 54.101-71.04 137.301-41.856 208.298 21.802 53.056-13.931 90.582-49.92 128.47C23.104 463.915 10.304 477.333 0 491.541l162.56-145.386"+ />+ </svg>+ )}export function AgentIcon({ agentId, size = 16 }: { agentId: AgentId; size?: number }): React.JSX.Element {+ if (agentId === 'grok') return <GrokMark size={size} />const src = AGENT_LOGO[agentId]if (src) {return <img src={src} width={size} height={size} alt="" style={{ display: 'block' }} />