Skip to content

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.

fix(minimap): restore the default look's status strokes

iceclatterWTdbd7bfd947ab
diff --git a/CLAUDE.md b/CLAUDE.md
index 903eca058..de3cdbf3b 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -3687,8 +3687,11 @@ tokens `--danger --warn --caution --success --agent-working`, which the light th
use `color-mix`.
- **Git status colours have ONE table**, `renderer/lib/gitStatusColors.ts`, used by Source Control
and the history commit list; an unknown status draws in `--text`.
-- **The minimap strokes read the same roles as the node glows**; they used to be crossed (working
- yellow, unread clay). The palette test pins canvas glow = minimap stroke = minimap halo per state.
+- **Minimap strokes are their own tokens, `--mm-working|attention|unread`.** The default look keeps
+ its map language exactly (amber working, red needs-you, CLAY unread) on purpose: an uncoloured
+ node's fallback stroke is the accent blue, so an accent "unread" would vanish into the map (the
+ comment on `nodeStrokeColor` in Canvas.tsx). Under Liquid Glass the tokens map to the state roles,
+ since node fills there are neutral ink and nothing can clash. The palette test pins both.
- **Left as-is on purpose:** agent brand colours (`AGENT_CONFIG`) on Claude-identity surfaces (the
subagent node, the usage pill icon, the mascot), the node colour swatches (`node-colors.ts` is an
allowlist — stored project colours must stay valid), node-kind default colours (persisted into
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index ba1efb33d..c2d8c426b 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -977,15 +977,22 @@ function StatusAwareMiniMap({ onNodeDoubleClick }: { onNodeDoubleClick: (node: N
},
[onNodeDoubleClick]
)
- // Status strokes read the SAME role tokens as the node glows (styles.css --state-*), so the map
- // and the canvas cannot disagree; the classes below add the minimap-scale glow/pulse. Unread
- // also pulses a thicker stroke, which keeps it apart from an uncoloured node's accent stroke.
+ // Status language matches the canvas glows/badges: amber = working, red = needs you,
+ // clay = unread. The classes below add the minimap-scale glow/pulse (styles.css).
+ //
+ // Unread is CLAY (#d97757) — the agent-hook colour the RUNNING badge and the node's working glow
+ // already use — and not the accent blue it used to be: blue is also the fallback stroke for a
+ // node that carries no colour of its own, so "finished while you were away" was painted the
+ // exact shade as "nothing to report" and vanished into the map.
+ //
+ // The colours are the --mm-* tokens (styles.css): exactly the above in the default look, the
+ // state roles under Liquid Glass, whose neutral node fills leave nothing for them to clash with.
const nodeStrokeColor = useCallback(
(n: Node): string => {
const st = statusById[n.id]
- if (st?.state === 'working') return 'var(--state-working)'
- if (st?.state === 'waiting' || st?.state === 'blocked') return 'var(--state-attention)'
- if (st?.unread) return 'var(--state-unread)'
+ if (st?.state === 'working') return 'var(--mm-working)'
+ if (st?.state === 'waiting' || st?.state === 'blocked') return 'var(--mm-attention)'
+ if (st?.unread) return 'var(--mm-unread)'
return (n.data as { color?: string })?.color ?? '#0a84ff'
},
[statusById]
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index a61fc323f..5fe789f4b 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -92,6 +92,13 @@
--git-deleted: var(--danger);
--git-renamed: var(--sys-purple);
--git-conflict: var(--sys-teal);
+ /* Minimap status strokes. The default look keeps its own map language — amber working, red needs
+ you, clay unread — because an uncoloured node's fallback stroke is the accent blue, and an
+ accent-blue "unread" would vanish among them (see nodeStrokeColor in Canvas.tsx). Liquid Glass
+ maps them to the state roles: its node fills are neutral ink, so there is nothing to clash with. */
+ --mm-working: #ffd60a;
+ --mm-attention: #ff453a;
+ --mm-unread: #d97757;
/* THE CANVAS. Deliberately blacker than `--bg` in dark — the nodes are the content and the
field behind them recedes. In light it has to go the other way, off-white and slightly
@@ -285,6 +292,9 @@
--sys-brown: #a2845e;
--sys-gray: #8e8e93;
--orange-text: #a85c00;
+ --mm-working: #ffd60a;
+ --mm-attention: #ff453a;
+ --mm-unread: #d97757;
--pink-text: #d30f45;
/* The glows always drew the dark clay, in both themes. */
--state-working: #d97757;
@@ -6973,8 +6983,8 @@ button.group-node__setup:disabled {
box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));
}
-/* Minimap-scale status glow: the SAME roles as the node glows (--state-working /
- --state-attention / --state-unread), so the map and the canvas cannot disagree. A static drop-shadow provides the halo; only
+/* Minimap-scale status glow (amber working / red needs-you / clay unread in the default look; the
+ state roles under Liquid Glass — see the --mm-* tokens). A static drop-shadow provides the halo; only
stroke-opacity animates (cheap on tiny svg rects), cadence matching each canvas glow. */
.minimap .mm-working,
.minimap .mm-attention,
@@ -6982,20 +6992,20 @@ button.group-node__setup:disabled {
stroke-width: 4px;
}
.minimap .mm-working {
- filter: drop-shadow(0 0 3px color-mix(in srgb, var(--state-working) 80%, transparent));
+ filter: drop-shadow(0 0 3px color-mix(in srgb, var(--mm-working) 80%, transparent));
animation: mm-pulse-soft 2.6s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
.minimap .mm-attention {
- filter: drop-shadow(0 0 3px color-mix(in srgb, var(--state-attention) 90%, transparent));
+ filter: drop-shadow(0 0 3px color-mix(in srgb, var(--mm-attention) 90%, transparent));
animation: mm-pulse 1.8s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
-/* Unread: its own keyframes — at minimap scale a node is a few pixels tall, so opacity alone reads
- as a faint flicker; the stroke THICKENS on the beat as well, which is what makes it findable on a
- busy map (and apart from an uncoloured node's plain accent stroke). */
+/* Unread = clay, the agent-hook colour (RUNNING badge, working glow). Its own keyframes: at
+ minimap scale a node is a few pixels tall, so opacity alone reads as a faint flicker — the
+ stroke THICKENS on the beat as well, which is what makes it findable on a busy map. */
.minimap .mm-unread {
- filter: drop-shadow(0 0 4px color-mix(in srgb, var(--state-unread) 95%, transparent));
+ filter: drop-shadow(0 0 4px color-mix(in srgb, var(--mm-unread) 95%, transparent));
animation: mm-pulse-unread 1.6s ease-in-out infinite;
animation-play-state: var(--nt-anim-state);
}
@@ -13723,6 +13733,9 @@ body.focus-mode .dock:hover {
--git-renamed: var(--accent-text);
--git-conflict: var(--danger);
--priority-high: var(--pink-text);
+ --mm-working: var(--state-working);
+ --mm-attention: var(--state-attention);
+ --mm-unread: var(--state-unread);
}
/* Status labels on a glass header are ink, not coloured text: the hue tints the chip BEHIND the
diff --git a/src/renderer/styles.palette.test.ts b/src/renderer/styles.palette.test.ts
index f4da9ae23..f3abf22ae 100644
--- a/src/renderer/styles.palette.test.ts
+++ b/src/renderer/styles.palette.test.ts
@@ -146,21 +146,29 @@ describe('git status colours have one source', () => {
})
})
-describe('minimap status strokes match the node glows', () => {
+describe('minimap status strokes', () => {
const canvas = read('canvas/Canvas.tsx')
const pairs = [
- ['working', "st?.state === 'working') return 'var(--state-working)'"],
- ['attention', "st?.state === 'blocked') return 'var(--state-attention)'"],
- ['unread', "st?.unread) return 'var(--state-unread)'"]
+ ['working', "st?.state === 'working') return 'var(--mm-working)'", '#ffd60a'],
+ ['attention', "st?.state === 'blocked') return 'var(--mm-attention)'", '#ff453a'],
+ ['unread', "st?.unread) return 'var(--mm-unread)'", '#d97757']
] as const
- for (const [state, stroke] of pairs) {
- it(`${state}: the canvas glow, the minimap stroke and its halo read --state-${state}`, () => {
+ for (const [state, stroke, legacy] of pairs) {
+ it(`${state}: stroke and halo read --mm-${state}`, () => {
expect(canvas).toContain(stroke)
+ const mm = CSS.slice(CSS.indexOf(`\n.minimap .mm-${state} {\n filter`))
+ expect(mm.slice(0, mm.indexOf('}'))).toContain(`var(--mm-${state})`)
+ })
+
+ it(`${state}: the default look keeps its pre-glass map colour, glass maps it to the node glow's role`, () => {
+ expect(literal(`--mm-${state}`, DARK)).toBe(legacy)
+ expect(literal(`--mm-${state}`, LIGHT)).toBe(legacy)
+ for (const tokens of [GLASS_THEMES.dark, GLASS_THEMES.light]) {
+ expect(literal(`--mm-${state}`, tokens)).toBe(literal(`--state-${state}`, tokens))
+ }
const glow = CSS.slice(CSS.indexOf(`.react-flow__node:has(.term-node.${state})::after {`))
expect(glow.slice(0, glow.indexOf('}'))).toContain(`var(--state-${state})`)
- const mm = CSS.slice(CSS.indexOf(`\n.minimap .mm-${state} {\n filter`))
- expect(mm.slice(0, mm.indexOf('}'))).toContain(`var(--state-${state})`)
})
}
})