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.

style: RUNNING/working state color amber → clay #d97757

enesb572e36d5221
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index 4f96d56d9..b6d0e2245 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -151,12 +151,33 @@ const minimapNodeColor = (n: Node): string =>
// the entire canvas), but the minimap's working/attention/unread strokes DO need to track those
// flips live; a fresh `nodeStrokeColor` identity per status change is what busts React Flow's
// internal MiniMap memo so it repaints. Re-render cost is confined to this component.
-function StatusAwareMiniMap() {
+function StatusAwareMiniMap({ onNodeDoubleClick }: { onNodeDoubleClick: (node: Node) => void }) {
const statusById = useAgentStatus((s) => s.byId)
+ const { setCenter, getZoom } = useReactFlow()
+ // React Flow's MiniMap only pans on drag (`pannable`) — a plain click is a no-op unless
+ // wired up. `position` arrives already converted to flow coordinates.
+ const onMinimapClick = useCallback(
+ (_e: React.MouseEvent, position: { x: number; y: number }) => {
+ setCenter(position.x, position.y, { zoom: getZoom(), duration: 300 })
+ },
+ [setCenter, getZoom]
+ )
+ // The MiniMap has no double-click prop; `detail === 2` is the second click of a
+ // double-click. stopPropagation keeps the svg-level click handler above from
+ // re-centering at the raw pointer right after the zoom-to-node.
+ const onMinimapNodeClick = useCallback(
+ (e: React.MouseEvent, node: Node) => {
+ if (e.detail >= 2) {
+ e.stopPropagation()
+ onNodeDoubleClick(node)
+ }
+ },
+ [onNodeDoubleClick]
+ )
const nodeStrokeColor = useCallback(
(n: Node): string => {
const st = statusById[n.id]
- if (st?.state === 'working') return '#30d158'
+ if (st?.state === 'working') return '#d97757'
if (st?.state === 'waiting' || st?.state === 'blocked') return '#ff9f0a'
if (st?.unread) return '#0a84ff'
return (n.data as { color?: string })?.color ?? '#0a84ff'
@@ -169,6 +190,8 @@ function StatusAwareMiniMap() {
position="bottom-right"
pannable
zoomable
+ onClick={onMinimapClick}
+ onNodeClick={onMinimapNodeClick}
maskColor="rgba(10,12,18,0.6)"
nodeColor={minimapNodeColor}
nodeStrokeColor={nodeStrokeColor}
@@ -3134,7 +3157,7 @@ export function Canvas() {
/>
<Controls showInteractive={false} position="bottom-left" />
<UsageIndicator />
- <StatusAwareMiniMap />
+ <StatusAwareMiniMap onNodeDoubleClick={goToNode} />
</ReactFlow>
{(!hasProjects || welcomeOpen) && (
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index e606dbbb4..d466e1aee 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -462,15 +462,15 @@ body,
}
}
-/* Working (agent mid-turn): a soft amber glow — the spinner's #ffd60a — behind the node.
+/* Working (agent mid-turn): a soft clay glow — the spinner's #d97757 — behind the node.
Same opacity-pulse-on-wrapper-pseudo technique as the unread glow above (never animate
box-shadow), but calmer: lower intensity, slower cycle, and it never fully disappears so
the node reads "alive" rather than "blinking". Mutually exclusive with .unread (isUnread
is false while working). Shadows only — the top border keeps the node's own color. */
.term-node.working {
box-shadow:
- 0 0 0 1px rgba(255, 214, 10, 0.35),
- 0 0 14px 1px rgba(255, 214, 10, 0.22),
+ 0 0 0 1px rgba(217, 119, 87, 0.35),
+ 0 0 14px 1px rgba(217, 119, 87, 0.22),
0 8px 28px rgba(0, 0, 0, 0.4);
}
@@ -482,8 +482,8 @@ body,
pointer-events: none;
z-index: -1;
box-shadow:
- 0 0 0 1px rgba(255, 214, 10, 0.45),
- 0 0 22px 3px rgba(255, 214, 10, 0.35);
+ 0 0 0 1px rgba(217, 119, 87, 0.45),
+ 0 0 22px 3px rgba(217, 119, 87, 0.35);
opacity: 0.25;
animation: nt-working-glow 2.6s ease-in-out infinite;
will-change: opacity;
@@ -660,9 +660,9 @@ body,
background: currentColor;
}
-/* RUNNING matches the working spinner + node glow (amber), not the base green. */
+/* RUNNING matches the working spinner + node glow (clay #d97757), not the base green. */
.term-node__status--busy {
- color: #ffd60a;
+ color: #d97757;
}
.term-node__status--busy .term-node__status-dot {
@@ -4174,7 +4174,7 @@ body,
.ss-bell svg { width: 13px; height: 13px; }
.ss-dot--working {
background: transparent;
- border: 2px solid #ffd60a;
+ border: 2px solid #d97757;
border-top-color: transparent;
animation: nt-spin 1s steps(12, end) infinite;
}