Skip to content

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

Open

Description

@GiangNguyen2210

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.

Activity

  1. added
    app
    on Oct 12, 2026
  2. added
    bug
    windows-os
    sandbox
    app-server
    on Oct 12, 2026
  3. github-actions commented on Oct 12, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. JakeHuang310 commented on Oct 13, 2026

    @JakeHuang310

    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.

  5. OscarNotFound commented on Oct 19, 2026

    @OscarNotFound

    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.

  6. xuqixi74-stack commented on Oct 20, 2026

    @xuqixi74-stack

    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.

  7. xuqixi74-stack commented on Oct 20, 2026

    @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.

  8. jz-74 commented on Oct 21, 2026

    @jz-74

    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.

  9. Skalda555 commented on Oct 24, 2026

    @Skalda555

    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.

  10. chuckhsuan commented on Oct 27, 2026

    @chuckhsuan

    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.
  11. jaredwinkler commented on Nov 4, 2026

    @jaredwinkler

    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.

  12. j44miller commented on Nov 9, 2026

    @j44miller

    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?

  13. 10 remaining items

  14. Knaledge commented on Nov 24, 2026

    @Knaledge

    let's get this fixed

  15. adamshand commented on Nov 24, 2026

    @adamshand

    Also reproduces on macOS (ChatGPT desktop app). Not Windows-only.

    Environment

    • macOS (Apple Silicon), ChatGPT.app 26.1117.41037. Shell commands in the desktop thread report CODEX_VERSION=0.0.0.
    • Standalone Codex CLI 0.172.0 on the same machine works (see below).
    • A customer of ours on Windows hit the same thing in the desktop app at the same time. Both of us were working normally until
      roughly the last few days, with no settings changed.

    Symptom
    In a new desktop thread, every outbound request from the shell fails:

      $ env | grep CODEX_SANDBOX
      CODEX_SANDBOX_NETWORK_DISABLED=1
      $ curl https://example.com
      curl: (6) Could not resolve host: example.com
    

    What I tried. None of it changed the outcome in the desktop app:

    1. User config.toml with the legacy settings:
        sandbox_mode = "workspace-write"
        [sandbox_workspace_write]
        network_access = true
    2. Selecting Full access in the permissions selector before the first message of a new thread. The agent reported that its session
      still had workspace-only access, and its approval policy automatically rejects requests to run outside the sandbox. So there's no
      way to escalate.
    3. Replacing the legacy settings with a permission profile:
        default_permissions = "workspace-net"
        [permissions.workspace-net]
        extends = ":workspace"
        [permissions.workspace-net.network]
        enabled = true
      After fully quitting and relaunching the app, a new thread showed workspace-net as its profile but still had
      CODEX_SANDBOX_NETWORK_DISABLED=1, and DNS failed.

    Control: with the same permission-profile config, the standalone CLI worked correctly:

      $ codex exec "env | grep CODEX_; curl -sS https://<our api>/health"
      CODEX_PERMISSION_PROFILE=workspace-net
      CODEX_SANDBOX=seatbelt
      (no CODEX_SANDBOX_NETWORK_DISABLED)
      {"message":"API is healthy.", ...}
    

    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.

  16. adamshand commented on Nov 24, 2026

    @adamshand

    This seems to be fixed as of 26.1120.41243 but required me to uninstall and completely delete all settings.

  17. ai-enterpriseai commented on Nov 25, 2026

    @ai-enterpriseai

    This is still broken. Reinstalls don't help.

  18. neyz commented on Nov 25, 2026

    @neyz

    I have the same issue. Work has become completely useless since it cannot access any remote ressources.

    Reinstall did not help.

  19. Knaledge commented on Nov 25, 2026

    @Knaledge

    Still an issue after latest updates to Desktop and Codex. This really needs to be addressed immediately as sev 2

  20. noelmom commented on Nov 25, 2026

    @noelmom

    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.

    Configuration
    sandbox_mode = "workspace-write"
    
    [sandbox_workspace_write]
    network_access = true
    

    Observed inside the Codex shell

    CODEX_SANDBOX_NETWORK_DISABLED=1
    CODEX_VERSION=0.0.0
    
    DNS lookup for example.com: No such host is known
    HTTPS request to https://example.com: No such host is known
    TCP connection to 1.1.1.1:443: An attempt was made to access a socket in a way forbidden by its access permissions
    

    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?

  21. xzk112300-source commented on Nov 26, 2026

    @xzk112300-source

    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 (curl exit 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.

  22. MrCorn commented on Nov 27, 2026

    @MrCorn

    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

  23. Knaledge commented on Nov 28, 2026

    @Knaledge

    Still a problem, let's get it fixed.

  24. Traeyee commented on Nov 28, 2026

    @Traeyee

    Still, hope fixed

  25. csbwta0 commented on Nov 29, 2026

    @csbwta0

    same problem

  26. sedeta commented on Nov 30, 2026

    @sedeta

    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.

  27. serhattaylanai-spec commented on Nov 30, 2026

    @serhattaylanai-spec

    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.

    • User config contains sandbox_mode = "workspace-write", [windows] sandbox = "elevated", and [sandbox_workspace_write] network_access = true.
    • The project is trusted; no project-level .codex/config.toml was found.
    • A saved November 27 Desktop session context records approval_policy: "on-request" and sandbox_policy.network_access: true.
    • The current execution environment runs as CodexSandboxOffline, sets CODEX_SANDBOX_NETWORK_DISABLED=1, and exposes a granular approval policy with sandbox escalation disabled.
    • git ls-remote origin HEAD fails connecting to github.com:443. A separate TCP connection attempt reports a socket access-permission denial before GitHub authentication. Loopback HTTP remains accessible.
    • November 30 app-server log entries for multiple turn submissions contain 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.
    • Sandbox runner logs on both dates reference 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 managed permission profile interacts with user network_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.

  28. JZHANG-484088 commented on Dec 1, 2026

    @JZHANG-484088

    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, effective network_access=false, permission_profile.network=restricted, and CODEX_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):

    sandbox_mode = "workspace-write"
    approval_policy = "on-request"
    
    [sandbox_workspace_write]
    network_access = true

    After restarting and testing a fresh conversation, effective network_access=true, permission_profile.network=enabled, and CODEX_SANDBOX_NETWORK_DISABLED was unset. curl.exe -I --connect-timeout 10 --max-time 20 https://github.com returned 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appapp-serverbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions