Under the hood
Plugin sandbox now installs timer and console globals only when asked
What
The setup function for a plugin's sandboxed JavaScript environment (a restricted execution context plugins run in) now takes its options as a destructured object with a new isInstallingGlobals flag. Installing setTimeout, setInterval, clearTimeout, clearInterval, and console into that sandboxed environment now only happens when this flag is set, instead of always happening.
Why
This gives Claude Code finer control over what a plugin sandbox is given access to, letting some sandboxes skip these globals entirely rather than always installing them.