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(scripts): keep messaging smoke temp files in private roots
Fabricio Casalibc1eb0f931ef
diff --git a/scripts/sim-agent-messaging-windows.ts b/scripts/sim-agent-messaging-windows.tsindex 2065a1f45..cb7d492f8 100644--- a/scripts/sim-agent-messaging-windows.ts+++ b/scripts/sim-agent-messaging-windows.ts@@ -401,7 +401,11 @@ async function main(): Promise<void> {/* already gone */}}- fs.writeFileSync(path.join(os.tmpdir(), 'nodeterm-sim-messaging-last.log'), log.join('\n'))+ // The scenario root is removed below, so the log gets its own private root to outlive it.+ // Never a fixed name in the shared temp dir: another account could pre-create it.+ const logFile = path.join(fs.mkdtempSync(path.join(os.tmpdir(), 'nodeterm-sim-messaging-log-')), 'run.log')+ fs.writeFileSync(logFile, log.join('\n'))+ console.log(`log: ${logFile}`)try {await waitFor('private host retirement', () => !fs.existsSync(path.join(dir, 'session-host.json')), 40_000)fs.rmSync(dir, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 })diff --git a/scripts/smoke-session-host-messaging.ts b/scripts/smoke-session-host-messaging.tsindex 1b08c90f9..15d5b42e3 100644--- a/scripts/smoke-session-host-messaging.ts+++ b/scripts/smoke-session-host-messaging.ts@@ -12,9 +12,7 @@ async function main(): Promise<void> {assert.equal(process.platform, 'win32')const nodeExe = process.env.NODETERM_SMOKE_NODE_EXEassert.ok(nodeExe && fs.existsSync(nodeExe))- const tempRoot = path.join(os.tmpdir(), 'opencode')- assert.ok(fs.existsSync(tempRoot), 'the approved temporary directory must exist')- const dir = fs.mkdtempSync(path.join(tempRoot, 'nodeterm-host-message-'))+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'nodeterm-host-message-'))const exe = path.join(dir, 'opencode.exe')fs.copyFileSync(nodeExe, exe)const quote = (s: string) => "'" + s.replace(/'/g, "''") + "'"