the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Append newline to stdout and stderr if missing

Only write stdout/stderr when present and add a trailing newline
if the response doesn't include one to match terminal output behavior

+14 -2
+14 -2
apps/cli/src/cmd/exec.ts
··· 27 27 }, 28 28 ); 29 29 30 - process.stdout.write(response.data.stdout); 31 - process.stderr.write(response.data.stderr); 30 + if (response.data.stdout) { 31 + process.stdout.write( 32 + response.data.stdout.endsWith("\n") 33 + ? response.data.stdout 34 + : response.data.stdout + "\n", 35 + ); 36 + } 37 + if (response.data.stderr) { 38 + process.stderr.write( 39 + response.data.stderr.endsWith("\n") 40 + ? response.data.stderr 41 + : response.data.stderr + "\n", 42 + ); 43 + } 32 44 33 45 if (response.data.exitCode !== 0) { 34 46 consola.error(`Command exited with code ${response.data.exitCode}`);