-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.Someone is actively working on this. Should link to a PR soon.bugSomething isn't workingSomething isn't working
Description
Description
When using the write_to_file tool with empty content, Roo appears to proceed as if the operation completed successfully, but no file is actually created. This happens even when auto-approve is disabled, and there's no feedback to the model about the failure.
Reproduction Steps
- Start a new conversation with Roo
- Ask Roo to create an empty file using write_to_file with empty content
- Observe that Roo proceeds as if the file was created successfully
- Check that no file was actually created on disk
Example code:
<write_to_file>
<path>test_insert.txt</path>
<content></content>
<line_count>0</line_count>
</write_to_file>
Expected Behavior
- It should create an empty file as requested
Actual Behavior
The tool appears to succeed (no error is returned to the model), but no file is actually created. The model continues with its task as if the file was created successfully.
Environment
- Roo Version: 3.17.1
- API Provider: Anthropic
- Model: sonnet-3.5
Additional Context
This issue could lead to confusion in workflows where empty files are needed or where the model assumes a file exists when it doesn't.
dosubot
Metadata
Metadata
Assignees
Labels
Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.Someone is actively working on this. Should link to a PR soon.bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done