Skip to content

[BUG] write_to_file tool, if issue, creates shell scripts (not ideal) #11861

@jordan-carson

Description

@jordan-carson

Problem (one or two sentences)

If the write_to_file Native tool fails, instead of using a diff + edit tool or another tool, it instead creates a shell script, asking for approval, to change the contents of a file. This behavior did not occur when XML tooling was used. This does seem problematic for rather large files as listing or reading the contents of the file appear to be larger than the constraints of the write_to_file tool.

Context (who is affected and when)

All developers when trying to write to large files 1500 lines or more.

Reproduction steps

Create a large file, and try to change the contents of that file, whether its a small change or larger changes, ensure the change you are making exists near the middle (beyond 1400 lines or so).

Expected result

write_to_file writes the change without any shell scripting involved.

Actual result

write_to_file writes the change without any shell scripting involved.

Variations tried (optional)

Asked roo to use a different tool than write to file, but the constraints were apparent in these other tools.

App Version

3.50.4

API Provider (optional)

Anthropic

Model Used (optional)

Claude Opus 4.6

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions