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
fix(terminal): Cmd+C copies the xterm selection to the clipboard
enesc6db66d26ab7
diff --git a/src/renderer/nodes/TerminalNode.tsx b/src/renderer/nodes/TerminalNode.tsxindex f0d678be1..46466350e 100644--- a/src/renderer/nodes/TerminalNode.tsx+++ b/src/renderer/nodes/TerminalNode.tsx@@ -57,6 +57,18 @@ export function TerminalNode({ id, data, selected }: NodeProps<CanvasNode>) {fit.fit()patchTerminalScale(term, getZoom)+ // Cmd+C copies the terminal selection (xterm renders to canvas, so the DOM-selection+ // copy used elsewhere can't see it). Ctrl+C is left alone so it still sends SIGINT.+ term.attachCustomKeyEventHandler((e) => {+ if (e.type === 'keydown' && e.metaKey && !e.ctrlKey && !e.altKey && e.key.toLowerCase() === 'c') {+ if (term.hasSelection()) {+ window.nodeTerminal.clipboard.writeText(term.getSelection())+ return false+ }+ }+ return true+ })+let sessionId: string | null = nulllet disposed = falseconst cleanups: Array<() => void> = []