Invalid regular expression error in parseClaudeStatus causes Claude Code to exit

Resolved 💬 3 comments Opened Jul 17, 2025 by it-all-playpark Closed Jan 5, 2026

Description

Claude Code exits with an uncaught exception after entering a prompt and trying to execute it. The process continues running in the background, but the Claude Code interface exits.

Error Message

2025-07-17T23:07:23.244Z ERROR [[SRV] cli] Uncaught exception: {}
2025-07-17T23:07:23.244Z ERROR [[SRV] cli] Stack trace: SyntaxError: Invalid regular expression: /[^
]**[^
]*to\s+interrupt[^
]*/gi: Nothing to repeat
    at new RegExp (<anonymous>)
    at Object.parseClaudeStatus [as parseStatus] (build/bundle.js:66804:27)
    at ActivityDetector.processOutput (build/bundle.js:66888:36)
    at build/bundle.js:68147:69
    at EventEmitter23.fire (build/bundle.js:1798:22)
    at ReadStream.<anonymous> (build/bundle.js:1900:34)
    at ReadStream.emit (node:events:507:28)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)

Steps to Reproduce

  1. Start Claude Code
  2. Enter a prompt
  3. Try to execute the prompt
  4. Claude Code exits with the above error

Expected Behavior

Claude Code should continue running and process the prompt without throwing a regex error.

Actual Behavior

Claude Code exits due to an uncaught SyntaxError related to an invalid regular expression in the parseClaudeStatus function.

Additional Context

The error appears to be in the regular expression pattern /[^
]**[^
]*to\s+interrupt[^
]*/gi
where ** is causing a "Nothing to repeat" error. This likely needs to be corrected to either * or + depending on the intended behavior.

The error occurs in:

  • Function: Object.parseClaudeStatus
  • File: build/bundle.js (line 66804)
  • Called by: ActivityDetector.processOutput

View original on GitHub ↗

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