[BUG] Pressing ESC occasionally kills the session and prevents further continuation
Resolved 💬 4 comments Opened Jul 23, 2025 by swombat Closed Aug 19, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.58
- Operating System: MacOS Sonoma 14.3.1
- Terminal: iTerm 2
Bug Description
I'm in the middle of working with Claude. All is good. It starts doing something I don't want. I press ESC to give it more instructions. Then this happens:
⏺ Now let me add the database seeding as specified in the plan. I need to check the current seeds file:
⏺ Read(db/seeds.rb)
⎿ Read 30 lines (ctrl+r to expand)
⏺ Let me look at the end of the seeds file to see where to add the BambooApp and feature flag seeds:
TypeError: Cannot read properties of undefined (reading 'message')
at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2341:798
at Array.filter (<anonymous>)
at Object.renderToolUseProgressMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2341:763)
at Object.renderToolUseRejectedMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2341:2307)
at Be2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2264:1247)
at QN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)
at dS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)
at uS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)
at nL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)
at qN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)
ERROR Cannot read properties of undefined (reading 'message')
file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2341:798
- (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2341:798)
- at Array.filter (<anonymous>)
- Object.renderToolUseProgressMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2341:763)
- Object.renderToolUseRejectedMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2341:2307)
- Be2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2264:1247)
- QN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19799)
- dS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)
- uS (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)
- nL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)
- qN (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)
We don't use seed.rb, but it'd be helpful to make sure there's always a BambooApp item
^[
^[^[^[
From this point on the session is dead and unrecoverable. Obviously not what I want when I press Escape.
Steps to Reproduce
Unclear, sorry... happens fairly haphazardly.
Expected Behavior
Pressing Escape should just allow me to add some input, as usual.
Actual Behavior
Session ded.
Additional Context
Already provided the log.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗