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): clear a session's unread dot when its card opens on the global board
Marco de Wet8448adbaed4b
diff --git a/src/renderer/components/kanban/GlobalKanbanView.test.tsx b/src/renderer/components/kanban/GlobalKanbanView.test.tsxindex bb16463e4..f9f2297e8 100644--- a/src/renderer/components/kanban/GlobalKanbanView.test.tsx+++ b/src/renderer/components/kanban/GlobalKanbanView.test.tsx@@ -13,3 +13,10 @@ describe('global kanban swimlane collapse wiring', () => {expect(GLOBAL_KANBAN_SRC).toContain('{!collapsed && (')})})++describe('global kanban card read state', () => {+ it('clears the unread dot when a card opens, like the per-project board', () => {+ expect(GLOBAL_KANBAN_SRC).toContain("import { useAgentStatus } from '../../state/agentStatus'")+ expect(GLOBAL_KANBAN_SRC).toContain('if (modalNodeId) useAgentStatus.getState().clearUnread(modalNodeId)')+ })+})diff --git a/src/renderer/components/kanban/GlobalKanbanView.tsx b/src/renderer/components/kanban/GlobalKanbanView.tsxindex 373efcebc..fe3a4c334 100644--- a/src/renderer/components/kanban/GlobalKanbanView.tsx+++ b/src/renderer/components/kanban/GlobalKanbanView.tsx@@ -3,6 +3,7 @@ import type { BridgeLink, CanvasNodeState, ProjectKanban } from '@shared/types'import { AGENT_CONFIG, BUILTIN_AGENT_IDS, type AgentId } from '@shared/agents/config'import { useProjects } from '../../state/projects'import { useSettings } from '../../state/settings'+import { useAgentStatus } from '../../state/agentStatus'import { useBoardWallpaperStyle } from '../../state/wallpaper'import {addColumn, assignNode, assignedTo, boardLabels, cardMatchesLabelFilter, cardMeta, columnForNode,@@ -424,7 +425,11 @@ export const GlobalKanbanView = memo(function GlobalKanbanView({ live = null, onsetModal(nodeId ? { projectId, nodeId, view } : null)}, [])const modalNodeId = modal?.nodeId ?? null- useEffect(() => { onModalNodeChange?.(modalNodeId) }, [modalNodeId, onModalNodeChange])+ // Same rule as the per-project board: opening a card marks its completion read.+ useEffect(() => {+ onModalNodeChange?.(modalNodeId)+ if (modalNodeId) useAgentStatus.getState().clearUnread(modalNodeId)+ }, [modalNodeId, onModalNodeChange])// Closing the overview with a card open must not leave the node "watched" forever.const onModalNodeChangeRef = useRef(onModalNodeChange)onModalNodeChangeRef.current = onModalNodeChange