What
Plugins can include hook modules: code that runs in a sandbox, a walled-off space kept apart from the rest of Claude Code. That sandbox now refuses more things:
- Dynamic
import()inside a hooks module is refused. - An entry module that exports the name
thenis rejected and must rename the export. - Values passed back to Claude Code cannot behave like promises (deferred results).
- Lists claiming an absurd length are rejected.
- Drawn screen elements that contain a Proxy (an object that intercepts access) are refused.
- Errors passing out of the sandbox are converted to a fallback error.
Why
The sandbox is tighter, so plugin hook authors may now see load errors for modules that used to work and need to adjust them.
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 whether plugin hook modules are switched on for every user.