[BUG] Ctrl + F2 Crash Claude

Resolved 💬 3 comments Opened May 28, 2025 by yhan1-godaddy Closed May 30, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [x] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.4 (Claude Code)
  • Operating System: macOS 15.5
  • Terminal: iTerm2

Bug Description

Crashes if you hit Ctrl + F2.
When trying to adjust brightness ..but missed the global key and hit Ctrl instead.

Steps to Reproduce

  1. Start Claude
  2. After starting, at any point, hit Ctrl + F2
  3. Crash

Expected Behavior

Not to crash

Actual Behavior

Crash

Additional Context

╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > Try "how do I log an error?"                                                                                                                                                    │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  ? for shortcuts


TypeError: Cannot read properties of undefined (reading 'startsWith')
    at EventEmitter.D (file:///Users/yhan1/.local/share/fnm/node-versions/v22.14.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:683:816)
    at EventEmitter.emit (node:events:530:35)
    at EventEmitter.emit (node:domain:489:12)
    at V71.processInput (file:///Users/yhan1/.local/share/fnm/node-versions/v22.14.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:676:718)
    at ReadStream.handleReadable (file:///Users/yhan1/.local/share/fnm/node-versions/v22.14.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:676:1049)
    at ReadStream.emit (node:events:518:28)
    at ReadStream.emit (node:domain:489:12)
    at emitReadable_ (node:internal/streams/readable:834:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)

Total cost:            $0.0024
Total duration (API):  4s
Total duration (wall): 5s
Total code changes:    0 lines added, 0 lines removed
Token usage by model:
    claude-3-5-haiku:  3.0k input, 20 output, 0 cache read, 0 cache write

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗