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(claude): subagent node opens a terminal-like live view (reliable toggle)

enes0058b3c9cdc1
diff --git a/src/renderer/nodes/SubagentNode.tsx b/src/renderer/nodes/SubagentNode.tsx
index be45190d7..f47675ba1 100644
--- a/src/renderer/nodes/SubagentNode.tsx
+++ b/src/renderer/nodes/SubagentNode.tsx
@@ -52,14 +52,24 @@ export function SubagentNode({ data }: NodeProps<CanvasNode>) {
.join(' · ')
return (
- <div className={`subagent-node${working ? ' working' : ' done'}`}>
+ <div className={`subagent-node${working ? ' working' : ' done'}${expanded ? ' expanded' : ''}`}>
<Handle type="target" position={Position.Top} isConnectable={false} />
<div
className="subagent-node__head nodrag"
onClick={() => setExpanded((v) => !v)}
- title={expanded ? 'Collapse' : 'Click to expand'}
+ title={expanded ? 'Collapse' : 'Open output'}
style={{ cursor: 'pointer' }}
>
+ <button
+ className="subagent-node__expand"
+ title={expanded ? 'Collapse' : 'Open output'}
+ onClick={(e) => {
+ e.stopPropagation()
+ setExpanded((v) => !v)
+ }}
+ >
+ {expanded ? '▾' : '▸'}
+ </button>
<span className="subagent-node__dot" />
<span className="subagent-node__type">{(data.subagentType as string) || 'subagent'}</span>
<span className="subagent-node__state">{working ? 'working' : 'done'}</span>
@@ -69,9 +79,9 @@ export function SubagentNode({ data }: NodeProps<CanvasNode>) {
)}
{meta && <div className="subagent-node__meta">{meta}</div>}
{expanded && (
- <div className="subagent-node__result nodrag nowheel" ref={bodyRef}>
+ <div className="subagent-node__term nodrag nowheel" ref={bodyRef}>
{data.title ? <div className="subagent-node__result-task">{data.title as string}</div> : null}
- {body || (working ? 'Working…' : 'No output.')}
+ {body || (working ? 'Working… (live output appears here)' : 'No output.')}
</div>
)}
</div>
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index dea670037..f3444c3f0 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -2563,6 +2563,48 @@ body,
color: var(--text);
}
+/* Expanded = a wider terminal-like view of the subagent's live transcript. */
+.subagent-node.expanded {
+ width: 480px;
+}
+
+.subagent-node__expand {
+ width: 16px;
+ height: 16px;
+ flex: none;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ padding: 0;
+ background: transparent;
+ border: none;
+ border-radius: 4px;
+ color: var(--muted);
+ font-size: 10px;
+ cursor: pointer;
+}
+
+.subagent-node__expand:hover {
+ background: rgba(255, 255, 255, 0.08);
+ color: var(--text);
+}
+
+.subagent-node__term {
+ margin-top: 8px;
+ padding: 10px;
+ border-radius: 8px;
+ background: #0e0e0e;
+ border: 1px solid var(--border);
+ max-height: 420px;
+ overflow: auto;
+ font-family: 'SF Mono', Menlo, Monaco, monospace;
+ font-size: 11.5px;
+ line-height: 1.55;
+ color: #d6d6d6;
+ white-space: pre-wrap;
+ word-break: break-word;
+}
+
.subagent-node__head {
display: flex;
align-items: center;