--continue and --resume crash with "undefined is not an object" in v2.1.37/v2.1.38
Resolved 💬 3 comments Opened Feb 10, 2026 by cwcorella-git Closed Feb 13, 2026
Description
The --continue and --resume commands crash immediately after accepting the workspace trust prompt with a JavaScript error.
Error Message
ERROR undefined is not an object (evaluating 'H.match')
/$bunfs/root/claude:1950:13355
Affected Versions
- ❌ v2.1.37 - crashes
- ❌ v2.1.38 - crashes
- ✅ v2.1.29 (stable) - works correctly
Steps to Reproduce
- Have existing Claude Code sessions in a project directory
- Run
claude --continueorclaude --resume <session-id> - Accept the workspace trust prompt ("Yes, I trust this folder")
- Error appears immediately after trust is accepted
Environment
- OS: Ubuntu Linux (kernel 6.17.9)
- Installation method: Native (
claude install stable/claude update) - Shell: bash
Workaround
Downgrade to stable version:
claude install stable
This installs v2.1.29 which works correctly.
Additional Context
- Fresh sessions (
claudewithout flags) work fine in all versions - The error occurs in minified code, appears to be a null/undefined reference when parsing session data
- Clearing cache (
~/.claude/cache/) does not fix the issue - Removing and regenerating
sessions-index.jsondoes not fix the issue - The bug affects both
--continue(most recent session) and--resume <specific-id>
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗