What
An HTTP hook is a hook that Claude Code runs by sending a web request to an address you set. Several things changed in how these are sent:
- Hooks whose address is on this computer are now sent directly, not through the proxy set in your environment.
- If the sandbox proxy (the network gatekeeper used when Claude Code runs in a sandbox) refuses a blocked address, Claude Code tries again through 127.0.0.1.
- An answer read after the hook's timeout now counts as timed out, unless the answer refuses the action.
- A "connection refused" error now comes with an extra hint.
Before, the proxy was always used when one was set, and late answers had no special rule.
Why
If you run hooks against a local server while a proxy is set, they now reach it directly. A slow hook can no longer approve an action after its time is up.