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
test(pty): model execFile's exit code on the has-session fake — probeSaysAbsent reads err.code
enes837d6366e3d1
diff --git a/src/core/pty-single-user.test.ts b/src/core/pty-single-user.test.tsindex 14411936b..a27b23de1 100644--- a/src/core/pty-single-user.test.ts+++ b/src/core/pty-single-user.test.ts@@ -89,7 +89,9 @@ vi.mock('child_process', () => {if (args.includes('has-session')) {const target = args[args.indexOf('-t') + 1]if (liveTmuxSessions.has(target)) ok('')- else cb?.(new Error('no such session'))+ // Real execFile carries tmux's exit status on err.code — 1 is what probeSaysAbsent+ // reads as genuine absence (vs a spawn failure, which has a string/no code).+ else cb?.(Object.assign(new Error('no such session'), { code: 1 }))} else if (args[0] === '-ilc') {// The login-shell PATH probe (`resolveShellPath`).ok('__NT_PATH_START__/usr/bin:/bin__NT_PATH_END__')