Output enters an infinite loop repeating the token "court"

Open 💬 0 comments Opened Jun 16, 2026 by ryo-8316-gt

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).

View original on GitHub ↗