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.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
Merge pull request #546 from basmilius/fix/subagent-node-snap-to-grid
eneskircac5c696eeb9d1
diff --cc src/renderer/canvas/Canvas.tsxindex b627943cf,b34dd2aee..15cd0d75c--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@@ -664,12 -658,22 +674,17 @@@ const NO_EPHEMERAL: { ephemeralNodes: Cconst offsetFrom = (parent: { position: { x: number; y: number } },stored: { x: number; y: number } | undefined,- fallback: { x: number; y: number }+ fallback: { x: number; y: number },+ snap?: { grid: number; origin: { x: number; y: number } }): { x: number; y: number } => {const off = stored ?? fallback- return { x: parent.position.x + off.x, y: parent.position.y + off.y }+ const position = { x: parent.position.x + off.x, y: parent.position.y + off.y }+ if (stored || !snap) {+ return position+ }+ return snapPointInRootSpace(position, snap.origin, snap.grid)}-// Delivering an armed node's held launch (canvas-control `--after`) can lose the race against-// that node's own PTY coming up, and a dropped launch is exactly the thing its dependency was-// waiting for — so a refused delivery is retried a few times instead of vanishing.-const LAUNCH_DELIVERY_ATTEMPTS = 5-const LAUNCH_RETRY_MS = 400// A canvas-control request whose source node lives in another project switches that project in// first, and the active-project effect hydrates React Flow ASYNCHRONOUSLY — so the handler waits