claude-code - 💡(How to fix) Fix --resume crashes with "g9H is not a function" (runtime JS error) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53150Fetched 2026-04-26 05:23:07
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×5

Running claude --resume <session-id> crashes immediately with a JavaScript runtime error. The session cannot be resumed.

Error Message

ERROR  g9H is not a function. (In 'g9H(K)', 'g9H' is undefined)

/$bunfs/root/src/entrypoints/cli.js:9251:5663

Root Cause

Running claude --resume <session-id> crashes immediately with a JavaScript runtime error. The session cannot be resumed.

Code Example

claude --resume <session-id>

---

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)
RAW_BUFFERClick to expand / collapse

Description

Running claude --resume <session-id> crashes immediately with a JavaScript runtime error. The session cannot be resumed.

Steps to Reproduce

claude --resume <session-id>

Error

ERROR  g9H is not a function. (In 'g9H(K)', 'g9H' is undefined)

/$bunfs/root/src/entrypoints/cli.js:9251:5663

Stack Trace

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

Environment

  • Claude Code version: 2.1.119
  • OS: macOS (Darwin 25.3.0)
  • Shell: zsh

extent analysis

TL;DR

The issue is likely due to a JavaScript runtime error caused by an undefined function, and checking the claude code version and dependencies may help resolve the issue.

Guidance

  • Verify that the claude version 2.1.119 is compatible with the current environment and dependencies.
  • Check the entrypoints/cli.js file for any syntax errors or missing function definitions, specifically around line 9251.
  • Investigate if there are any known issues or updates available for the claude version 2.1.119 that may address the JavaScript runtime error.
  • Consider reaching out to the claude development team or community for further assistance, as the error message suggests a potential issue with the claude codebase.

Notes

The provided information suggests a potential issue with the claude codebase, but without more context or details about the claude project, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Reach out to the claude development team or community for further assistance, as the error message suggests a potential issue with the claude codebase.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix --resume crashes with "g9H is not a function" (runtime JS error) [1 participants]