Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
ChatGPT desktop / Work: 26.1103.4239.0. Standalone Codex CLI: 0.167.0 (comparison only).
What subscription do you have?
Not verified for this report.
What platform is your computer?
Windows, native local execution. Exact OS build was not captured for this report.
What issue are you seeing?
In a local ChatGPT Work session, Allow public internet access is enabled, but the command executor reports CODEX_SANDBOX_NETWORK_DISABLED=1 and runs at Low Integrity. A local TCP socket can bind and listen, yet a client connect to that loopback listener fails with WinError 10013 / WSAEACCES. The behavior also reproduces in a newly started Work conversation.
The user configuration contains [windows] sandbox = "elevated". This setting does not result in network access in the affected Work execution environment. In a separate standalone CLI 0.167.0 session using elevated Windows sandbox mode, the same TCP bind, listen, and connect checks all succeed. MXC is unavailable on this machine. Low Integrity alone does not identify the Work sandbox backend, so this report does not assert which backend or policy layer caused the failure.
What steps can reproduce the bug?
- On Windows, enable Work public internet access and start a fresh local Work conversation in desktop version 26.1103.4239.0.
- Inspect
CODEX_SANDBOX_NETWORK_DISABLEDand the executor integrity level. - In that executor, create a TCP listener on
127.0.0.1using an ephemeral port, then connect a client socket to the selected port. Keep this as a loopback-only test with no credentials or external service. - Observe that bind/listen succeeds but connect returns WinError 10013.
- Repeat in an independent Codex CLI 0.167.0 session with elevated Windows sandbox mode; bind/listen/connect succeed there.
What is the expected behavior?
When Work network access is enabled, the local executor should receive an effective policy that permits authorized TCP connections, including loopback. If a higher-priority policy intentionally blocks connections, the UI or diagnostics should identify that effective restriction and its source.
Additional information
- Related: Codex Desktop on Windows applies networkAccess=false despite network access being enabled #53278 (desktop network policy inconsistent with enabled settings), Windows loopback connect returns AccessDenied/10013; effective task network policy unclear (CLI 0.163.0-alpha.10.2) #54675 (loopback connect 10013 with unclear effective policy), and [Windows / ChatGPT Work] SSH and HTTPS TCP fail with WSAEACCES 10013 after enabling network access and granting Full access #57671 (Work TCP 10013 and disabled-network flag). This report adds the bind/listen versus connect distinction, a fresh-session reproduction on 26.1103.4239.0, and a same-machine standalone CLI 0.167.0 elevated control. Shared root cause is not established; please consolidate if appropriate.
- No local usernames, filesystem paths, hostnames, private addresses, contracts, credentials, or raw logs are included.
Activity
github-actions commentedon Nov 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
will102777 commentedon Nov 12, 2026
Additional reproduction from a separate Windows machine on November 13, 2026.
10.0.26300, Node.jsv22.14.0.CODEX_SANDBOX_NETWORK_DISABLED=1.127.0.0.1and::1could listen on an OS-assigned port. Connecting back from the same Node process failed on both withcode=EACCES,errno=-4092,syscall=connect(WinSock 10013).Minimal reproduction (Node.js, no project dependencies or credentials).
Could you clarify which effective permission or policy controls localhost TCP in this Work configuration, and whether there is a supported way to permit local integration tests while retaining filesystem isolation?
MildSe7en commentedon Nov 18, 2026
Reproduction on November 18, 2026: a resumed Work conversation can reach localhost and the internet, while a newly created Work conversation on the same Windows PC and in the same local project cannot.
Environment: Windows build
10.0.26300, PowerShell7.6.9, trusted local project, and user-level Codex config set todanger-full-access.:danger-full-access. Around 15:46 AEST (05:46 UTC), the same production workflow successfully acquired 12 fresh chart captures through local CDP. The same run also received HTTP 200 for three external market-data requests.workspace-writeprofile and reportedCODEX_SANDBOX_NETWORK_DISABLED=1. Around 15:50 AEST (05:50 UTC), all three configured127.0.0.1TCP endpoints failed withWinError 10013/WSAEACCES. In that same executor,git ls-remote origin refs/heads/mainfailed atgetaddrinfo()with exit 128.The new-conversation failure persisted after switching models, including GPT-6.2 Sol. The difference is observable in the permissions applied to the command executor. What selects the restricted profile for the new conversation is still unknown.
Could the Work/Codex Windows team compare how effective permissions are resolved for a resumed local conversation and a new local conversation, and identify which setting or managed policy chooses the latter profile? If this behavior is expected, please document how to grant authorized localhost and HTTPS access in new local Work conversations and show the effective policy and its source in the app.
hsrxr commentedon Nov 22, 2026
Additional reproduction on a separate Windows machine, 2026-11-22 16:47 UTC+08:00.
26300.9818; PowerShell7.6.9; Python3.12.5.26.1117.4957.0.workspace-writeand restricted network access. Allow public internet access was already on. Toggling it, opening multiple fresh Work chats, restarting the app, and rebooting Windows did not restore connectivity.requirements.tomland the machine-levelRequirementsPathoverride were absent. The user-level Codex config declaredsandbox_mode = "danger-full-access", while the Work shell received the managed profile above.Results in the affected Work shell
CODEX_SANDBOX_NETWORK_DISABLED1127.0.0.1and::1. Both client connects raisedPermissionError, WinError10013.socket.getaddrinfoforexample.com,github.com, andapi.deepseek.com11001.curl.exeHTTPS toexample.comandapi.deepseek.com/models6(could not resolve host) for both.example.comusing its default proxy configurationPermissionError, WinError10013, before an HTTP response.The loopback probe uses two TCP sockets in one process and no proxy, DNS, or external service. A standalone Codex CLI comparison was not run on this machine. Could the team confirm which policy selects restricted networking for new Windows Work sessions with the public-internet toggle enabled, and whether that policy source can be surfaced in diagnostics?
ImadC9 commentedon Nov 23, 2026
I reproduced this on November 23 using ADB over USB as the local service.
26.1117.4957.026300workspace-write, withCODEX_SANDBOX_NETWORK_DISABLED=1even after enabling network access in the desktop settings.On the same PC, regular PowerShell starts the ADB server and successfully runs read-only commands against the authorized USB device. In the Work shell, a direct .NET TCP connection to the ADB server at
127.0.0.1:5037fails immediately withSocketException / AccessDenied / WinError 10013. The ADB client consequently reports that it cannot connect to its daemon. A separate loopback test in the Work shell also reproduced the denial on an OS-assigned port: bind/listen succeeded, then the client connect was denied.Is there a supported way for the Work shell to reach an explicitly authorized localhost service while keeping the existing filesystem restrictions? It would also help if the desktop app showed the effective network policy and where it came from.
miomelliot commentedon Nov 23, 2026
I can reproduce a similar TCP connectivity failure in ChatGPT Work on Windows 11 (November 23, 2026). This adds a comparison against an external PostgreSQL endpoint that is reachable from a regular PowerShell session on the same machine, using the same hostname and port.
Reproduction
Regular Windows PowerShell (outside Work):
Result:
PowerShell executed inside ChatGPT Work:
Result:
The hostname resolved to the same IP address, but the TCP connection failed.
Direct .NET socket connection inside Work:
Result:
MethodInvocationExceptionfrom the constructor, with the underlying error (translated from Russian): "An attempt was made to access a socket in a way forbidden by its access permissions." PowerShell exit code:1.Observations
CODEX_SANDBOX_NETWORK_DISABLED, or the state of the Allow public internet access toggle, so I cannot attribute this to a specific policy layer.Could the team clarify how the effective network policy is determined for local Work executors, and whether there is a supported way to allow outbound TCP connections to explicitly trusted development services while retaining filesystem isolation? Showing the effective sandbox/network policy and its source in Work diagnostics would also make this much easier to troubleshoot.
The actual database hostname/IP, port, and credentials are intentionally omitted.
VigneshReddyJulakanti commentedon Nov 25, 2026
Guys I had this same issue spent lot of time nothing worked.
At last in chat gpt window app, I toggled from chatgpt to code on top left.
Now in new chat, by giviing full persmisison from teh seletion below I treid this again and it worked
YuK1Game commentedon Nov 26, 2026
これはいつ解決しますか?非常に不便しています。
仕事の調査で外部アクセスが必要だけどそれができずに手動で調査しています。
AIである必要性がありません。