Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Internal ChangesKind: in v2.1.274,
Internal ChangesSection of the release
What
When Claude Code runs a render hook (custom code that draws part of the interface) in its sandboxed JavaScript runtime, that runtime now captures references to Object.freeze, defineProperty, defineProperties, keys, Array.isArray, Map, JSON.stringify, Error, and TypeError into local constants up front, instead of referencing the global versions directly each time.
Why
This guards against a render hook tampering with these global objects or methods to interfere with how the sandbox itself works, making the sandbox more resilient against misbehaving or malicious render-hook code.