fix: restore content undefined check in WriteToFileTool.handlePartial() (#9614)

This commit is contained in:
Daniel 2025-11-26 11:16:47 -05:00 committed by GitHub
parent 56c630ca92
commit a8a44510d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -291,7 +291,7 @@ export class WriteToFileTool extends BaseTool<"write_to_file"> {
const relPath: string | undefined = block.params.path
let newContent: string | undefined = block.params.content
if (!relPath) {
if (!relPath || newContent === undefined) {
return
}