Roo-Code/src/core/tools
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__ Fixes #4882: Remove experimental setting for command execution in attempt_completion (#4884) 2025-06-20 17:48:01 -04:00
accessMcpResourceTool.ts Rename Cline to Task (#3352) 2025-05-08 12:47:50 -07:00
applyDiffTool.ts feat: Enhance apply_diff with XML for multi-file/multi-diff operations & batch UI (#3342) 2025-06-12 12:36:34 -04:00
askFollowupQuestionTool.ts Rename Cline to Task (#3352) 2025-05-08 12:47:50 -07:00
attemptCompletionTool.ts Fixes #4882: Remove experimental setting for command execution in attempt_completion (#4884) 2025-06-20 17:48:01 -04:00
browserActionTool.ts Rename Cline to Task (#3352) 2025-05-08 12:47:50 -07:00
codebaseSearchTool.ts Handle partial messages in the codebase search tool (#3934) 2025-05-24 14:33:29 -04:00
executeCommandTool.ts Remove warning about commands switching working directory (#4795) 2025-06-17 14:58:03 -04:00
fetchInstructionsTool.ts Rename Cline to Task (#3352) 2025-05-08 12:47:50 -07:00
insertContentTool.ts Add logic to prevent auto-approving edits of configuration files (#4667) 2025-06-13 19:58:55 -04:00
listCodeDefinitionNamesTool.ts Make listing tools respect auto-approve settings for outside of the workspace (#4682) 2025-06-13 23:12:31 -04:00
listFilesTool.ts Make listing tools respect auto-approve settings for outside of the workspace (#4682) 2025-06-13 23:12:31 -04:00
multiApplyDiffTool.ts Encourage use of start_line in multi-file diff to match legacy diff (#4777) 2025-06-17 10:40:37 -04:00
newTaskTool.ts Support config policies that require use of cloud (#4762) 2025-06-16 18:31:22 -04:00
readFileTool.ts Fix errant maxReadFileLine default (#4683) 2025-06-13 23:30:28 -04:00
searchAndReplaceTool.ts Add logic to prevent auto-approving edits of configuration files (#4667) 2025-06-13 19:58:55 -04:00
searchFilesTool.ts Adjust searching outside of the workspace to respect the auto-approve… (#4670) 2025-06-13 18:49:39 -04:00
switchModeTool.ts Rename Cline to Task (#3352) 2025-05-08 12:47:50 -07:00
ToolRepetitionDetector.ts Move presentAssistantMessage into its own module (#3345) 2025-05-08 11:59:03 -07:00
useMcpToolTool.ts feat(mcp): improve mcp with McpExecution, make UX like terminal execute (#3485) 2025-06-12 00:46:07 -04:00
validateToolUse.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
writeToFileTool.ts Fix: Allow write_to_file to handle newline-only and empty content (#3550) 2025-06-23 18:43:49 -04:00