Repository navigation
Description
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
- Open Codex Desktop on Windows 11.
- Go to Settings > Configuration > Codex.
- Set Approval policy to "On request".
- Set Sandbox settings to "Workspace write".
- Enable "Allow network access".
- Open the user
config.tomland verify:
sandbox_mode = "workspace-write"
[windows]
sandbox = "elevated"
[sandbox_workspace_write]
network_access = true- Close and restart Codex Desktop.
- Open a new conversation in a local workspace.
- 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- Observe that the sandbox has
CODEX_SANDBOX_NETWORK_DISABLED=1, and DNS resolution fails withAccess 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_DISABLEDis not set to1.- 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.
Activity
github-actions commentedon Oct 12, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
JakeHuang310 commentedon Oct 13, 2026
Additional evidence of a similar Node
ENOTFOUNDsymptom 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:
@openai/codexCLI package 0.147.0. This does not establish the affected desktop/app-server version; those versions are unverified.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/timeat 2026-10-13T15:03:25.810Z failed by 15:03:25.826Z with:getaddrinfo ENOTFOUND fapi.binance.comThere 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.
OscarNotFound commentedon Oct 19, 2026
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, despitesandbox_workspace_write.network_access = true.In my case, the sandbox had both
CODEX_SANDBOX_NETWORK_DISABLED=1andCODEX_NETWORK_PROXY_ACTIVE=1, with runtime-providedHTTP_PROXY,HTTPS_PROXY, andALL_PROXYendpoints. Direct connections were blocked, but the managed proxy was usable. Explicitly routing SSH through the provided SOCKS5 proxy using aProxyCommandhelper allowed connections to both public and private servers. Separate SSH account isolation issues then surfaced: the sandbox account could not read my Windows user’sknown_hostsor 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=falsemismatch has the same root cause. My result shows thatCODEX_SANDBOX_NETWORK_DISABLED=1alone does not prove all proxy-mediated networking is unavailable.xuqixi74-stack commentedon Oct 20, 2026
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.tomlalso contains:Actual behavior
Despite this configuration, a PowerShell command executed by Codex reports:
Network tests inside the same execution environment fail:
curl.exerequests tohttps://www.openai.com,https://www.baidu.com, andhttps://github.comfail with error 6:Could not resolve host.https://1.1.1.1fails with error 7:Could not connect to server.127.0.0.1fails with a socket access-permission error.Troubleshooting already attempted
config.toml.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 commentedon Oct 20, 2026
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.
jz-74 commentedon Oct 21, 2026
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] sandbox = "unelevated".config.tomlexplicitly setsapproval_policy = "on-request",sandbox_mode = "workspace-write", and[sandbox_workspace_write] network_access = true.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 version0.163.0.Actual behavior in Codex Desktop
CODEX_SANDBOX_NETWORK_DISABLED=1.System.Net.Sockets.SocketException,SocketErrorCode: AccessDenied,NativeErrorCode: 10013(WinError 10013). This is not a DNS or authentication failure.request_permissions: false. The user has already approved the intended deployment.Control tests on exactly the same Windows PC
Test-NetConnection <same-host> -Port 21returnsTcpTestSucceeded: True.codex --no-daemon -C <workspace> -s workspace-write -a on-request -c 'sandbox_workspace_write.network_access=true':CODEX_SANDBOX_NETWORK_DISABLEDis 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-accessfor normal version-controlled development/deployments.Please investigate desktop permission-profile derivation, overridden network policies, and why
request_permissionsis forced to false. Production host details, private project paths and credentials are intentionally omitted.Skalda555 commentedon Oct 24, 2026
I can reproduce this issue on Windows with Codex Desktop runtime version
26.1021.31345.Configuration:
workspace-write[sandbox_workspace_write] network_access = trueResults:
CODEX_SANDBOX_NETWORK_DISABLED=1CODEX_SANDBOX_NETWORK_DISABLED=1codex exec:CODEX_SANDBOX_NETWORK_DISABLED=1CODEX_NETWORK_PROXY_ACTIVE: absentHTTP_PROXY,HTTPS_PROXY,ALL_PROXY: absentThe 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.comsucceeds.curl.exe -I --max-time 10 https://github.comreturns 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-writeand avoid switching to unrestricted Full Access.chuckhsuan commentedon Oct 27, 2026
I have a macos repro:
macOS repro — same behavior, desktop app ignores network_access = true in user config.
jaredwinkler commentedon Nov 4, 2026
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:
Observed before and after the user reported restarting ChatGPT:
CODEX_SANDBOX_NETWORK_DISABLED=1.curl.exe --head --connect-timeout 5 --max-time 8 https://github.comfails withcurl: (6) Could not resolve host: github.com.Resolve-DnsNamechecks for github.com and the deployment source hostname returnedAccess is denied.CODEX_NETWORK_PROXY_ACTIVE,HTTP_PROXY,HTTPS_PROXY, orALL_PROXYvariables 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.
j44miller commentedon Nov 9, 2026
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:
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?
10 remaining items
Knaledge commentedon Nov 24, 2026
let's get this fixed
adamshand commentedon Nov 24, 2026
Also reproduces on macOS (ChatGPT desktop app). Not Windows-only.
Environment
roughly the last few days, with no settings changed.
Symptom
In a new desktop thread, every outbound request from the shell fails:
What I tried. None of it changed the outcome in the desktop app:
still had workspace-only access, and its approval policy automatically rejects requests to run outside the sandbox. So there's no
way to escalate.
CODEX_SANDBOX_NETWORK_DISABLED=1, and DNS failed.
Control: with the same permission-profile config, the standalone CLI worked correctly:
With the legacy config, the CLI also has network access.
Impact: Our users build websites with a CLI that talks to our API from the agent's shell. Desktop app users currently can't work at
all, and the only workaround is switching to the terminal CLI.
The desktop app seems to ignore every network setting, including a selected profile and Full access, when it creates a new thread.
That matches #61120, where new threads also lose the ability to request escalation.
adamshand commentedon Nov 24, 2026
This seems to be fixed as of 26.1120.41243 but required me to uninstall and completely delete all settings.
ai-enterpriseai commentedon Nov 25, 2026
This is still broken. Reinstalls don't help.
neyz commentedon Nov 25, 2026
I have the same issue. Work has become completely useless since it cannot access any remote ressources.
Reinstall did not help.
Knaledge commentedon Nov 25, 2026
Still an issue after latest updates to Desktop and Codex. This really needs to be addressed immediately as sev 2
noelmom commentedon Nov 25, 2026
I’m reproducing this on Windows in ChatGPT/Codex Desktop. My normal Windows PowerShell can reach 1Password, but commands run in the Codex shell cannot access the network.
Observed inside the Codex shell
This looks like the configured network permission is not reaching the shell’s effective sandbox policy. The same op CLI can’t reach 1Password from this shell.
Desktop version: 26.1120.50957
Has anyone found a workaround that restores shell networking while keeping workspace-write restrictions?
xzk112300-source commentedon Nov 26, 2026
Additional Windows Work observation (Nov 25, 2026; Windows 11 Pro 25H2, desktop package
26.1120.5083.0). With the network-access settings enabled, the host shell and a separate Work diagnostic conversation could resolve the same two test destinations and receive HTTP responses. The affected Work conversation repeatedly failed DNS for both destinations (curlexit 6). The same generic network-disabled marker appeared in both working and failing Work probes, so it did not identify the effective policy.Please compare the effective per-conversation network policy and proxy routing before shell launch against the desktop toggle, including resumed sessions. We did not establish that the failing live conversation received
networkAccess=false; this is an adjacent observation, not a claim of identical root cause.MrCorn commentedon Nov 27, 2026
Windows host:
Resolve-DnsName api.cloudflare.com -> SUCCESS
HTTPS to api.cloudflare.com -> SUCCESS
ChatGPT Work / Codex sandbox:
CODEX_SANDBOX_NETWORK_DISABLED=1
Resolve-DnsName api.cloudflare.com -> Access denied (error 5)
Work network access OFF -> DISABLED=1
Work network access ON -> DISABLED=1
Fresh Work conversation after enabling network access -> DISABLED=1
Knaledge commentedon Nov 28, 2026
Still a problem, let's get it fixed.
Traeyee commentedon Nov 28, 2026
Still, hope fixed
csbwta0 commentedon Nov 29, 2026
same problem
sedeta commentedon Nov 30, 2026
I’m seeing this too on Windows. PowerShell commands in the Codex Desktop sandbox fail to resolve public hostnames. I reproduced it with a request to example.com.
serhattaylanai-spec commentedon Nov 30, 2026
Additional evidence from a Windows Desktop local execution environment, investigated on November 30, 2026. This is a configuration/effective-policy mismatch report; the underlying cause has not been established.
sandbox_mode = "workspace-write",[windows] sandbox = "elevated", and[sandbox_workspace_write] network_access = true..codex/config.tomlwas found.approval_policy: "on-request"andsandbox_policy.network_access: true.CodexSandboxOffline, setsCODEX_SANDBOX_NETWORK_DISABLED=1, and exposes a granular approval policy with sandbox escalation disabled.git ls-remote origin HEADfails connecting togithub.com:443. A separate TCP connection attempt reports a socket access-permission denial before GitHub authentication. Loopback HTTP remains accessible.ThreadSettingsOverrides { approval_policy: None, approvals_reviewer: None, sandbox_policy: None, permission_profile: Some("managed") }. We could not directly correlate those entries with the current conversation, so they are evidence of profile selection elsewhere in the application, not proof of the cause for this execution environment.0.171.0-alpha.13.2; the Desktop About version was not independently verified. The historical successful context and current context are different sessions/projects, not a controlled same-project A/B test.Please investigate which surface/profile supplies the effective network and approval policies, how a
managedpermission profile interacts with usernetwork_access=true, and whether this is expected policy precedence or an app policy propagation/persistence defect. We are requesting a durable product fix or a documented supported configuration, preserving workspace filesystem boundaries and normal Windows security. Full Access, disabling security controls, reinstalling, or routing work through a separate CLI are not acceptable resolutions.No credentials, private repository details, local usernames, or session IDs are included in this public report.
JZHANG-484088 commentedon Dec 1, 2026
I encountered a similar default sandbox network restriction on Windows 11 on December 2, 2026 (UTC+8). Unlike the original report, my user-level config.toml initially had no explicit sandbox network settings, despite the UI network option previously appearing enabled.
Before:
sandbox_mode=workspace-write,approval_policy=on-request, effectivenetwork_access=false,permission_profile.network=restricted, andCODEX_SANDBOX_NETWORK_DISABLED=1. DNS/HTTPS failed for github.com, openai.com, and example.com (curl: (6) Could not resolve host). Native Windows PowerShell successfully resolved GitHub and received HTTP 200. A one-time approved Codex request also returned HTTP 200, but did not change the default sandbox policy.Verified workaround: added these top-level keys and table to the existing user config.toml (retaining all other settings):
After restarting and testing a fresh conversation, effective
network_access=true,permission_profile.network=enabled, andCODEX_SANDBOX_NETWORK_DISABLEDwas unset.curl.exe -I --connect-timeout 10 --max-time 20 https://github.comreturned HTTP 200, exit code 0, using the default sandbox without escalation at 00:58 UTC+8. Workspace-write and on-request approval remained active; Full Access was not needed.PrimaryRuntime at the successful test was
26.1130.1169.0(x64). The original UI-to-effective-policy mismatch remains unexplained; I cannot establish that the original UI setting had actually been persisted, nor that this is the same root cause as the original report. Please investigate UI persistence and permission precedence, including behavior in restored sessions. No credentials, private paths, or raw logs are included.