claude --resume crashes with "FKH is not a function" on v2.1.120

Resolved 💬 3 comments Opened Apr 25, 2026 by henrysaenz Closed Apr 27, 2026

Version: 2.1.120 (Claude Code)
Platform: Windows 11 Home, PowerShell

Steps to reproduce

  1. Have a previous Claude Code session
  2. Run claude --resume from the terminal

Error

ERROR  FKH is not a function. (In 'FKH(K)', 'FKH' is undefined)
  B:/~BUN/root/src/entrypoints/cli.js:9273:5663

Root cause (analyzed)

onSessionRestored (mangled as FKH) is destructured from XJ7({enabled: S, ...}) where S is always false in CLI mode (const S = useMemo(() => false, [])). The function returns undefined for that callback, but it is called unconditionally when initialMessages (K) has length > 0 during session restoration:

useEffect(() => {
  if (K && K.length > 0)
    sW8(K, Kq()), GMq(...), BIq(K), pc(K), oMH.current.current = I38(K, Fq), FKH(K)  // FKH is undefined
}, []);

Expected behavior

Session resumes normally.

Actual behavior

CLI crashes immediately on --resume — session cannot be restored.

View original on GitHub ↗

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