2.1.120: TypeError "UKH is not a function" crashes `claude --resume` on startup
Resolved 💬 8 comments Opened Apr 24, 2026 by patunz Closed Apr 27, 2026
What's happening
On Claude Code 2.1.120 (Linux, standalone Bun-bundled binary), running claude --resume crashes immediately with:
ERROR UKH is not a function. (In 'UKH(K)', 'UKH' is undefined)
/$bunfs/root/src/entrypoints/cli.js:9247:5663
claude (no flags) starts a fresh session normally. Only --resume (and likely --continue) triggers the crash.
Repro
- Use 2.1.120 on Linux.
- From any directory with prior sessions, run
claude --resume. - Crash before the picker appears.
Tried, did NOT help
- Killing an orphaned
claude --resumeprocess from a previously SSH-disconnected session (cleaned the lock under~/.claude/sessions/), but--resumestill crashed. CLAUDE_CODE_DISABLE_CRON=1 claude --resume— same crash. So although the surrounding minified code showsuseScheduledTasks(Av5), the actual undefined symbolUKHis somewhere else on the resume init path.
Workaround that worked
Rollback to 2.1.119 (binary still cached locally under ~/.local/share/claude/versions/2.1.119) — --resume works again.
Likely cause
Looks like a bundle hoisting / lazy-init regression on the resume code path. Surrounding code uses the pattern \$v5=(NmH(),S6(kmH)) and _v5=(NmH(),S6(kmH)) (lazy module getters). Something in that chain resolves to \undefined\ and is then invoked as a function.
Surrounding minified code (from the error frame)
var \$v5,sv4=1000,qv5=300,Kv5=5000;
var FC6=T(()=>{L\$();V\$();Tp();zb();av4();\$\$();oN();\$v5=(NmH(),S6(kmH))});
var KV4={};X\$(KV4,{useScheduledTasks:()=>Av5});
function Av5({isLoading:H,assistantMode:\$,setMessages:q}){
let K=QD8.useRef(H);K.current=H;
let _=B9(),A=F6(),z=Ww();
QD8.useEffect(()=>{
if(!TZ()||R6())return;
...
let O=BC6({onFire:f,onFireTask:(M)=>{...},isLoading:()=>K.current,assistantMode:\$,getJitterConfig:t5H,isKilled:()=>!TZ(),getExtraTasks:\$V4&&Y?()=>\$V4.getRoutineCronTasks(Z_(),Y):void 0});
return O.start(),()=>{O.stop()}
},[\$,q,_.getState,z])
}
...
var QD8,_v5,\$V4=null;
var _V4=T(()=>{ES();L\$();h6();uT();eI();Yb();C4\$();FC6();zb();\$\$();Q3();D6();K_H();QD8=u(JH(),1),_v5=(NmH(),S6(kmH))});
Env
- Claude Code 2.1.120
- Linux 6.17.0-19-generic, bash
- Standalone install (\
~/.local/share/claude/versions/2.1.120\)
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗