codex icon indicating copy to clipboard operation
codex copied to clipboard

[macOS Desktop 26.1117.41037] Local Work ignores enabled network access settings and forces CODEX_SANDBOX_NETWORK_DISABLED=1

Open wusun-source opened this issue 1 week ago • 30 comments

What version of the Codex App are you using (From “About Codex” dialog)?

ChatGPT Desktop 26.1117.41037 (build 29803) / bundled codex-cli 0.171.0-alpha.13

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Darwin 25.4.0 arm64 arm (macOS Apple Silicon)

What issue are you seeing?

In ChatGPT Desktop 26.1117.41037 on macOS Apple Silicon, newly created Work sessions consistently run inside a network-disabled sandbox (CODEX_SANDBOX_NETWORK_DISABLED=1) and fail all outbound DNS/HTTPS requests (curl: (6) Could not resolve host: example.com / mineru.net), even though both network access settings are enabled and the desktop app has been completely quit and restarted multiple times.

At the exact same time on the same Mac, the system terminal and standalone/local Codex sessions (01a1fde0-a16a-7713-9cc9-7f53e886bfc6) receive HTTP 200 responses from the same hosts immediately.

What steps can reproduce the bug?

Uploaded feedback thread IDs:

  • no-active-thread-01a1fe1a-c0c5-7ea3-9dca-60f0d3431d51 (request_id: feedback/upload:a850a593-5b0c-4518-abb7-bb8c3d5dc699)
  • no-active-thread-01a1fe27-aba7-7d53-b565-794cbd5035ff (request_id: feedback/upload:e106edd8-af38-4998-98fc-1212751cfc3a)

Steps:

  1. On macOS Apple Silicon (ChatGPT Desktop 26.1117.41037, personal Plus workspace owner, no MDM / no /etc/codex/managed_config.toml), enable:
    • Settings -> Data Controls -> Work network access = On (enable_flora_network_access = true)
    • Settings -> Configuration -> Work -> Local file access = Workspace write (sandboxMode = "workspace-write") and Local network access = On (networkAccess = true via /wham/work/settings)
  2. Wait for all active runs to finish, then completely quit and restart ChatGPT Desktop (tested across full restarts at 2026-11-21 11:36:33 UTC and 12:20:48 UTC).
  3. Start a new Work conversation and run: env | grep CODEX_SANDBOX; curl -I --max-time 10 https://example.com
  4. Output still shows CODEX_SANDBOX_NETWORK_DISABLED=1 and curl: (6) Could not resolve host: example.com.

Failed session / thread IDs:

  • 2026-11-21 12:21:23 UTC (post-restart): Conversation ID: 6b018cc0-5f38-83e9-9fb7-854404cbd1d3 Durable Thread ID: 6b018cc0-d1a4-83ea-9c9f-01123b0d200e Local Session Route: local-chatgpt:a7f82c77-16c0-4cea-97cc-af8d4a382a84 Rendezvous Request ID: req_a345c2ba88d84408bd7fa7504f60862c
  • 2026-11-21 12:18:58 UTC: Conversation ID: 6b018c2e-9038-83ea-87d5-6aa2c3d57967 Durable Thread ID: 6b018c2f-07cc-83ea-8ee3-662a67a5e025
  • 2026-11-21 12:05:47 UTC: Conversation ID: 6b018911-3674-83e9-ad6e-c1e9e7d383a4 Durable Thread ID: 6b018911-a1c0-83ea-9075-ea2ce700b01a
  • 2026-11-21 11:47:58 UTC: Conversation ID: 6b0184e9-3c70-83ea-a78f-3ab046685cab Durable Thread ID: 6b0184e9-d7ec-83e9-9b10-c3d55a2f703a
  • Executor Environment ID: ccarenv_b64_Y2NhcmVudl82YWJjYmVhOTUxODg4MTkxYTFkODQ0OWMyNmU4ZDRhZA

What is the expected behavior?

When "Work network access = On" and "Settings -> Configuration -> Work -> Local file access = Workspace write + Local network access = On" are enabled, new Local Work sessions (tpp-local-executor / codex exec-server) should receive network-enabled sandbox permissions without CODEX_SANDBOX_NETWORK_DISABLED=1, allowing outbound DNS and HTTPS requests.

Additional information

Root-cause findings from inspecting app.asar and local desktop logs:

  1. Settings -> Data Controls -> Work network access patches enable_flora_network_access = true, which is never read or forwarded to tpp-local-executor or codex_config.
  2. Settings -> Configuration -> Work -> Local file access = Workspace write and Local network access = On are saved to /wham/work/settings and sent in codex_config when submitting a Classic Work (conversation_origin: "tpp") turn with tppExecutionTarget (kind: "local_executor").
  3. However, when the cloud Work orchestrator dispatches process/start RPCs to the local codex exec-server, it still passes a network-restricted sandbox policy, causing SandboxManager::transform to apply macOS Seatbelt without network outbound permission and inject CODEX_SANDBOX_NETWORK_DISABLED=1.
  4. Confirming contrast: when reopening an older pre-restart Work conversation (6b017ee7-9050-83e9-98b8-cfc95adea488 / durable thread 6b017ee7-fd80-83e9-99b4-7c0b93701005) after restarting ChatGPT Desktop, the client loses in-memory tppExecutionTarget (null) on reload, omits conversation_execution_target (no IAB_LIFECYCLE prepared local Work session route logged), and falls back to the cloud container where enable_flora_network_access works and curl succeeds. Starting any new Work chat re-attaches local_executor and immediately breaks network access again.

Related issues: #57856, #61114, #62291.

wusun-source avatar Nov 21 '26 13:11 wusun-source

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #62291
  • #62851

Powered by Codex Action

github-actions[bot] avatar Nov 21 '26 13:11 github-actions[bot]

Same problem. This is probably a bug introduced by recent update. The DNS lookup fails in new sessions. But it still works in old sessions created a few days ago.

sy-github avatar Nov 22 '26 17:11 sy-github

I’m seeing the same issue after updating to ChatGPT Desktop 26.1117.41037 on macOS (Apple Silicon).

My local ChatGPT Work session sets CODEX_SANDBOX_NETWORK_DISABLED=1. DNS lookups for public hosts fail, and a direct TCP connection to a public IP address also fails with Operation not permitted.

QingjingFei avatar Nov 23 '26 09:11 QingjingFei

Same here on 26.1117.41037 both on Mac and Windows.

One thing I noticed is that at least for me, new local Work chats have the "Ask for approval" option greyed out and default to "Approve for me". Inside those new chats, shell escalation with require_escalated does not seem to work, while old chats can still be switched to "Ask for approval" and require_escalated works.

I'm saying this because CODEX_SANDBOX_NETWORK_DISABLED=1 doesn't necessarily seem to be the primary problem. The old chats from a few days ago also have that flag set, but can get around the restriction by escalating, while new chats seem to have no way of doing so.

CarstenNeubert avatar Nov 23 '26 13:11 CarstenNeubert

Additional reproduction evidence from ChatGPT Desktop 26.1117.41037 on macOS (23 November 2026). Identifying paths, account details, session IDs, internal hosts, and credentials have been omitted.

Configuration and comparison

  • Settings → Data controls → Work network access: On.
  • Settings → Configuration → Work → Local network access: enabled for testing.
  • New ChatGPT Work conversation: shell reports managed workspace-write with restricted networking and effective approval policy granular. It reports that sandbox escalation requests are automatically rejected / unavailable.
  • User-level Codex TOML requests sandbox_mode = "danger-full-access" and approval_policy = "never", but these are not the effective permissions of this Work session. This difference does not by itself prove Work should inherit Codex's settings.
  • In the same Desktop app, a Codex conversation with Full access successfully executes curl -I https://example.com and receives HTTP/2 200. The macOS Terminal also receives HTTP/2 200. A separate built-in ChatGPT Work browser (iab via cua_repl) successfully opens example.com and an authenticated site, so browser connectivity is distinct from Work shell access.

Reproducible Work-shell diagnostics

CODEX_SANDBOX_NETWORK_DISABLED=1
curl -4 -I --connect-timeout 5 --max-time 10 https://example.com
  exit 6: curl: (6) Could not resolve host: example.com
dscacheutil -q host -a name example.com
  exit 0, no records returned
resolver lookup
  gaierror(8, 'nodename nor servname provided, or not known')

TCP and UDP socket creation succeed, but attempted outbound connections return PermissionError: [Errno 1] Operation not permitted. The numeric-address connection failure occurs independently of DNS.

Distinguishing finding: The Work shell cannot request a network permission escalation under its effective granular approval policy. This is more than a DNS resolver issue. The observed restriction is enforced on outbound network connections. It remains to be established whether Work received an unintended policy, is operating under an intentionally different policy, or is hitting a Desktop/session policy-propagation defect.

No application configuration was altered during these Work-shell diagnostics.

anthonypaddison avatar Nov 23 '26 14:11 anthonypaddison

Same here on 26.1117.41037 on Mac. Any workarounds?

stopdesign avatar Nov 23 '26 19:11 stopdesign

Issue persists on macOS with 26.1120.41243 with embedded codex-cli 0.171.0-alpha.13.2.

Additionally, the permissions per work chat is now gone, and new settings can be found under Settings > App > Configuration > Work

However, even with the most permissive settings possible, attempting to use ssh returns Operation not permitted and the attempt to work around it with Computer Use gets blocked, despite being prompted and allowing it. After checking, new sessions are still set to CODEX_SANDBOX_NETWORK_DISABLED=1 in new work sessions in and outside of project folders. I even tried creating a config.toml file for a project folder, and setting network_access = true under [sandbox_workspace_write], but it's still being enforced.

image

DeusMaximus avatar Nov 24 '26 03:11 DeusMaximus

I can reproduce this in local Work on ChatGPT Desktop 26.1117.41037 (build 29803), running on Apple Silicon with macOS Tahoe 26.7.3 (25G342).

My ~/.codex/config.toml uses workspace-write with sandbox_workspace_write.network_access = true. The Work session reports CODEX_SANDBOX_NETWORK_DISABLED=1.

  • Git fails with Could not resolve host: github.com.
  • SSH to a public VPS fails immediately with Operation not permitted. The same command succeeds from macOS Terminal on the same Mac. The failure also persisted after switching from Wi-Fi to Ethernet.
  • A listener on 127.0.0.1 fails with EPERM. The request to escalate the SSH check was rejected because the session has sandbox_approval: false.

It would help if local Work showed which effective policy disables network access and provided a way to request approval when the policy allows it.

rafaehlers avatar Nov 24 '26 05:11 rafaehlers

I’m hitting this too in ChatGPT Work on an Apple Silicon Mac, desktop version 26.1117.41037 (build 29803). This is a local Work chat inside a ChatGPT Project.

  • git ls-remote https://github.com/git/git.git HEAD fails with Could not resolve host: github.com (exit 128). That’s a public repo, so it never even gets to authentication.
  • In my project checkout, git fetch origin main fails with cannot open '.git/FETCH_HEAD': Operation not permitted. Retrying with --no-write-fetch-head hits the DNS error instead.
  • Work rejected a one-time approval request for that exact fetch before running it. No prompt reached me.

On the same Mac, native Codex CLI (0.171.0) with Approve for me successfully fetched from GitHub into a disposable checkout. The local repo permissions also checked out. The failures are specific to Work in my tests.

This makes unattended project work stop at the first fetch. I know I can switch to native Codex. What I need is for Git to work from ChatGPT Work inside the Project. Is there a supported way to let routine Git operations for one trusted repo run with automatic review, without giving Work full access to the Mac? If this is a regression, will the fix also apply to existing Work chats?

benlesh avatar Nov 24 '26 15:11 benlesh

Same problem here with 26.1120.41243 on Apple Silicon M2. One workaround is to use CLI. Run "/Applications/ChatGPT.app/Contents/Resources/codex-cli/CodexCLI.app/Contents/MacOS/codex"

marshallma21 avatar Nov 24 '26 18:11 marshallma21

Component Version
Desktop client 26.1120.50957 (build 30866)
Embedded codex-cli 0.171.0-alpha.13.2

Still experiencing this issue after updating this morning. Despite permissive settings under Settings > App > Configuration > Work and ensuring Work network access is enabled under Settings > Data & Privacy > Data controls, CODEX_SANDBOX_NETWORK_DISABLED is still 1, and any computer use prompts are recorded as aborted after 0.1 seconds despite me approving them.

Additional note:

I also tried disabling network access in both locations in the ChatGPT desktop app and re-enabling network access, with a full shutdown of the app before and after each change, and then reopened and tried again, but CODEX_SANDBOX_NETWORK_DISABLED is still being enforced.

DeusMaximus avatar Nov 24 '26 23:11 DeusMaximus

I reproduced this on an Apple Silicon Mac after updating ChatGPT Desktop from 26.1120.41243 to 26.1120.50957 (build 30866). I resumed the same Work conversation after the update. The Work settings screen showed File access: Workspace write and Network access: On.

The Work shell still reported CODEX_SANDBOX_NETWORK_DISABLED=1. I checked three local operations:

  • From Mix, :gen_tcp.listen(0, [:binary, ip: {127, 0, 0, 1}]) returned {:error, :eperm}. This test asks the OS to pick a free port and requires no running service.
  • Connecting to PostgreSQL on 127.0.0.1:5436 with psql returned Operation not permitted before authentication. The SELECT 1 query never ran.
  • docker version was denied access to the local Docker socket.

Could you check whether a resumed Work conversation should pick up the network setting on this build, and whether there is a supported way to refresh its effective permissions?

sallaumen avatar Nov 25 '26 02:11 sallaumen

Additional macOS reproduction on 26.1120.41243

I can reproduce this issue on the same desktop version mentioned above.

Environment

  • ChatGPT Desktop: 26.1120.41243
  • macOS: 15.7.7 (Apple Silicon, ARM64)
  • Execution mode: Local Work

Settings

  • Work network access: On
  • Work local network access: On
  • File access: Workspace write
  • Approval policy: On request

Observed behavior

After enabling both network settings, I created a fresh Local Work conversation and verified that it was running on my Mac rather than in a cloud container.

Local project files are accessible, but:

  • CODEX_SANDBOX_NETWORK_DISABLED=1
  • Outbound network connections fail with PermissionError: [Errno 1] Operation not permitted
  • DNS resolution fails
  • Existing, enabled MCP servers fail to initialize, and their tools are unavailable in Work

Meanwhile, the same staging website is reachable from the native macOS Terminal, returning HTTP 301.

Restarting the desktop app and creating a new Local Work conversation did not resolve the issue.

This is currently blocking my website development and deployment workflow.

Could the maintainers confirm whether this is an intended restriction or a permission-propagation regression, and provide a supported remediation that preserves the existing sandbox and approval controls?

lyl225 avatar Nov 25 '26 06:11 lyl225

Issue is fixed in latest update Version 26.1120.50957

sy-github avatar Nov 25 '26 09:11 sy-github

Issue is fixed in latest update Version 26.1120.50957

image

I checked, and we're still at the same versions - 26.1120.50957 (build 30866) for the desktop app and 0.171.0-alpha.13.2 for the embedded Codex CLI. So, partially there - the approval prompts work now, instead of coming up with 0.1ms rejections despite clicking "Approve". Still a regression from what we previously had.

What's worse is if what you normally do relies on a bunch of SSH oneliners, you need to approve every single SSH line from ChatGPT Work. The workaround now is to request an interactive SSH session instead, and have ChatGPT Work do their work from that, and ask them to end it once they're finished. That way you're not drowning in approval prompts.

DeusMaximus avatar Nov 25 '26 09:11 DeusMaximus

Doesn't work here on Mac using version 26.1120.50957. Selecting the approval method is still missing from new chats, CODEX_SANDBOX_NETWORK_DISABLED is still 1, and, more importantly, sandbox_approval is false, meaning that the model can't ask for elevated shell permissions.

Restarting the whole Mac (just in case there is a lingering helper) didn't help either. So for me: still broken.

CarstenNeubert avatar Nov 25 '26 10:11 CarstenNeubert

I’ve narrowed this down further on my setup. I’m also running 26.1120.50957 (build 30866), with embedded codex-cli 0.171.0-alpha.13.2.

In the desktop app, check these settings:

Profile Picture → Settings → App → Configuration

  • Approval Policy: On request - select this explicitly.
  • Network Access: On

Other settings I’ve changed from their defaults on that page, included for completeness but not established as relevant:

  • File Access: Workspace write
  • Web Search: Live

Then check:

Profile Picture → Settings → Data & Privacy → Data controls

  • Work Network Access: On

I tested switching between approval policies:

  • On request: ChatGPT can request elevated execution. An Allow once prompt appears, and SSH succeeds after approval.
  • Untrusted: SSH fails with Operation not permitted. The assistant explicitly reports sandbox_approval: false and says it cannot request escalation.
  • Switching back to On request restores approvals, including in previously non-working chats. A new chat or app restart wasn’t necessary in those tests.

CODEX_SANDBOX_NETWORK_DISABLED remains 1 even with the working configuration. The difference is that approved execution outside the sandbox now succeeds.

This suggests the differing results on the same app version may be approval-policy related. Why Untrusted behaves this way remains unclear.

There’s still one approval per new SSH connection. For multi-step work, ask ChatGPT to open a persistent interactive SSH session and reuse it. We confirmed that subsequent commands - including across conversation turns - use the same connection without further prompts. It can inspect each result and adapt, rather than batching the entire task into one script.

DeusMaximus avatar Nov 25 '26 10:11 DeusMaximus

I also poked around a bit more. Apparently there's a rollout flag that suppresses the Local/Cloud selector for new chats. This maybe isn't even active for all users yet. The chats where the selector is missing seem to default to cloud and the chats show up even on mobile. Accessing local files still works, but the permission selector is gone and escalating permissions won't work.

A workaround is to switch to Codex and create a new chat there, then it can at least escalate permissions. CODEX_SANDBOX_NETWORK_DISABLED stays 1 either way though.

CarstenNeubert avatar Nov 25 '26 11:11 CarstenNeubert

If I start the chat (selecting my local mac) from my mobile phone it works without a problem, starting from Codex App on Mac, I get the same issues as above.

theodorDiaconu avatar Nov 25 '26 15:11 theodorDiaconu

Reproduced on November 27 on Apple Silicon, macOS 26.6.2, ChatGPT Desktop 26.1120.50957 (build 30866), after resuming a local Work conversation. The account owner confirmed that Work public internet access was on. The local Codex user config had workspace-write, network_access = true and approval_policy = "on-request". I could not independently verify the separate Work approval selector or any workspace policy assignment.

The same conversation's desktop log has a [host-app-server-manager] maybe_resume_success event with these fields (only permission values reproduced):

hasExplicitPermissions=false
shouldSendPermissions=false
requestApprovalPolicy=null
requestSandboxMode=null
derivedSandboxPolicy.networkAccess=false
responseSandboxPolicy.networkAccess=false
derivedApprovalPolicy=on-request
responseApprovalPolicy.granular.sandbox_approval=false

The shell reported CODEX_SANDBOX_NETWORK_DISABLED=1. Creating an IPv4 TCP socket succeeded. The following failed at connect() with EPERM in under 1 ms. A numeric-IP connection to an authorized SSH destination failed at the same call, before authentication.

import socket

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
    sock.settimeout(3)
    sock.connect(("1.1.1.1", 443))

Which setting or managed policy supplies the derived network value on this resume path? Is there a supported way to identify why the derived on-request policy becomes a response with sandbox approvals disabled?

ieduer avatar Nov 27 '26 08:11 ieduer