codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex Desktop on Windows applies networkAccess=false despite network access being enabled

Open GiangNguyen2210 opened this issue 1 month ago • 35 comments

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

26.1007.21434 (build 13901, prod)

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Bug description

Codex Desktop on Windows disables network access inside the workspace-write sandbox even though Allow network access is enabled in Settings and network_access = true is configured in config.toml.

Codex Desktop version: 26.1007.21434 (build 13901, prod)

Application settings:

  • Approval policy: On request
  • Sandbox settings: Workspace write
  • Allow network access: Enabled
  • Web search: Live

Actual sandbox environment: CODEX_PERMISSION_PROFILE=:workspace CODEX_SANDBOX_NETWORK_DISABLED=1 Effective sandbox mode: workspace-write Effective network policy: restricted

Prompt used: Check Internet access inside the current Codex Desktop Windows sandbox. Do not request elevated permissions, run outside the sandbox, or modify any files. Run whoami, inspect sandbox environment and resolve www.nuget.org.

Observed failures: Resolve-DnsName www.nuget.org: Access is denied Node HTTPS api.nuget.org: getaddrinfo ENOTFOUND api.nuget.org npm.cmd ping: No PONG received

The problem persists after restarting Codex Desktop and opening a new conversation.

What steps can reproduce the bug?

Steps to reproduce

  1. Open Codex Desktop on Windows 11.
  2. Go to Settings > Configuration > Codex.
  3. Set Approval policy to "On request".
  4. Set Sandbox settings to "Workspace write".
  5. Enable "Allow network access".
  6. Open the user config.toml and verify:
sandbox_mode = "workspace-write"

[windows]
sandbox = "elevated"

[sandbox_workspace_write]
network_access = true
  1. Close and restart Codex Desktop.
  2. Open a new conversation in a local workspace.
  3. Ask Codex to execute the following commands inside the sandbox only:
whoami
$env:CODEX_SANDBOX_NETWORK_DISABLED
$env:CODEX_PERMISSION_PROFILE
Resolve-DnsName www.nuget.org
  1. Observe that the sandbox has CODEX_SANDBOX_NETWORK_DISABLED=1, and DNS resolution fails with Access is denied.

The issue reproduces in newly created conversations, not only previously restored ones. No elevation or system modifications are required to reproduce it.

What is the expected behavior?

When "Allow network access" is enabled and [sandbox_workspace_write].network_access = true, Codex Desktop should permit outbound network requests within the workspace-write sandbox.

Expected results:

  • Effective network policy allows network access.
  • CODEX_SANDBOX_NETWORK_DISABLED is not set to 1.
  • DNS resolution and HTTPS requests work without requiring execution outside the sandbox.
  • The selected network permission remains effective after restarting the application and opening or restoring conversations.

The sandbox should retain its normal workspace-write filesystem restrictions and On-request approval policy. Full Access should not be necessary.

Additional information

Diagnostic findings

Codex Desktop: 26.1007.21434, build 13901, prod.

A restored-session event on October 12, 2026, at 12:11:48 (UTC+7) contained:

sandboxPolicySource=default hasLatestThreadSettings=false hasLatestTurnParams=false shouldSendPermissions=false derivedSandboxPolicy: workspaceWrite, networkAccess=false responseSandboxPolicy: workspaceWrite, networkAccess=false responseActivePermissionProfile=:workspace responseApprovalPolicy=on-request

At 12:11:59: useAppServerPermissionDefault=true

Additional observations:

  • UI and config.toml both enable network access.
  • No duplicate sandbox/network settings or relevant profile overrides found.
  • Two permissionProfile/list calls appear without response payloads.
  • Logs do not reveal the merged configuration or why the default has networkAccess=false.
  • Codex CLI --no-daemon successfully accesses HTTPS under CodexSandboxOnline.
  • One Desktop session temporarily accessed HTTPS, but became restricted again after restart.

Please investigate default profile generation and policy merging, including permissionProfile/list, config/read, configRequirements/read, and restored-session permission derivation. The root cause remains unconfirmed.

GiangNguyen2210 avatar Oct 12 '26 05:10 GiangNguyen2210

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

  • #52236

Powered by Codex Action

github-actions[bot] avatar Oct 12 '26 05:10 github-actions[bot]

Additional evidence of a similar Node ENOTFOUND symptom on Windows. I have not established that this has the same root cause as the UI/effective-policy mismatch reported above.

Environment verified from saved runtime metadata:

  • Windows (exact edition/build not verified in this diagnostic).
  • Bundled Node.js 24.19.0; runtime bundle 26.1011.11113.
  • Installed @openai/codex CLI package 0.147.0. This does not establish the affected desktop/app-server version; those versions are unverified.
  • Effective execution contract: sandbox_mode=workspace-write, network access restricted. I have not verified an enabled-network UI setting or config mismatch for this case.

A single request from the original isolated executor to https://fapi.binance.com/fapi/v1/time at 2026-10-13T15:03:25.810Z failed by 15:03:25.826Z with: getaddrinfo ENOTFOUND fapi.binance.com

There was no HTTP response or serverTime. The worker used the bundled Node https.get, normal certificate validation/default DNS lookup, a 5-second timeout, no retries or redirects, no custom resolver/proxy/direct IP, and no escalation or alternate execution environment. Worker exit and cleanup were confirmed.

Earlier, at approximately 00:21 UTC on the same date, the same installed Node executable in ordinary desktop PowerShell resolved this hostname successfully (four addresses). A normal desktop browser also received a response. These controls were not contemporaneous and used a different security context, so they do not establish causation or prove that the isolated executor recovered.

Could maintainers clarify whether this failure is expected under the effective restricted-network profile, and which supported non-sensitive diagnostic can distinguish an intentional policy denial from a resolver failure inside that same executor? In particular, is there a supported way to inspect the effective DNS/HTTPS policy and correlate the request with a denial/resolver event without disabling isolation or granting broader access?

Sharing here rather than opening a duplicate; please let me know if this belongs in a separate report. No credentials, private project files, or raw private logs are included.

JakeHuang310 avatar Oct 13 '26 15:10 JakeHuang310

I encountered similar symptoms in the ChatGPT Windows desktop app after upgrading Codex CLI from 0.161.0 to 0.163.0: SSH worked in ordinary PowerShell, but sandboxed SSH failed with connect … port 22: Permission denied, despite sandbox_workspace_write.network_access = true.

In my case, the sandbox had both CODEX_SANDBOX_NETWORK_DISABLED=1 and CODEX_NETWORK_PROXY_ACTIVE=1, with runtime-provided HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY endpoints. Direct connections were blocked, but the managed proxy was usable. Explicitly routing SSH through the provided SOCKS5 proxy using a ProxyCommand helper allowed connections to both public and private servers. Separate SSH account isolation issues then surfaced: the sandbox account could not read my Windows user’s known_hosts or private key. After configuring strict host-key verification and authorizing a dedicated sandbox key, SSH login succeeded and returned the remote hostname and username with exit code 0.

You could check those environment variables inside the affected sandbox, then test an HTTP/HTTPS client explicitly configured to use the supplied proxy against a policy-allowed destination. For Node versions supporting it, try node --use-env-proxy your-test.js; see [Node’s proxy documentation](https://nodejs.org/docs/latest-v24.x/api/http.html#built-in-proxy-support). Use the endpoints supplied by your runtime rather than copying mine.

This resolved my SSH access without disabling the sandbox. However, it does not establish that your logged networkAccess=false mismatch has the same root cause. My result shows that CODEX_SANDBOX_NETWORK_DISABLED=1 alone does not prove all proxy-mediated networking is unavailable.

OscarNotFound avatar Oct 19 '26 14:10 OscarNotFound

I am experiencing a similar issue with the Codex desktop app on Windows.

Configuration

“Allow network access” is enabled in the app settings. My local config.toml also contains:

sandbox_mode = "workspace-write"

[windows]
sandbox = "elevated"

[sandbox_workspace_write]
network_access = true

Actual behavior

Despite this configuration, a PowerShell command executed by Codex reports:

CODEX_SANDBOX_NETWORK_DISABLED=1

Network tests inside the same execution environment fail:

  • curl.exe requests to https://www.openai.com, https://www.baidu.com, and https://github.com fail with error 6: Could not resolve host.
  • A request to https://1.1.1.1 fails with error 7: Could not connect to server.
  • Connecting to a temporary TCP listener on 127.0.0.1 fails with a socket access-permission error.

Troubleshooting already attempted

  • Verified that network access is enabled in both the app settings and config.toml.
  • Used the Repair option in Settings.
  • Restarted the app and retried the network tests.

The issue persists after these steps. In earlier testing, a separately launched Codex CLI session with an explicit network-access configuration could access the network, while the desktop session remained restricted.

Expected behavior

The desktop app should apply the enabled network permission while retaining the workspace-write filesystem restrictions.

These symptoms appear consistent with this issue, although I cannot confirm that the underlying cause is identical. Could the team investigate why the desktop execution environment still disables network access despite the configured setting?

Please let me know which specific logs or diagnostic information would help. I also tried contacting support through help.openai.com, but the support chat repeatedly failed with an error while generating a reply.

xuqixi74-stack avatar Oct 20 '26 04:10 xuqixi74-stack

Additional diagnostic evidence from my desktop logs:

A thread-resume event on 2026-10-19T08:58:27.806Z contains:

responseSandboxPolicy.networkAccess=true derivedSandboxPolicy.networkAccess=false sandboxPolicySource=default sandboxPolicyChanged=true shouldSendPermissions=false hasCurrentPermissions=false hasExplicitPermissions=false hasLatestThreadSettings=false hasLatestTurnParams=false

The same mismatch appears in multiple resume events from October 12–19.

This shows a discrepancy between the returned sandbox policy and the policy derived by the desktop client. It does not establish which policy ultimately reaches the executor, but may help narrow the investigation to default permission handling during thread restoration.

xuqixi74-stack avatar Oct 20 '26 04:10 xuqixi74-stack

Additional reproducible evidence on Windows after a recent Codex/ChatGPT desktop update (2026-10-21). This is blocking normal development and FTP deployments across multiple local projects.

Environment

  • Windows NT 10.0.26300 (x64); native PowerShell 7.6.5 in the Codex executor.
  • Windows sandbox configuration: [windows] sandbox = "unelevated".
  • User config.toml explicitly sets approval_policy = "on-request", sandbox_mode = "workspace-write", and [sandbox_workspace_write] network_access = true.
  • Desktop preferences show both default permissions and Full Access enabled. However, the effective execution context still reports workspace-write with networking restricted.
  • Desktop runtime metadata contains BROWSER_USE_CODEX_APP_VERSION=26.1016.51333 (exact build in the application's About dialog was not separately verified). Separately installed Codex CLI is version 0.163.0.

Actual behavior in Codex Desktop

  • CODEX_SANDBOX_NETWORK_DISABLED=1.
  • Direct TCP connection to an external FTP server on port 21 fails immediately with System.Net.Sockets.SocketException, SocketErrorCode: AccessDenied, NativeErrorCode: 10013 (WinError 10013). This is not a DNS or authentication failure.
  • When the agent requests permission, the runtime refuses before displaying any user approval dialog: request_permissions: false. The user has already approved the intended deployment.
  • Updating the user configuration did not fix the current desktop session; this report does not claim that a fresh desktop process was exhaustively retested.

Control tests on exactly the same Windows PC

  • Ordinary Windows PowerShell: Test-NetConnection <same-host> -Port 21 returns TcpTestSucceeded: True.
  • Standalone Codex CLI started outside the desktop host with codex --no-daemon -C <workspace> -s workspace-write -a on-request -c 'sandbox_workspace_write.network_access=true': CODEX_SANDBOX_NETWORK_DISABLED is not set and the same external FTP server:21 TCP connection works.

Expected behavior The desktop app should honor the requested network access and approval settings as the CLI does, or should show a working permission request instead of silently denying it. Users should not need to abandon the GUI or grant danger-full-access for normal version-controlled development/deployments.

Please investigate desktop permission-profile derivation, overridden network policies, and why request_permissions is forced to false. Production host details, private project paths and credentials are intentionally omitted.

jz-74 avatar Oct 21 '26 20:10 jz-74

I can reproduce this issue on Windows with Codex Desktop runtime version 26.1021.31345.

Configuration:

  • Sandbox: workspace-write
  • Allow Network Access: enabled
  • [sandbox_workspace_write] network_access = true
  • Web search: live

Results:

  • Codex Desktop: CODEX_SANDBOX_NETWORK_DISABLED=1
  • Interactive Codex CLI: CODEX_SANDBOX_NETWORK_DISABLED=1
  • Non-interactive codex exec: CODEX_SANDBOX_NETWORK_DISABLED=1
  • CODEX_NETWORK_PROXY_ACTIVE: absent
  • HTTP_PROXY, HTTPS_PROXY, ALL_PROXY: absent

The sandbox has no confirmed managed-proxy route. No proxy request was attempted because its availability and authorization could not be established.

Host connectivity is working:

  • Resolve-DnsName github.com succeeds.
  • curl.exe -I --max-time 10 https://github.com returns HTTP 200 from regular Windows PowerShell.

I also reset config.toml, restarted the application and Windows, and reproduced the issue in a fresh task.

Could the maintainers clarify why the effective sandbox policy disables network access despite the enabled configuration, and how to inspect the source of the effective policy?

I would prefer to retain workspace-write and avoid switching to unrestricted Full Access.

Skalda555 avatar Oct 24 '26 14:10 Skalda555

I have a macos repro:

macOS repro — same behavior, desktop app ignores network_access = true in user config.

  • Environment: macOS 26.6.1 (aarch64), Codex desktop 26.1007.41230, CLI 0.164.0-alpha.11.1
  • Symptom: All external DNS resolution fails inside sandboxed shells (api.github.com, github.com, google.com). scutil --dns returns "No DNS configuration available"; dns-sd -G v4 returns DNSServiceGetAddrInfo failed -65563 (Service Not Running). Shell exposes CODEX_SANDBOX=seatbelt and CODEX_SANDBOX_NETWORK_DISABLED=1.
  • Config attempted: ~/.codex/config.toml contains sandbox_mode = "workspace-write" and [sandbox_workspace_write] network_access = true. Fully quit and relaunched the desktop app — new sessions still start with network disabled.
  • codex doctor output: filesystem sandbox: restricted · network sandbox: restricted; configuration scope reported as "invocation config, including cloud-managed policy", suggesting the desktop launcher overrides user config with a managed profile.
  • Proxy: env | grep -i proxy → empty; codex doctor reports managed proxy: not configured, so no proxy fallback path.
  • Worked until: Oct 26, 2026 (earlier that day). No local config changes preceded the breakage; reproduces across fresh sessions.

chuckhsuan avatar Oct 27 '26 22:10 chuckhsuan

Additional reproduction on November 4, 2026, in ChatGPT desktop Work using a local Windows/PowerShell workspace. The user explicitly authorized this report. The exact desktop app version has not been verified, and we cannot confirm that the underlying cause is identical to this issue.

Settings and configuration:

  • The user supplied a screenshot showing Settings > Data controls > Work network access enabled.
  • The local user config.toml contains:
approval_policy = "on-request"
sandbox_mode = "workspace-write"

[windows]
sandbox = "elevated"

[sandbox_workspace_write]
network_access = true

Observed before and after the user reported restarting ChatGPT:

  • The command environment reports CODEX_SANDBOX_NETWORK_DISABLED=1.
  • curl.exe --head --connect-timeout 5 --max-time 8 https://github.com fails with curl: (6) Could not resolve host: github.com.
  • Earlier Resolve-DnsName checks for github.com and the deployment source hostname returned Access is denied.
  • No CODEX_NETWORK_PROXY_ACTIVE, HTTP_PROXY, HTTPS_PROXY, or ALL_PROXY variables were returned by the environment check. No runtime-provided proxy route was available to test.

Impact: an existing ChatGPT Sites production release is blocked at the required source Git push. Local authentication regression tests and the production build pass. The Sites connector recognizes site ownership and successfully issues a fresh source-repository write credential, but the local command executor cannot reach the source repository. Connected-app calls remain available, which is how this comment is being submitted. Production hosting and database have been left unchanged.

This establishes an enabled-setting/effective-execution mismatch; it does not establish the root cause or prove that public DNS or the deployment service is faulty. Please advise how to inspect and correct the effective network policy in the Windows desktop execution environment while retaining workspace filesystem restrictions. No credentials, private source code, local paths, or raw logs are included.

jaredwinkler avatar Nov 04 '26 15:11 jaredwinkler

Additional Windows desktop Work evidence, observed November 8, 2026 America/Chicago. The user supplied screenshots of the settings and of a newly created read-only capability-test chat.

The configuration UI shows workspace write with network access enabled. In the original chat, direct command reads still returned CODEX_SANDBOX_NETWORK_DISABLED=1 and no managed-proxy indicator; a saved-profile hostname-only SSH probe was refused at TCP connection time, before authentication.

A fresh chat created after the settings changes reports the same outcome:

  • Local command execution succeeds.
  • CODEX_SANDBOX_NETWORK_DISABLED=1; inspected managed-network/proxy flags and standard proxy variables are unset.
  • Existing trusted SSH profile resolves with BatchMode=yes, IdentitiesOnly=yes and strict host-key checking.
  • The hostname-only probe fails with connection-time Permission denied, SSH exit255; authentication never starts.

The fresh-chat result is evidence supplied by the user in a screenshot; its underlying tool trace was not independently retrieved in this reporting chat. The original-chat command results above were directly observed.

The desktop app's own saved SSH connection can connect after revisiting Connections; its separate startup auto-connect discrepancy is documented in #59931. An earlier packaged-PowerShell launch refusal is separately reported in #60336; PowerShell 7.6.9 subsequently started successfully in this chat, so that launch refusal is not currently reproducing. The network block persists after command execution recovered. No causal connection between these symptoms is established.

This rules out the problem being limited to the original chat's saved state, but does not establish the source of the effective policy. Exact desktop package version/OS build remain unverified. No keys, host trust, SSH profile, server configuration or services were changed for these tests. Private paths, host identities, credentials, account/conversation IDs and raw logs are omitted.

Is there a supported way to inspect and correct the policy delivered to a fresh local Work command executor while retaining workspace filesystem restrictions?

j44miller avatar Nov 09 '26 03:11 j44miller

Windows, app 26.1106.6628.0, ejecutor 0.167.0-alpha.4.1. Full access guardado y Work network access activado. El ejecutor aplica workspace-write con red restringida; localhost:3306 falla con WinError 10013 antes de autenticarse. Persiste tras reiniciar y en chats nuevos sin proyecto. CLI 0.167.2 con network_access=true conecta correctamente al mismo puerto. Solicitamos identificar y corregir el origen del permiso efectivo. Causa raíz todavía no confirmada.

MaxiMarchesi avatar Nov 12 '26 12:11 MaxiMarchesi

Additional reproduction on November 13, 2026: Local network access is set to On, but the affected Windows Work execution context still reports “Network access is restricted.” A full application restart and a completely new Work chat did not resolve it.

Detailed reproduction and control results: https://github.com/openai/codex/issues/53501#issuecomment-6853904392

Inside Work, Git fails with getaddrinfo() thread failed to start, Resolve-DnsName returns “Access is denied,” and PowerShell reports the InitializeDefaultDrives failure. A .NET DNS lookup also fails. The identical Git command and DNS resolution succeed in ordinary PowerShell on the same computer. This affects more than Git, but we have not tested every protocol or confirmed the underlying cause.

Feedback ID from the affected conversation: b8667baa-61ff-4e5f-be73-0772f2adf33d.

Sharing this cross-reference here because the enabled-setting/restricted-execution discrepancy appears relevant to this broader issue.

philippkolbe avatar Nov 13 '26 13:11 philippkolbe

Additional reproduction , 02:04:06 UTC 14 November 2026. The symptoms match this report. I can add one data point: the CLI bundled with the desktop app gets network access on the same machine.

Environment

  • Windows 11, version 26H2 (OS build 26300.9974), x64
  • Desktop app: OpenAI.Codex 26.1111.2228.0 (Microsoft Store)
  • Runtime packages installed: OpenAI.CodexPrimaryRuntime 26.1110.778.0 and 26.1112.611.0
  • Bundled CLI: %LOCALAPPDATA%\OpenAI\Codex\bin\<id>\codex.exe, which reports v0.167.0-alpha.4.1
  • config.toml: [windows] sandbox = "elevated". It has no approval_policy, sandbox_mode, or network entries.
  • Plan: Pro

What happened

  • Downloads from local chats worked before. They stopped on the morning of 14 November 2026. I had changed no settings.
  • The fault affects new chats, older chats that had downloaded from the same site, chats in a project, and chats outside any project.
  • Restarting the app and installing an app update made no difference.

Inside an affected desktop chat

I have replaced the real host name with example.com in the output below.

Resolve-DnsName -Name example.com
  -> example.com : Access is denied.
curl.exe --head --connect-timeout 15 --max-time 30 https://example.com/
  -> curl: (6) Could not resolve host: example.com

The session reports this effective policy:

  • Network access: restricted
  • Approval policy: granular. sandbox_approval, rules, and skill_approval are automatically rejected. mcp_elicitations may prompt.
  • Filesystem: workspace-write, with additional managed path restrictions
  • The request_permissions tool is not available in the session.

Settings checked

  • Settings > Data controls > Work network access > Allow public internet access is on.
  • New chats show no permissions control under the message box. Some older chats still show one.
  • I added [sandbox_workspace_write] network_access = true to config.toml and restarted. Nothing changed, so I removed it.
  • %USERPROFILE%\.codex\.sandbox\setup_error.json does not exist. %USERPROFILE%\.codex\.sandbox\sandbox.log does not exist either, so I cannot attach it.

Control test: bundled CLI, same machine, same Windows account

codex.exe -c sandbox_workspace_write.network_access=true exec --skip-git-repo-check --sandbox workspace-write "<prompt>"
  • Header: sandbox: workspace-write [...] (network access enabled) and approval: never
  • curl.exe -I https://example.com/ -> curl: (35) schannel: AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS. This looks like the separate Schannel issue in #46726.
  • Node.js 24.19.0 https.get to the same site -> an HTTP response from the server. DNS and TLS both worked.

The sandbox on this machine can provide network access when the CLI asks for it. Only sessions that the desktop app starts are restricted, whatever the settings say.

Side note %USERPROFILE%\.codex\.sandbox-bin still holds codex.exe v0.158 from 29 September and no setup helper. A desktop chat suggested running sandbox setup --elevated from that copy as a repair. It fails with orchestrator_helper_launch_failed: failed to launch setup helper (non-elevated): program not found.

Could a maintainer say where the desktop app's effective network policy comes from? Is there a supported way to restore network access for local chats?

AbNeizvestno avatar Nov 14 '26 02:11 AbNeizvestno

Additional reproduction on 16 November 2026, using local ChatGPT Work on Windows with a personal ChatGPT Pro account.

Environment

  • Desktop package observed in the running app resource path: OpenAI.Codex 26.1111.2228.0.
  • Command runtime observed in the Node executable path: OpenAI.CodexPrimaryRuntime 26.1112.611.0.
  • Native Windows / PowerShell execution.

Settings versus actual execution

  • Settings → Data controls → Work network access → Allow public internet access is already enabled. This was enabled earlier today; repeatedly suggesting that I turn it on does not resolve the problem.
  • The local user configuration was read directly and contains:
[sandbox_workspace_write]
network_access = true

[windows]
sandbox = "elevated"
  • The actual command environment still reports CODEX_SANDBOX_NETWORK_DISABLED=1.
  • The task's supplied effective permissions describe restricted network access and automatically rejected sandbox approvals; no supported network permission request tool is exposed.

Observed tests

  • A separate headless Playwright Chromium process starts successfully, but navigation to the public demo application fails with net::ERR_NAME_NOT_RESOLVED.
  • Independent .NET DNS lookups from the command executor for the application host, www.microsoft.com, and chatgpt.com all return No such host is known.
  • The same application loads successfully in normal Chrome on the same computer. This is a separate browser execution path, not proof that the command sandbox has connectivity.
  • Git access to the Sites source host also fails with Could not resolve host.
  • Connected GitHub and plugin APIs continue to work, but these are likewise separate execution paths.

This blocks a straightforward Playwright PNG screenshot task despite the UI and local configuration both enabling internet access. I have not confirmed a successful standalone CLI workaround on this machine, and I am not claiming the precise internal cause is established.

Could you identify which policy source supplies the effective network restriction to local Work sessions, and provide a supported way to reconcile it with the enabled UI setting while retaining workspace filesystem isolation? Ideally, the UI should display the actual effective permission and any overriding policy rather than requiring repeated configuration changes that have no effect.

No firewall, DNS, certificate, or sandbox protections were disabled during these tests. Private application hosts, local paths, credentials, and raw logs are omitted.

Raoulwe avatar Nov 16 '26 21:11 Raoulwe

Additional reproduction on 17 November 2026 with ChatGPT Work on Windows, using PowerShell 7.6.9.

  • Work network access was enabled in the desktop app. After toggling it off and on, setting [sandbox_workspace_write] network_access = true in the user configuration, and restarting the app, the Work shell still reported CODEX_SANDBOX_NETWORK_DISABLED=1. We parsed the TOML and confirmed that network_access is the boolean true.
  • In ordinary Windows PowerShell, git fetch succeeded. In the Work shell, against the same GitHub remote from the same checkout, Git returned exit code 128. Two installed Git clients reported getaddrinfo() thread failed to start and Could not resolve host: github.com, respectively. The Work shell also failed to resolve the separate deployment Git host. CODEX_NETWORK_PROXY_ACTIVE, HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY were unset.
  • When we ran the normal release helper in Work, it accepted the short-lived deployment credential on hidden stdin, then failed during its GitHub fetch, before attempting an authenticated push. The release stopped before the build.

How can we identify which policy supplies the effective network setting to this Windows Work shell, and is there a supported way to make the enabled setting take effect while retaining workspace filesystem isolation?

rhuebsch avatar Nov 17 '26 12:11 rhuebsch

Additional reproduction on 17 November 2026 with ChatGPT Work on Windows, using PowerShell 7.6.9.

  • Work network access was enabled in the desktop app. After toggling it off and on, setting [sandbox_workspace_write] network_access = true in the user configuration, and restarting the app, the Work shell still reported CODEX_SANDBOX_NETWORK_DISABLED=1. We parsed the TOML and confirmed that network_access is the boolean true.
  • In ordinary Windows PowerShell, git fetch succeeded. In the Work shell, against the same GitHub remote from the same checkout, Git returned exit code 128. Two installed Git clients reported getaddrinfo() thread failed to start and Could not resolve host: github.com, respectively. The Work shell also failed to resolve the separate deployment Git host. CODEX_NETWORK_PROXY_ACTIVE, HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY were unset.
  • When we ran the normal release helper in Work, it accepted the short-lived deployment credential on hidden stdin, then failed during its GitHub fetch, before attempting an authenticated push. The release stopped before the build.

How can we identify which policy supplies the effective network setting to this Windows Work shell, and is there a supported way to make the enabled setting take effect while retaining workspace filesystem isolation?

In my case the problem was the chat runs in cloud environment, i 've started a new chat and switch to desktop environment and it works again. Dont know why it was on cloud mode.

rhuebsch avatar Nov 17 '26 15:11 rhuebsch

Additional Windows Work reproduction on 22 November 2026, submitted with the affected user's authorization.

Environment: Windows x64, OS version 10.0.26200.0; installed desktop resource path identifies OpenAI.Codex package 26.1117.4957.0; bundled browser/Computer Use version 26.1117.41037; personal Plus account.

The user reports that this workflow worked before the desktop update. Public internet access had been enabled and checked in an earlier investigation on November 21, but I could not finish a fresh UI verification during today's investigation.

Current observations:

  • The actual Work command context explicitly describes restricted network access, workspace-write filesystem access, and granular approvals with sandbox escalation automatically rejected.
  • The command environment contains CODEX_SANDBOX_NETWORK_DISABLED=1.
  • A read-only probe, curl.exe -I --connect-timeout 5 --max-time 8 https://example.com, fails with curl error 6: Could not resolve host: example.com.
  • Desktop resume diagnostics for several existing conversations derive a workspaceWrite policy with networkAccess=false and default permission sources.
  • Web search and connected GitHub API requests work through their separate supported channels; this is not evidence of networking recovery inside the command executor.

Configuration distinction: the user reports that network_access=true was added during earlier troubleshooting, but today's direct read of the current user config did not contain a [sandbox_workspace_write] network_access entry. It contained sandbox_mode="workspace-write", [windows] sandbox="elevated", and respect_system_proxy=true. I am therefore not claiming a currently verified TOML/UI/effective-policy three-way mismatch.

Local desktop access then became unavailable before configuration repair and a restart could be completed. No successful recovery is claimed.

Could maintainers provide a supported way to inspect the effective permission source for a managed local Work task, reconcile it with the intended internet setting, and distinguish a managed override from missing user configuration? A recovery path that retains filesystem isolation would help.

Private project content, local usernames and paths, account identifiers, tokens, raw logs and screenshots are excluded. This is an additional observation, not proof of a shared internal cause.

Kirito-lab221 avatar Nov 22 '26 12:11 Kirito-lab221

I reproduced this on 22 November 2026 in ChatGPT Work on Windows. The chat can still read the local project files, but its PowerShell environment reports CODEX_SANDBOX_NETWORK_DISABLED=1. Running curl.exe -I https://example.com/ in that shell returns curl: (6) Could not resolve host: example.com. The same shell cannot resolve firebasehosting.googleapis.com, and the read-only Firebase Hosting lookup fails. This blocks a Firebase deployment workflow that previously worked.

Feedback ID from the affected chat: 3f959565-bbec-444d-87e1-2c3514b68b0b.

Clubello avatar Nov 22 '26 15:11 Clubello

'Any Solution ?

BoBBer446 avatar Nov 24 '26 15:11 BoBBer446

Additional Windows reproduction on ChatGPT/Codex Desktop 26.1120.41243 (MSIX 26.1120.5083.0), November 24, 2026.

Work network access was on, but local execution reported CODEX_SANDBOX_NETWORK_DISABLED=1. Desktop logs showed responseActivePermissionProfile=:workspace and responseSandboxPolicy with workspaceWrite and networkAccess:false. Adding [sandbox_workspace_write] network_access = true and restarting did not change the effective behavior in the tested task. A fresh local task still failed to run git ls-remote https://github.com/openai/codex.git HEAD with getaddrinfo() thread failed to start. The same error occurred for a private Sites Git remote. Outside Codex, Windows reached that remote on TCP 443 and ordinary Git reached authentication.

A one-command network approval worked in this environment: the public Git probe returned a SHA, and an approved authenticated Sites git ls-remote returned the remote branch SHA. A subsequent approved fast-forward push, version save, and production deploy succeeded. This is a per-command workaround; we have not confirmed a fix for the default network policy mismatch.

tech-n0-mad avatar Nov 24 '26 16:11 tech-n0-mad