[BUG] regression: 2.1.120: ERROR UKH is not a function. Error: sandbox required but unavailable

Resolved 💬 2 comments Opened Apr 26, 2026 by powerman Closed Apr 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I'm running claude inside a bwrap sandbox.
Versions up to 2.1.119 works fine, but 2.1.120 fails to resume previous session when started with -r flag after choosing the session.
Without -r it starts and /resume inside Claude works.

What Should Happen?

Claude should resume previous session when started with -r flag.

Error Messages/Logs

$ claude -r
...choose previous session...
                         
  ERROR  UKH is not a function. (In 'UKH(K)', 'UKH' is undefined)                                   
                                                                                                    
 /$bunfs/root/src/entrypoints/cli.js:9247:5663                                                      
                                                                                                    
 9244: ${K.join(`                                                                                   
 9245:                                                                                              
...

 9248: Error: sandbox required but unavailable: ${j$}
 9249: `+`  sandbox.failIfUnavailable is set \u2014 refusing to start without a working sandbox.
 9250:

 - <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9247:5663)
 - JR (/$bunfs/root/src/entrypoints/cli.js:492:63749)
 - Bw (/$bunfs/root/src/entrypoints/cli.js:492:76948)
 - Xz (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - Bw (/$bunfs/root/src/entrypoints/cli.js:492:76926)
 - Xz (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - Bw (/$bunfs/root/src/entrypoints/cli.js:492:77745)
 - Xz (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - Bw (/$bunfs/root/src/entrypoints/cli.js:492:76926)
 - Xz (/$bunfs/root/src/entrypoints/cli.js:492:76827)

Steps to Reproduce

  1. claude -r
  2. Choose previous session and press Enter.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.119

Claude Code Version

2.1.120

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

Gentoo Linux, bwrap, foot terminal.

View original on GitHub ↗

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