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(kanban): Esc during a modal rename cancels the edit, not the modal
enesd4c2974fc79b
diff --git a/src/renderer/components/kanban/CardModal.tsx b/src/renderer/components/kanban/CardModal.tsxindex ee29248d7..3cac99791 100644--- a/src/renderer/components/kanban/CardModal.tsx+++ b/src/renderer/components/kanban/CardModal.tsx@@ -25,6 +25,11 @@ export function CardModal({ session, columnTitle, onClose, onOpenCanvas, onRenamconst id = idRef.currentconst [editingTitle, setEditingTitle] = useState(false)const [title, setTitle] = useState(session.title)+ // Ref mirror: the capture-phase listener below closes over stale state otherwise.+ const editingTitleRef = useRef(false)+ useEffect(() => {+ editingTitleRef.current = editingTitle+ }, [editingTitle])useEffect(() => {pushDialog(id)@@ -36,6 +41,11 @@ export function CardModal({ session, columnTitle, onClose, onOpenCanvas, onRenamif (e.key !== 'Escape' || !isTopDialog(id)) returne.preventDefault()e.stopPropagation()+ if (editingTitleRef.current) {+ // Esc during a rename cancels the EDIT, not the modal.+ setEditingTitle(false)+ return+ }onClose()}// Capture phase: beat the canvas/global keydown listeners to the Escape.@@ -63,11 +73,8 @@ export function CardModal({ session, columnTitle, onClose, onOpenCanvas, onRenamonChange={(e) => setTitle(e.target.value)}onBlur={commitTitle}onKeyDown={(e) => {+ // Esc is owned by the capture-phase handler (cancels the edit).if (e.key === 'Enter') commitTitle()- if (e.key === 'Escape') {- e.stopPropagation()- setEditingTitle(false)- }}}/>) : (