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.

feat(minimap): status glow + pulse — amber working, red needs-you, blue unread

enes9855b8d29340
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index b6d0e2245..c7d68085a 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -174,16 +174,28 @@ function StatusAwareMiniMap({ onNodeDoubleClick }: { onNodeDoubleClick: (node: N
},
[onNodeDoubleClick]
)
+ // Status language matches the canvas glows/badges: amber = working, red = needs you,
+ // accent blue = unread. The classes below add the minimap-scale glow/pulse (styles.css).
const nodeStrokeColor = useCallback(
(n: Node): string => {
const st = statusById[n.id]
- if (st?.state === 'working') return '#d97757'
- if (st?.state === 'waiting' || st?.state === 'blocked') return '#ff9f0a'
+ if (st?.state === 'working') return '#ffd60a'
+ if (st?.state === 'waiting' || st?.state === 'blocked') return '#ff453a'
if (st?.unread) return '#0a84ff'
return (n.data as { color?: string })?.color ?? '#0a84ff'
},
[statusById]
)
+ const nodeClassName = useCallback(
+ (n: Node): string => {
+ const st = statusById[n.id]
+ if (st?.state === 'working') return 'mm-working'
+ if (st?.state === 'waiting' || st?.state === 'blocked') return 'mm-attention'
+ if (st?.unread) return 'mm-unread'
+ return ''
+ },
+ [statusById]
+ )
return (
<MiniMap
className="minimap"
@@ -195,6 +207,7 @@ function StatusAwareMiniMap({ onNodeDoubleClick }: { onNodeDoubleClick: (node: N
maskColor="rgba(10,12,18,0.6)"
nodeColor={minimapNodeColor}
nodeStrokeColor={nodeStrokeColor}
+ nodeClassName={nodeClassName}
/>
)
}
@@ -1031,7 +1044,7 @@ export function Canvas() {
const py = e.clientY - rect.top
// Cap a single event's influence so a chunky mouse-wheel tick doesn't jump zoom levels.
const d = Math.max(-50, Math.min(50, e.deltaY))
- const next = Math.min(2, Math.max(0.2, zoom * Math.exp(-d * 0.01)))
+ const next = Math.min(2, Math.max(0.01, zoom * Math.exp(-d * 0.01)))
if (next === zoom) return
const k = next / zoom
setViewport({ x: px - (px - x) * k, y: py - (py - y) * k, zoom: next })
@@ -3135,7 +3148,7 @@ export function Canvas() {
onNodeContextMenu={onNodeContextMenu}
onSelectionContextMenu={onSelectionContextMenu}
onNodeDoubleClick={onNodeDoubleClick}
- minZoom={0.2}
+ minZoom={0.01}
maxZoom={2}
proOptions={{ hideAttribution: true }}
deleteKeyCode={null}
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index f70ed1c76..99efb127c 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -3742,6 +3742,46 @@ body,
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
+/* Minimap-scale status glow: same language as the node glows (amber working / red
+ needs-you / accent unread). 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,
+.minimap .mm-unread {
+ stroke-width: 4px;
+}
+.minimap .mm-working {
+ filter: drop-shadow(0 0 3px rgba(255, 214, 10, 0.8));
+ animation: mm-pulse-soft 2.6s ease-in-out infinite;
+}
+.minimap .mm-attention {
+ filter: drop-shadow(0 0 3px rgba(255, 69, 58, 0.9));
+ animation: mm-pulse 1.8s ease-in-out infinite;
+}
+.minimap .mm-unread {
+ filter: drop-shadow(0 0 3px rgba(10, 132, 255, 0.9));
+ animation: mm-pulse 2s ease-in-out infinite;
+}
+@keyframes mm-pulse {
+ 0%,
+ 100% {
+ stroke-opacity: 0.25;
+ }
+ 50% {
+ stroke-opacity: 1;
+ }
+}
+/* Working never blinks off — it breathes, mirroring the canvas glow. */
+@keyframes mm-pulse-soft {
+ 0%,
+ 100% {
+ stroke-opacity: 0.45;
+ }
+ 50% {
+ stroke-opacity: 1;
+ }
+}
+
/* React Flow controls dark theme */
.react-flow__controls {
border-radius: 10px;