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
import { sessionForProject, type SessionSource } from '../session/session'
/**
* The source of the session a project's surfaces are viewed through — for the surfaces that know a
* project id but sit outside that project's `SessionProvider` (the boards, the sessions sidebar).
* Null when no session resolves (a registry with no session at all, e.g. a unit test).
*/
export function projectSessionSource(projectId: string): SessionSource | null {
try {
return sessionForProject(projectId).source
} catch {
return null
}
}