Commit c7c0996
committed
fix: restore content undefined check in WriteToFileTool.handlePartial()
Fixes error 'Error handling partial write_to_file' when native tools are not enabled.
PR #9542 unintentionally removed the newContent === undefined check from handlePartial(),
causing errors during XML protocol streaming when content arrives incrementally.
This restores the early return when content is undefined, preventing the method from
attempting file operations with incomplete data. The existing test at line 357-361
validates this behavior.1 parent f173c9c commit c7c0996
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| |||
0 commit comments