Unclear It is not clear what turns on the new BUN_OPTIONS handling, so it is not clear which users get it.
What
Bun is a program that runs JavaScript, and BUN_OPTIONS is an environment variable (a named value a program reads when it starts) that passes it extra options. Claude Code can now set BUN_OPTIONS before running a shell command, to turn off Bun's automatic package installs.
- If it cannot set
BUN_OPTIONS, the command is not run. It stops with exit code 126 and the message "Claude Code did not run this command: it could not set BUN_OPTIONS". - When
CLAUDE_CODE_REMOTEis set, the existing step that adds--smoltoBUN_OPTIONSnow uses the shell's built-inexport, so a customexportin your shell setup cannot replace it.
Why
Shell commands run through Claude Code can now fail with exit code 126 if something in your shell environment stops BUN_OPTIONS from being set.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear what turns on the new `BUN_OPTIONS` handling, so it is not clear which users get it.