summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/opencode/src/tool/read.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/tool/read.ts b/packages/opencode/src/tool/read.ts
index 366993020..0b44c7ad5 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 = [`<path>${filepath}</path>`, `<type>file</type>`, "<content>"].join("\n")
+ let output = [`<path>${filepath}</path>`, `<type>file</type>`, "<content>" + "\n"].join("\n")
output += file.raw.map((line, i) => `${i + file.offset}: ${line}`).join("\n")
const last = file.offset + file.raw.length - 1