[BUG] claude --resume crashes with "g9H is not a function" on latest version

Resolved 💬 4 comments Opened Apr 27, 2026 by Japhetmondragon Closed Apr 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Running claude --resume immediately crashes with an unhandled JavaScript error: g9H is not a function. (In 'g9H(K)', 'g9H' is undefined). The session picker never appears and the CLI exits.

What Should Happen?

claude --resume should display a list of previous sessions and allow resuming one of them.

Error Messages/Logs

ERROR  g9H is not a function. (In 'g9H(K)', 'g9H' is undefined)                                                                 
                                                                 
  /$bunfs/root/src/entrypoints/cli.js:9251:5663                                                                                   
                                                                                                                                  
   - <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9251:5663)                                                                  
   - WC (/$bunfs/root/src/entrypoints/cli.js:492:63749)                                                                           
   - pj (/$bunfs/root/src/entrypoints/cli.js:492:76948)
   - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)                                                                           
   - pj (/$bunfs/root/src/entrypoints/cli.js:492:76926)                                                                           
   - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)                                                                           
   - pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)                                                                           
   - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
   - pj (/$bunfs/root/src/entrypoints/cli.js:492:76926)                                                                           
   - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)

Steps to Reproduce

  1. Open a terminal in any directory with prior Claude Code sessions
  2. Run: claude --resume
  3. Select a session and enter
  4. CLI crashes immediately with the error above — no session picker appears

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

unknown

Claude Code Version

2.1.119 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

claude --continue works fine and picks up the most recent session. The crash originates in the onSessionRestored callback (g9H) which appears to be undefined — likely returned as such when the internal hook is initialized with enabled: false. The --resume flag still attempts to call it unconditionally when initialMessages (K) is present.

View original on GitHub ↗

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