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)
- Open VSCode with a folder with only one blank file (example Info.md)
- Configure Roo Code to use claude-3-7-sonnet-20250219:thinking with 128000 Max Tokens and 16384 Max Thinking Tokens
- Open a new Claude 3.7 thinking task
- 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
- Wait the model stream his response
- Wait Roo Code write in the diff editor
- Roo-Code will stuck writing in the diff editor when reach 800 (64000 Max Tokens) or 1000 (128000 Max Tokens) approx of line response.
- 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
- Merge pull request #1317 from brownrw8/i18l-l10n Adding react-i18next (preliminary support for en, de, zh, ja) — committed to ipattis/roo-code by ocasta181 2 years ago
https://github.com/user-attachments/assets/7aaf5932-a9f1-42aa-a668-002e61301413 Was able to repro steps as outlined by @AntonioIbarraOrtiz. Mine froze up at line 1071