--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

  1. Have existing Claude Code sessions in a project directory
  2. Run claude --continue or claude --resume <session-id>
  3. Accept the workspace trust prompt ("Yes, I trust this folder")
  4. 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 (claude without 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.json does not fix the issue
  • The bug affects both --continue (most recent session) and --resume <specific-id>

View original on GitHub ↗

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