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(focus): treat the Omni Kanban as covering the canvas on window activation
Fabricio Casali12564a20589d
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex 1e3aab77f..90baeb788 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -7914,7 +7914,7 @@ export function Canvas() {lastNodeId: useTerminalFocus.getState().lastNodeId,activeElement: document.activeElement as unknown as ContextElement | null,openDialogs: openDialogCount(),- boardOpen: isKanbanOpen(activeProjectId),+ boardOpen: isGlobalKanbanOpen() || isKanbanOpen(activeProjectId),settingsOpen: settingsOpenRef.current,liveIds})diff --git a/src/renderer/lib/focusRestore.test.ts b/src/renderer/lib/focusRestore.test.tsindex f8083b656..c07e64350 100644--- a/src/renderer/lib/focusRestore.test.ts+++ b/src/renderer/lib/focusRestore.test.ts@@ -1,4 +1,6 @@import { describe, expect, it } from 'vitest'+import { readFileSync } from 'fs'+import { join } from 'path'import { nodeToRefocus, type FocusRestoreState } from './focusRestore'import { XTERM_INPUT_CLASS } from './keyContext'@@ -19,6 +21,14 @@ const state = (over: Partial<FocusRestoreState> = {}): FocusRestoreState => ({})describe('nodeToRefocus', () => {+ // The predicate cannot see which boards exist; the canvas decides what `boardOpen` means. The+ // Omni Kanban covers the canvas exactly like a per-project board, so leaving it out restored+ // keyboard focus into a terminal hidden under the global board.+ it('receives both project and global kanban visibility from the canvas', () => {+ const source = readFileSync(join(process.cwd(), 'src/renderer/canvas/Canvas.tsx'), 'utf8')+ expect(source).toContain('boardOpen: isGlobalKanbanOpen() || isKanbanOpen(activeProjectId)')+ })+it('restores the last focused terminal when nothing else owns the keyboard', () => {expect(nodeToRefocus(state())).toBe('term-1')})