Claude Code v2.1.330 ·
Plugin hook sandbox now routes abort and timer cancelling through a guard
The sandbox that runs plugin hook code now wraps abort calls and timer cancelling, making it harder for plugin code to break out
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
PluginsArea: what it touches
Internal ChangesKind: in v2.1.330,
Internal ChangesSection of the release
What
Some plugins run hook code inside a sandbox, which is a walled-off area that limits what that code can reach. The setup of that sandbox now:
- wraps the standard way of aborting (cancelling) work in progress, so every abort passes through a guard first
- sends the cancel step of
clock.after and clock.every timers through the same guard
- passes one more setting to the audio helper that plugin code can use
Why
These changes harden the sandbox. Plugin code has fewer ways to escape it, for example by triggering an abort from deep inside a long chain of calls.
See this entry in the whole of v2.1.330 →