Skip to content

[BUG] Intermittent failure: write_to_file called without required content parameter #12079

@rockey5520

Description

@rockey5520

Problem (one or two sentences)

Roo intermittently fails during execution by attempting to call write_to_file without the required content parameter, triggering retries and unstable behavior.

Context (who is affected and when)

This is affecting a large engineering team (~150 engineers) using Roo Code in daily workflows.
The issue appears during normal coding tasks and happens intermittently, making it hard to predict but noticeable at scale.

Reproduction steps

Environment/setup
VS Code: latest version
Roo Code extension: v3.51.1
Provider: Vertex
Model: claude-sonnet-4-6
Exact actions
Start a normal Roo Code task (e.g., generating or modifying code)
Let the agent proceed with file operations
Observed behavior

At some point during execution, Roo logs:

Roo tried to use write_to_file without value for required parameter 'content'. Retrying...
Task may retry or behave inconsistently afterward

Expected result

write_to_file should always be invoked with all required parameters, including content, and execute reliably without retries.

Actual result

Roo attempts to call write_to_file without the required content parameter, causing retries and intermittent instability.

Variations tried (optional)

Occurs across multiple users and machines
Seen with the same provider (Vertex) and model (claude-sonnet-4-6)
Not tied to a specific prompt or repository (so far)
Intermittent → no deterministic repro yet

App Version

v3.51.1

API Provider (optional)

Google Vertex AI

Model Used (optional)

claude-sonnet-4-6

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Date/time: 2026-04-08T11:57:55.852Z
Extension version: 3.51.1
Provider: vertex
Model: claude-sonnet-4-6

Roo tried to use write_to_file without value for required parameter 'content'. Retrying...

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