[BUG] special characters prematurely terminate terminal response
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?
Claude repeatedly stopped mid-response at the same point, a backtick.
It seems to be triggered by markdown code formatting with backticks - the rendering cuts off mid-sentence when special characters appear in certain contexts.
Claude instructed me to record this here.
What Should Happen?
Continue through the complete response.
Error Messages/Logs
Steps to Reproduce
Tell me about thinking vs not thinking (tab toggle)
⏺ I couldn't find detailed documentation about this feature, but I can explain based on how Claude
Code works:
Thinking Mode Toggle:
Claude Code has different thinking modes that control whether you see my internal reasoning:
- With thinking (interleaved/auto): You see `
when Claude dropped special characters, the response was:
⏺ You're absolutely right, something is wrong with my output. Let me try again without special
characters:
Thinking Toggle (Tab key):
In Claude Code, you can press Tab to toggle whether you see my internal reasoning blocks.
- Thinking visible: You see blocks labeled "thinking" where I reason through problems step-by-step
before responding
- Thinking hidden: You only see my final responses and tool calls, making the conversation cleaner
Benefits:
- Visible thinking: Understand my reasoning process, useful for complex problems or debugging my
logic
- Hidden thinking: Cleaner interface, faster reading, just see the results
The MAX_THINKING_TOKENS setting in your config enables extended thinking mode, which gives me a
larger budget for complex reasoning tasks.
Does this explanation come through properly?
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.8 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗