[Bug] AskUserQuestion tool causes token loop with "court" repetition
Resolved 💬 2 comments Opened Jul 6, 2026 by ImYuya Closed Jul 10, 2026
Bug Description
Title: AskUserQuestion tool triggers degenerate token loop ("court" repeated)
When the assistant invokes the AskUserQuestion tool, the output stream
degenerates into hundreds of repetitions of the token "court" before/around
the tool call. It is reproducible and recurs every time AskUserQuestion is used.
- Model: Claude Opus 4.8 (claude-opus-4-8)
- Env: Claude Code CLI on macOS (darwin)
- Trigger: any AskUserQuestion call
- Frequency: every time (100% in this session)
- Workaround so far: avoid AskUserQuestion, ask in plain text
- Also observed: sometimes after reading images
- Attaching session transcript (contains multiple reproductions).
Environment Info
- Platform: darwin
- Terminal: xterm-256color
- Version: 2.1.201
- Feedback ID: 8536d3a5-6313-4b16-a956-a265b7c4d59b
Errors
[{"error":"Error: 413 {\"error\":{\"type\":\"request_too_large\",\"message\":\"Request exceeds the maximum size\"}}\n at generate (/$bunfs/root/src/entrypoints/cli.js:12:72264)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:52:7688)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-07-05T19:20:40.568Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗