sandboxPolicy always lists 127.0.0.1 and localhost in allowHosts, and claudeSettings passes them as network.allowedDomains. The sandbox runtime refuses loopback through its proxy unless the IP literal is allow-listed, so a shell that sends a request through the proxy (HTTP_PROXY) can reach any loopback port outside the sandbox. Narrow to the forge port (127.0.0.1:PORT). test/crew-sandbox-real.test.ts ties the proxy result to allowHosts and flips when this is fixed.
sandboxPolicy always lists 127.0.0.1 and localhost in allowHosts, and claudeSettings passes them as network.allowedDomains. The sandbox runtime refuses loopback through its proxy unless the IP literal is allow-listed, so a shell that sends a request through the proxy (HTTP_PROXY) can reach any loopback port outside the sandbox. Narrow to the forge port (127.0.0.1:PORT). test/crew-sandbox-real.test.ts ties the proxy result to allowHosts and flips when this is fixed.