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
perf(relay): drop per-cast canvasSyncTarget allocation on the publish path (collab Task 4 review)
enes8b6da42bdd9a
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex 939dad3e7..9e40fe754 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -1347,8 +1347,10 @@ export function Canvas() {order.onLocal(m)// Cast to the ACTIVE session's core — a relay tab publishes to the relay HOST, not to B's// own local core (the bug this fixes). Byte-identical on a local tab (`activeSession.api`- // IS `window.nodeTerminal`).- canvasSyncTarget(activeSession, activePresence.store.getState()).api.canvas.mutate(projectId, m)+ // IS `window.nodeTerminal`). `canvasSyncTarget` decides the GATE (hasPeers) at bind time;+ // the cast target is just the session's api, so reach it directly — no per-cast allocation+ // on this ~20 Hz path.+ activeSession.api.canvas.mutate(projectId, m)return true},{ src, shouldPublish: () => hasPeersRef.current }