Repository navigation
docs: add macOS network sandbox troubleshooting to README - #10391
fede-kamel wants to merge 1 commit into
Conversation
On macOS, `network_access = true` in config.toml is silently ignored by the seatbelt sandbox, causing all outbound network calls to fail. This adds a troubleshooting section with a confirmed workaround. Ref: #10390
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
|
We've updated our contribution guidelines to indicate that we're no longer accepting unsolicited code contributions. All code contributions are by invitation only. To read more about why we've taken this step, please refer to this announcement. |
|
Understood — no problem at all. We respect the contribution guidelines. That said, it's a bit disappointing that there isn't a clearer channel for engineers who use Codex daily to contribute back meaningful fixes. This issue affects real workflows (cloud CLIs, API clients, package managers — all broken under the macOS sandbox). We did the work here — root cause tracing through the Rust code, confirmed workaround, integration tests proving the seatbelt behavior at the OS level, and tracing to help users debug the config resolution path. The issue and this PR will stay up as a reference for anyone searching. Wishing you all the best with the project. It's a great product — hope the feedback loop with your user community keeps improving. |
|
Just a few clarifications about the related issues you mentioned were "closed without workarounds":
|
|
Fair point — I overstated the connection to those issues. I'll clean up that comment. Thanks for the clarification. |
Summary
network_access = truefromconfig.toml--sandbox danger-full-accessCLI flag and shell alias)Context
On macOS, the seatbelt sandbox unconditionally sets
CODEX_SANDBOX_NETWORK_DISABLED=1, causing all outbound network calls to fail — even when the user has explicitly setnetwork_access = truein~/.codex/config.toml. This affects cloud CLIs (OCI, AWS, GCP), curl, package managers, and any workflow requiring network from within a Codex session.Multiple closed issues reference this problem (#8714, #5041, #3454, #5090) but none document the workaround in an easily discoverable place. This small README addition helps users find the fix without digging through issue threads.