Bug: resume fails with 'g9H is not a function' - all session-env directories are empty
Resolved 💬 1 comment Opened Apr 29, 2026 by joel-duqiong Closed May 30, 2026
Bug Description
Session resume fails with error g9H is not a function even on fresh/new sessions. All previous sessions are also unable to resume.
Steps to Reproduce
- Have an existing Claude Code session
- Attempt to resume it (either automatically or via
/resume) - Error:
g9H is not a function
Root Cause Analysis
All ~/.claude/session-env/{session-id}/ directories are empty (0 bytes). There are 35 session directories and none contain any state files.
Expected files that should exist in each session-env directory:
state.jsonor similar state persistence file
Without these files, the resume logic attempts to call a function (g9H) on undefined/null data.
Environment
- Platform: macOS (darwin 25.3.0)
- Claude Code version: 2.1.120 → upgraded to 2.1.123
- Installation: npm global (
/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code) teammateMode: "tmux"enabled in settings
Additional Context
- This affects ALL sessions, not just one specific session
- Even sessions created after the upgrade fail to resume
- The
session-data/*.tmpfiles exist and contain valid session content - The
session-env/directories are created but remain empty - Error occurs at session restore/bootstrap phase
Expected Behavior
Sessions should be resumable. The session-env/ directories should contain state files necessary for session recovery.
Impact
Critical - No sessions can be resumed, forcing users to start new sessions and lose conversation history.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗