Roo-Code/src/core/assistant-message
Thomas Brugman 245c8f3269
Fix: Allow write_to_file to handle newline-only and empty content (#3550)
* Fix: Allow write_to_file to handle newline-only and empty content

* fix: update writeToFileTool to return early without error on missing or empty parameters

* fix: preserve newlines in content parameters and update error handling in writeToFileTool tests

* fix: update parseAssistantMessage and parseAssistantMessageV2 to preserve newlines in content parameters while stripping leading and trailing newlines

---------

Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
2025-06-23 18:43:49 -04:00
..
__tests__ Farewell jest (#4607) 2025-06-16 21:39:45 -07:00
index.ts Revert "Switch to the new Roo message parser" (#3649) 2025-05-15 21:28:44 -07:00
parseAssistantMessage.ts Fix: Allow write_to_file to handle newline-only and empty content (#3550) 2025-06-23 18:43:49 -04:00
parseAssistantMessageV2.ts Fix: Allow write_to_file to handle newline-only and empty content (#3550) 2025-06-23 18:43:49 -04:00
presentAssistantMessage.ts Add logic to prevent auto-approving edits of configuration files (#4667) 2025-06-13 19:58:55 -04:00