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
Merge branch 'main' into feat/project-working-badge
eneskircaf4153e5578cb
diff --cc src/renderer/lib/sessionList.test.tsindex 0e53d1398,8d6e03346..094382fe9--- a/src/renderer/lib/sessionList.test.ts+++ b/src/renderer/lib/sessionList.test.ts@@@ -3,10 -3,9 +3,11 @@@ importbuildSessionList,sessionStatusKind,isGroupCollapsed,+ projectHeadClickAction,projectSignalCounts,- type ProjectInput+ type ProjectInput,+ type SessionRowVM,+ type SessionGroup} from './sessionList'import type { AgentNodeStatus } from '../state/agentStatus'diff --cc src/renderer/lib/sessionList.tsindex ca6f59a66,fb7f00b97..f9232b25f--- a/src/renderer/lib/sessionList.ts+++ b/src/renderer/lib/sessionList.ts@@@ -50,16 -50,39 +50,40 @@@ export function isGroupCollapsedreturn autoCollapse ? !isActive : false}+ /** What a left-click on a project header in the sessions sidebar does. */+ export type ProjectHeadAction = 'switch' | 'toggle-collapse'++ /**+ * A project header's click does exactly ONE of two things, and never both.+ *+ * - An INACTIVE project **switches** to that project and leaves `overrides` alone. Touching+ * collapse here would be dead-or-wrong under both settings: with `sidebarAutoCollapse` ON+ * the sidebar's own effect wipes every override on the `activeProjectId` change, so any+ * toggle written here is clobbered a tick later (and unnecessary — the newly active project+ * is expanded by default); with it OFF, writing one would discard the user's explicit+ * choice, contradicting the documented "off = switches never touch the user's choices".+ * - The ACTIVE project **toggles its own collapse** — the pre-existing behavior of the whole+ * header, kept so the row has no dead zone. It sets a normal override, which is transient+ * under auto-collapse (dropped at the next switch) and sticky without it, exactly like the+ * chevron button.+ *+ * The chevron is the escape hatch either way: it toggles collapse on ANY row (it+ * stops propagation), so an inactive project can be peeked into without switching.+ */+ export function projectHeadClickAction(isActive: boolean): ProjectHeadAction {+ return isActive ? 'toggle-collapse' : 'switch'+ }+/*** Header badges for a project group: how many sessions need the user right now- * (waiting/blocked) and how many finished unseen. Mirrors the row glyph's precedence —- * an attention session is never double-counted as unread, and a working one isn't- * unread yet (a new turn is running; the old mark resurfaces when it ends).+ * (waiting/blocked), how many finished unseen, and how many are actively working right now.+ * Mirrors the row glyph's precedence — an attention session is never double-counted as unread,+ * and a working one isn't unread yet (a new turn is running; the old mark resurfaces when it ends).*/-export function projectSignalCounts(group: SessionGroup): { attention: number; unread: number } {+export function projectSignalCounts(group: SessionGroup): { attention: number; unread: number; working: number } {let attention = 0let unread = 0+ let working = 0for (const s of [...group.ungrouped, ...group.groups.flatMap((b) => b.sessions)]) {if (s.statusKind === 'attention') attention++else if (s.unread && s.statusKind !== 'working') unread++