[BUG] claude --resume crashes immediately with TypeError: g9H is not a function
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 <session-id> crashes on startup before the REPL renders. The error is a TypeError from the minified CLI bundle where an internal callback (g9H, the onSessionRestored handler destructured from the remote-session hook) is undefined at call time. The crash happens synchronously during initial mount, so the session never loads.
What Should Happen?
The session should resume and the transcript should be restored into the REPL, same as any other --resume invocation.
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: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)
- pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
- fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
- async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18815:2361)
Context from the surrounding code: the crash originates near the FXK hook
return — { onBeforeQuery, onTurnComplete, onSessionRestored: g9H, render,
ownsInput } — and fires inside the useEffect that calls g9H(K) after HP_(K,
K8()) runs the initial-messages restore path.
Steps to Reproduce
- Have an existing session with ID ebd252d5-4861-4fd9-8ec8-1951d7f82baf (or
any prior session).
- Run: claude --resume ebd252d5-4861-4fd9-8ec8-1951d7f82baf
- CLI prints the g9H is not a function error and exits before the UI mounts.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.120 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
- Happens specifically on --resume <id>; starting a fresh claude session
works.
- The failing callback appears to be onSessionRestored returned from the
remote-session/FleetView hook (FXK). It's destructured unconditionally but
seems to be undefined in the non-remote (local resume) code path, so the
effect that fires it after initial-message load blows up.
- Session transcript file exists on disk at
~/.claude/projects/<project>/ebd252d5-4861-4fd9-8ec8-1951d7f82baf.jsonl and is
readable.