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): make the messaging smoke readers echo like a composer
Fabricio Casali001916fbf457
diff --git a/scripts/smoke-session-host-messaging.ts b/scripts/smoke-session-host-messaging.tsindex 15d5b42e3..27ea22e66 100644--- a/scripts/smoke-session-host-messaging.ts+++ b/scripts/smoke-session-host-messaging.ts@@ -16,7 +16,9 @@ async function main(): Promise<void> {const exe = path.join(dir, 'opencode.exe')fs.copyFileSync(nodeExe, exe)const quote = (s: string) => "'" + s.replace(/'/g, "''") + "'"- const reader = "process.stdin.setRawMode(true);process.stdin.resume();process.stdout.write('\\x1b[?2004hREADY_HOST');let b='';process.stdin.on('data',d=>{b+=d;if(b.endsWith('\\r')){process.stdout.write('HOST_RECEIVED:'+Buffer.from(b).toString('base64')+';');b='';}})"+ // The reader echoes the pasted text like a composer does: delivery submits in a second write+ // only once the envelope is visible (core/settled-submit.ts), so a silent reader gets no Enter.+ const reader = "process.stdin.setRawMode(true);process.stdin.resume();process.stdout.write('\\x1b[?2004hREADY_HOST');let b='';process.stdin.on('data',d=>{const s=d.toString();b+=s;process.stdout.write(s.replace(/\\x1b\\[20[01]~/g,'').replace(/\\r/g,'').replace(/\\n/g,'\\r\\n'));if(b.endsWith('\\r')){process.stdout.write('HOST_RECEIVED:'+Buffer.from(b).toString('base64')+';');b='';}})"const client = new SessionHostClient({ userDataDir: dir, repoRoot: process.cwd() })const env = Object.fromEntries(Object.entries(process.env).filter(([k, v]) =>v !== undefined && !k.startsWith('NODETERM_') && k !== 'ELECTRON_RUN_AS_NODE')) as Record<string, string>diff --git a/scripts/smoke-windows-agent-messaging.ts b/scripts/smoke-windows-agent-messaging.tsindex 827d78d8d..1ecd84d34 100644--- a/scripts/smoke-windows-agent-messaging.ts+++ b/scripts/smoke-windows-agent-messaging.ts@@ -20,7 +20,9 @@ async function main(): Promise<void> {// assertion is actual ConPTY input framing/identity, not a claim of an LLM response.const readerExe = path.join(dir, 'opencode.exe')fs.copyFileSync(nodeExe, readerExe)- const reader = "process.stdin.setRawMode(true); process.stdin.resume(); process.stdout.write('\\x1b[?2004hREADY_NATIVE'); let b=''; process.stdin.on('data',d=>{b+=d.toString(); if(b.endsWith('\\r')) {process.stdout.write('RECEIVED_NATIVE:'+Buffer.from(b).toString('base64')+';'); b='';}});"+ // The reader echoes the pasted text like a composer does: delivery submits in a second write+ // only once the envelope is visible (core/settled-submit.ts), so a silent reader gets no Enter.+ const reader = "process.stdin.setRawMode(true); process.stdin.resume(); process.stdout.write('\\x1b[?2004hREADY_NATIVE'); let b=''; process.stdin.on('data',d=>{const s=d.toString(); b+=s; process.stdout.write(s.replace(/\\x1b\\[20[01]~/g,'').replace(/\\r/g,'').replace(/\\n/g,'\\r\\n')); if(b.endsWith('\\r')) {process.stdout.write('RECEIVED_NATIVE:'+Buffer.from(b).toString('base64')+';'); b='';}});"const quote = (text: string) => "'" + text.replace(/'/g, "''") + "'"const proc = pty.spawn('powershell.exe', ['-NoLogo', '-NoProfile', '-NoExit', '-Command', `& ${quote(readerExe)} -e ${quote(reader)}`], {cwd: dir, env: process.env as Record<string, string>, cols: 120, rows: 30, name: 'xterm-256color'