Session resume fails with 'FKH is not a function' error in v2.1.120

Resolved 💬 3 comments Opened Apr 26, 2026 by Jaegerfeld Closed Apr 27, 2026

Bug Description

When trying to resume a saved session — either via claude --resume <name> or via the interactive picker — the CLI crashes with a JavaScript runtime error.

Steps to Reproduce

  1. Start a session with claude -n <session-name>
  2. End the session
  3. Try to resume it with claude --resume <session-name> or claude --resume (picker) and select any session
  4. Error occurs immediately

Expected Behavior

The session resumes and previous conversation is restored.

Actual Behavior

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

B:/~BUN/root/src/entrypoints/cli.js:9273:5663

Full stack trace:

- <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9273:5663)
- PI (B:/~BUN/root/src/entrypoints/cli.js:512:63749)
- Fw (B:/~BUN/root/src/entrypoints/cli.js:512:76948)
- P5 (B:/~BUN/root/src/entrypoints/cli.js:512:76827)

Root Cause (from minified source)

FKH is the onSessionRestored callback returned from XJ7(). It is called unconditionally at line 9273 when resuming a session with existing messages (K), but XJ7 returns undefined for this callback (likely because enabled: S is false). The call FKH(K) therefore throws.

The fix would be a null-check: if (FKH) FKH(K).

Environment

  • Claude Code version: 2.1.120
  • OS: Windows 10 Pro (10.0.19045)
  • Shell: PowerShell / bash

Impact

All session resumes are broken — the interactive picker loads correctly, but selecting any session triggers this error. There is currently no workaround to resume a previous session.

View original on GitHub ↗

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