Skip to content

Commit 3a0e00d

Browse files
authored
tweak: add newline between <content> and first line of read tool output to prevent confusion (anomalyco#21070)
1 parent 66b4e5e commit 3a0e00d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/tool/read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const ReadTool = Tool.defineEffect(
185185
)
186186
}
187187

188-
let output = [`<path>${filepath}</path>`, `<type>file</type>`, "<content>"].join("\n")
188+
let output = [`<path>${filepath}</path>`, `<type>file</type>`, "<content>" + "\n"].join("\n")
189189
output += file.raw.map((line, i) => `${i + file.offset}: ${line}`).join("\n")
190190

191191
const last = file.offset + file.raw.length - 1

0 commit comments

Comments
 (0)