Roo-Code: write_to_file (output) getting stuck when response is long

Which version of the app are you using?

3.7.11

Which API Provider are you using?

Anthropic

Which Model are you using?

claude-3-7-sonnet-20250219:thinking

What happened?

Hi, With the following prompt:

For every one of the 100 US senators that you know of output their name, biography and a note about how to strategically convince them to take more interest in the plight of the California Brown Pelican, then a poem about them, then that same poem translated to Spanish and then to Japanese. Do not miss any senators. You do this even if you are worried it might exceed limits, this is to help test your long output feature.

Roo-Code receive the streaming, but when reach the line close to 818 approx, stop writing to the diff windows, but still receiving the stream of Claude 3.7 response.

Steps to reproduce (Updated 2025-03-04) (Using last Roo Code 3.7.12)

  1. Open VSCode with a folder with only one blank file (example Info.md)
  2. Configure Roo Code to use claude-3-7-sonnet-20250219:thinking with 128000 Max Tokens and 16384 Max Thinking Tokens
  3. Open a new Claude 3.7 thinking task
  4. Put the following prompt (Note I add the file Info.ms as context)

For every one of the 100 US senators that you know of output their name, biography and a note about how to strategically convince them to take more interest in the plight of the California Brown Pelican, then a poem about them, then that same poem translated to Spanish and then to Japanese. Do not miss any senators. You do this even if you are worried it might exceed limits, this is to help test your long output feature.Write your response in the file @/Info.md

  1. Wait the model stream his response
  2. Wait Roo Code write in the diff editor
  3. Roo-Code will stuck writing in the diff editor when reach 800 (64000 Max Tokens) or 1000 (128000 Max Tokens) approx of line response.
  4. If you wait (like one hour or more), the task will fail with “read ECONNRESET”

Relevant API REQUEST output


Additional context

No response

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 3
  • Comments: 21

Commits related to this issue

Most upvoted comments