[BUG] Claude stuck in loop constantly repeating entire conversation
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 just started using claude code cli for the first time ever like half an hour ago and was making the CLAUDE.md and answering some basic questions about the codebase and then in a response claude went crazy and was streaming pages and pages of content, when I tried to kill the process it wouldn't take me back to a command prompt, and when I read the contents it seemed to be the full conversation both my messages, claude's messages, even repeating the intro text e.g.
● Update(CLAUDE.md)
⎿ Updated CLAUDE.md with 8 additions and 3 removals
82 - NoSQL document store optimized for mobile/web apps
83
84 **PostgreSQL (In Migration)**:
╭─── Claude Code v2.0.33 ────────────────────────────────────────────────────────────────────────────╮
│ │ Tips for getting started │
│ Welcome back James! │ Run /init to create a CLAUDE.md file with instructions for Claude │
│ │ ───────────────────────────────────────────────────────────────── │
│ ▐▛███▜▌ │ Recent activity │
│ ▝▜█████▛▘ │ No recent activity │
│ ▘▘ ▝▝ │ │
│ │ │
│ Sonnet 4.5 · Claude Pro │ │
│ C:\Users\me\workspace\pebl │ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
````
and it seems to have used heaps of tokens
### What Should Happen?
not get caught in a loop using up all my tokens on nothing and also if I ctrl+c it should properly break out of the program so I'm not worried it's not doing something in the background I don't want
### Error Messages/Logs
```shell
just my conversation repeated over and over
Steps to Reproduce
I'm not sure, it was just basic questions about my project setup then claude just started spewing text at me
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.33
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
using git bash on windows
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗