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(node): blue glow on a node when its agent finishes while unfocused

enes7b89bcfceb48
diff --git a/src/renderer/nodes/TerminalNode.tsx b/src/renderer/nodes/TerminalNode.tsx
index 5c7d8b1c2..f90988986 100644
--- a/src/renderer/nodes/TerminalNode.tsx
+++ b/src/renderer/nodes/TerminalNode.tsx
@@ -464,9 +464,19 @@ export function TerminalNode({ id, data, selected, parentId }: NodeProps<CanvasN
}
}, [data.mdMode, id, useChat])
+ // Unread = the agent finished (not still working/waiting/blocked) while you weren't looking.
+ // Drives both the header badge and a node-wide glow so it's obvious at a glance.
+ const isUnread =
+ !!status?.unread &&
+ status?.state !== 'working' &&
+ status?.state !== 'waiting' &&
+ status?.state !== 'blocked'
+
return (
<div
- className={`term-node${selected ? ' selected' : ''}${collapsed ? ' collapsed' : ''}`}
+ className={`term-node${selected ? ' selected' : ''}${collapsed ? ' collapsed' : ''}${
+ isUnread ? ' unread' : ''
+ }`}
style={{ borderTopColor: data.color }}
onMouseEnter={() => (hoveredRef.current = true)}
onMouseLeave={() => (hoveredRef.current = false)}
@@ -585,10 +595,7 @@ export function TerminalNode({ id, data, selected, parentId }: NodeProps<CanvasN
NEEDS YOU
</span>
)}
- {status?.unread &&
- status?.state !== 'working' &&
- status?.state !== 'waiting' &&
- status?.state !== 'blocked' && (
+ {isUnread && (
<span
className="term-node__status term-node__status--unread"
title="Finished — click to mark read"
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index 767e4d526..03dcd1186 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -422,6 +422,30 @@ body,
border-color: var(--accent);
}
+/* Unread (agent finished while unfocused): a blue glow around the whole node so it's
+ obvious at a glance, not just the small header badge. Pulses gently to draw the eye.
+ Selecting the node clears unread, so this never fights the selection ring. */
+.term-node.unread {
+ border-color: var(--accent);
+ animation: nt-unread-glow 2s ease-in-out infinite;
+}
+
+@keyframes nt-unread-glow {
+ 0%,
+ 100% {
+ box-shadow:
+ 0 0 0 1px rgba(10, 132, 255, 0.5),
+ 0 0 16px 1px rgba(10, 132, 255, 0.35),
+ 0 8px 28px rgba(0, 0, 0, 0.4);
+ }
+ 50% {
+ box-shadow:
+ 0 0 0 1px rgba(10, 132, 255, 0.8),
+ 0 0 26px 4px rgba(10, 132, 255, 0.6),
+ 0 8px 28px rgba(0, 0, 0, 0.4);
+ }
+}
+
/* Bridge link handles (Claude nodes): dots on the header row, on top of the node so they're
never buried under the terminal body. Subtle until you hover the node, then prominent. */
.react-flow__handle.bridge-handle {