Output enters an infinite loop repeating the token "court"
Status Open
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 3 comments · opened Jun 16, 2026
Description
During a long Japanese (LaTeX editing) session in the Claude Code VS Code extension, the assistant's text generation repeatedly collapses into an infinite loop, emitting the single word "court" hundreds of times instead of the intended response or tool call. Once it starts, it recurs across many turns within the same session.
Trigger / Pattern
- Appears tied to generating Japanese prose immediately before or around a tool call (e.g. an Edit).
- Workaround that often helps: emitting the tool call with zero preamble text.
Impact
- Edits and replies get interrupted; the user must repeatedly stop generation.
Environment
- Claude Code: VS Code extension
- OS: Windows 11
- Model: claude-opus-4-8
- Frequency: started mid-session, recurred 10+ times.
Notes
Starting a fresh session appears likely to resolve it (session state seems to be a trigger).
3 Comments
Same phenomenon here (Japanese sessions, tool-call preambles,
claude-opus-4-8). I filed transcript-level occurrence data as #79011 — 37 bursts, all at ≥434k context, always replacing a tool call right after a prose preamble. Your "no preamble before tool calls" workaround matches the onset pattern in our data.Additional reproduction — Claude Code CLI, claude-opus-4-8, Windows 11
Confirming this on a long-running Claude Code CLI session. Same literal token
courtrepeatedly injected into the assistant's prose. Sharing quantified data from the session transcript in case it helps narrow the trigger.Environment
claude-opus-4-8computertool), ~170 assistant turnsSymptoms
courtis inserted into Japanese/English prose, frequently followed by an English self-correction (e.g. "Let me take the screenshot.").Quantified from the session log (jsonl, 504 lines / 172 assistant messages)
computercycles.Trigger hypothesis
Workaround (confirmed)
Happy to share more log detail if useful.
I ran into the same issue.
I'm using Claude Code 2.1.258 via the CLI on Windows with Opus 4.8, working on a Unity C# project. After I asked Claude to rebase a git branch, it started repeatedly outputting the word "court" in its responses. Claude kept working on the task, but while it continued to spam "court", the rebase itself ultimately failed. After that, I switched models and the problem did not recur.