[Bug] `claude --continue` crashes with "g78 is not a function" on session resume
Bug Description
Running claude --continue crashes immediately with "g78 is not a function" before the session loads. Reproduces on multiple macOS machines (Apple Silicon), all on 2.1.120. claude doctor is clean. Starting with plain claude works; have not yet tested whether /resume from inside a fresh session works around it.
Error and stack trace:
ERROR g78 is not a function. (In 'g78(z)', 'g78' is undefined)
/$bunfs/root/src/entrypoints/cli.js:9247:5663
- <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9247:5663)
- WC (/$bunfs/root/src/entrypoints/cli.js:492:63749)
- pT (/$bunfs/root/src/entrypoints/cli.js:492:76948)
- MY (/$bunfs/root/src/entrypoints/cli.js:492:76827)
- pT (/$bunfs/root/src/entrypoints/cli.js:492:77745)
- MY (/$bunfs/root/src/entrypoints/cli.js:492:76827)
- pT (/$bunfs/root/src/entrypoints/cli.js:492:76926)
- MY (/$bunfs/root/src/entrypoints/cli.js:492:76827)
- pT (/$bunfs/root/src/entrypoints/cli.js:492:77745)
- MY (/$bunfs/root/src/entrypoints/cli.js:492:76827)
- async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18804:11089)
Looks like g78 is the destructured onSessionRestored from the cowork/remote hook, which is undefined in local sessions but called unconditionally on the resume path when initial messages are present.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.120
- Feedback ID: b8595e38-255c-4a4d-938d-91dd2f04218c
Errors
[]
Environment:
- Claude Code: 2.1.120
- Install method: native installer (or npm — whichever applies)
- macOS: 15.x, Apple Silicon (M4 Mac Mini)
- Affected machines: 2 of 2 tested
/resumefrom fresh session: works / also crashes / not yet tested- Last known-good version: unknown
- Searched existing issues for "g78" and "onSessionRestored": no matches
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗