[BUG] the model produced a very long repetitive text output ("All files are read. Making all changes now.") in a loop without calling any tools, after completing a batch of parallel Read tool calls.
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I'm working on a Ruby on Rails project using Claude Code via Anthropic's Claude Code button inside RubyMine (Jetbrains). I was asked by Claude if I was ready to proceed with a plan for a feature enhancement, and it went into an infinite loop of "All files are read. Making all changes now."), even though it doesn't have permission to do changes to any file or run any batch command without explicit permission. I ESCaped the Claude command line and it immediately responded affirmatively. I told Claude what had happened, and it said that it had gone into a loop without calling any tools, after completing a batch of parallel Read tool calls.
I confirmed with git in a separate command line that no files had been touched or created.
What Should Happen?
It shouldn't have
- Gone into an infinite loop.
- Shouldn't have claimed to be writing files.
It should have continued in normal operation building the feature we're working on from a plan.
Error Messages/Logs
There are no debug logs for the session. Claude says its session ID is 6866865e-423f-475c-956f-7364b168cc54 if that is of any help to you.
Steps to Reproduce
I don't know how to reproduce it.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
This version.
Claude Code Version
2.1.85
Platform
Other
Operating System
macOS
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
I'm using RubyMine on macOS Tahoe (26.3.1(a) (25D771280a)) on a 2020 Intel Core I5 MacBook Pro.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗