From 3a0e00dd7f9192730f6d0eeee37ae0a5fb023927 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Sat, 4 Apr 2026 21:55:22 -0700 Subject: [PATCH] tweak: add newline between and first line of read tool output to prevent confusion (#21070) --- packages/opencode/src/tool/read.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/tool/read.ts b/packages/opencode/src/tool/read.ts index 366993020b..0b44c7ad5a 100644 --- a/packages/opencode/src/tool/read.ts +++ b/packages/opencode/src/tool/read.ts @@ -185,7 +185,7 @@ export const ReadTool = Tool.defineEffect( ) } - let output = [`${filepath}`, `file`, ""].join("\n") + let output = [`${filepath}`, `file`, "" + "\n"].join("\n") output += file.raw.map((line, i) => `${i + file.offset}: ${line}`).join("\n") const last = file.offset + file.raw.length - 1