From 1012174f8190afaf24e370dd409d5b97fc6e2596 Mon Sep 17 00:00:00 2001 From: Alexander Slobodeniuk Date: Mon, 22 Jun 2026 14:59:43 +0200 Subject: [PATCH] fix(cli): add missing trailing newline to stderr output When I run opencode session it's missing a newline in the end of the output, and confuses my terminal --- packages/opencode/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/index.ts b/packages/opencode/src/index.ts index 13540a73a36f..6a8942f47425 100644 --- a/packages/opencode/src/index.ts +++ b/packages/opencode/src/index.ts @@ -39,7 +39,7 @@ function show(out: string) { process.stderr.write(text + EOL) return } - process.stderr.write(out) + process.stderr.write(out.endsWith(EOL) ? out : out + EOL) } const cli = yargs(args)