claude-code - 💡(How to fix) Fix [Bug] Undefined function error on `claude --resume` command [3 comments, 3 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#53097Fetched 2026-04-25 06:12:26
View on GitHub
Comments
3
Participants
3
Timeline
5
Reactions
4
Author
Timeline (top)
commented ×3cross-referenced ×1subscribed ×1

Error Message

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

RAW_BUFFERClick to expand / collapse

Bug Description claude --resume --> Pick my chat that previously crashed.

Any attempt to ask claude to look at my history and restore it, or even process why this bug report happens, lead to Claude failures. Other chats remain functional.

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

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

9244: ${K.join( 9245: 9246)}}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 f=(M)=>Ez({value:_v5.resolveLoopDefaultFire(M),mode:"prompt",priority:"later",isMeta:!0,workload:SSH}),Y=void 0,O=BC6({onFire:f,onFireTask:(M)=>{if(M.agentId){let w=dr(M.agentId,_.getState().tasks);if(w&&!sI(w.status)){fmH(w.id,M.prompt,z);return}E([ScheduledTasks] teammate ${M.agentId} gone,
removing orphaned cron ${M.id}),l$H([M.id]);return}let D=WB7(M.kind==="loop"?Claude resuming /loop wakeup (${qV4(new
Date)}):Running scheduled task (${qV4(new Date)}));q((w)=>[...w,D]),f(M.prompt)},isLoading:()=>K.current,assistantMode:$,getJitterCo nfig:t5H,isKilled:()=>!TZ(),getExtraTasks:$V4&&Y?()=>$V4.getRoutineCronTasks(Z_(),Y):void 0});return O.start(),()=>{O.stop()}},[$,q,_.getState,z])}function qV4(H){return H.toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).replace(/,? at |, /," ").replace(/ ([AP]M)/,($,q)=>q.toLowerCase())}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))});var OV4={};X$(OV4,{REPL:()=>QC6});function AV4(H){let $=dD8.c(14),{showAllInTranscript:q,virtualScroll:K,searchBadge:_,suppressShowAll:A,status:z}=H,f=A===void 0?!1:A,Y=J1("app:toggleTranscript","Global","ctrl+o"),O=J1("transcript:toggleShowAll","Transcript","ctrl+e"),M;if($[0]===Symbol.for("re act.memo_cache_sentinel"))M=kc7(),$[0]=M;else M=$[0];let D=M,w=D?op… Note: Content was truncated.

extent analysis

TL;DR

The issue is likely caused by an undefined function UKH and can be fixed by identifying and defining this function or resolving the dependency that is causing it to be undefined.

Guidance

  • Review the code in entrypoints/cli.js around line 9247 to understand the context of the UKH function call.
  • Check if UKH is supposed to be a function and if it's defined elsewhere in the codebase.
  • Investigate if there are any circular dependencies or missing imports that could be causing UKH to be undefined.
  • Consider searching the codebase for any recent changes that might have introduced this issue.

Notes

The provided code snippet is truncated, which limits the ability to provide a more specific solution. Additionally, without more context about the UKH function and its intended purpose, it's challenging to offer a precise fix.

Recommendation

Apply a workaround by commenting out or removing the line that calls UKH until the function can be properly defined or the dependency issue is resolved. This will prevent the error from occurring, but it may also disable some functionality.

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 [Bug] Undefined function error on `claude --resume` command [3 comments, 3 participants]