Copilot CLI macOS sandbox blocks Gradle daemon on localhost despite local networking being allowed

nugarov · ghdev · 2026-10-10

A GitHub copilot-cli issue reports that on macOS, even with the sandbox configured to allow both outbound and local networking, Gradle cannot run even an offline help task: the daemon starts and listens on localhost, but the client connection fails with java.net.SocketException: Operation not permitted before any task executes. Disabling the sandbox makes the identical command succeed.

Reproduced on Copilot CLI 1.0.93 and 1.0.95 with Gradle wrapper 9.1.0, Java 21 (Corretto), macOS 26.6.2 ARM64. The reporter argues that if the local-network setting intentionally excludes host loopback, /sandbox policy should say so and document a supported way to permit the required connection instead of forcing users to disable the sandbox entirely.

Original post →

More from coding & agent

coding & agent channel →