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(canvas): link handles on sticky notes

enes3be22edf606f
diff --git a/src/renderer/nodes/StickyNode.tsx b/src/renderer/nodes/StickyNode.tsx
index fd392b08b..106883557 100644
--- a/src/renderer/nodes/StickyNode.tsx
+++ b/src/renderer/nodes/StickyNode.tsx
@@ -1,5 +1,5 @@
import { useState } from 'react'
-import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'
+import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'
import { COLLAPSED_HEIGHT, NODE_COLORS, type CanvasNode } from '../state/workspace'
/**
@@ -35,6 +35,22 @@ export function StickyNode({ id, data, selected }: NodeProps<CanvasNode>) {
>
<NodeResizer minWidth={160} minHeight={120} isVisible={selected && !collapsed} color={data.color} />
+ {/* Note-link handles: drag to/from a terminal node to attach this note as context. */}
+ <Handle
+ id="link-out"
+ type="source"
+ position={Position.Right}
+ className="bridge-handle bridge-handle--out"
+ data-tip="Link out — drag to a terminal to attach this note as context"
+ />
+ <Handle
+ id="link-in"
+ type="target"
+ position={Position.Left}
+ className="bridge-handle bridge-handle--in"
+ data-tip="Link in — drop a link here to attach this note as context"
+ />
+
<div className="sticky-node__header" style={{ background: `${data.color}33` }}>
<button className="term-node__collapse" title={collapsed ? 'Expand' : 'Collapse'} onClick={toggleCollapse}>
{collapsed ? '▸' : '▾'}