tweak: add newline between <content> and first line of read tool output to prevent confusion (#21070)

copilot/research-opencode-server-plugin-api
Aiden Cline 2026-04-04 21:55:22 -07:00 committed by GitHub
parent 66b4e5e020
commit 3a0e00dd7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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