Skip to content

[Windows 10 + 11][Work + Codex Desktop] Networking disabled despite enabled settings; standalone CLI HTTPS succeeds (26.1016.6573.0) #56194

Open

Description

@FoxyLight

What version of the Codex App are you using?

Installed Windows package: OpenAI.Codex 26.1016.6573.0 (from Get-AppxPackage *Codex*).

Standalone Codex CLI: v0.163.0.

What platform is your computer?

The issue was first observed on Windows 10 Pro, version 10.0.19045 (x64). The machine was upgraded to Windows 11 on October 21, 2026, and the same Work/Codex Desktop networking failure persists on Windows 11. The exact Windows 11 build number has not been collected.

This is one computer tested before and after the OS upgrade, not two different computers. The standalone CLI v0.163.0 HTTP 200 control and current package version were captured after the upgrade, on Windows 11.

What issue are you seeing?

Local ChatGPT Work and Codex Desktop sessions consistently run with sandbox networking disabled, even though Work network access is enabled in the UI and the user-level Codex configuration requests workspace-write sandboxing with networking enabled.

Direct HTTPS downloads fail inside affected sessions on both Windows 10 and Windows 11. Upgrading the OS did not resolve the problem. Normal Windows PowerShell and standalone Codex CLI using the workspace-write sandbox both reach the same public HTTPS destination successfully. This reproduces across Work/Codex sessions, including a fresh Work session using GPT-6 Luna. In that Luna session, the agent reported that it had no exposed, supported network permission-request mechanism.

This appears to be a desktop/Work effective-permission-policy mismatch rather than a host DNS/TLS failure or a general inability of the Codex sandbox to access the internet. The precise component assigning the incorrect policy is not established.

Relevant configuration

Work Data Controls UI: network access switch enabled (screenshot captured, available on request).

User config.toml (the settings below were verified and initially misplaced keys were corrected before the final retest):

approval_policy = "on-request"
sandbox_mode = "workspace-write"

[windows]
sandbox = "elevated"

[sandbox_workspace_write]
network_access = true

This configuration is a relevant excerpt, not the full file. In particular, approval_policy and sandbox_mode are top-level settings after correction.

Steps to reproduce

  1. On Windows, enable Work network access in the desktop application. Configure Codex as above.
  2. Restart the desktop application and start a fresh local Work or Codex Desktop session.
  3. Ask the agent to check the effective networking variables and run an ordinary HTTPS request inside its current sandbox, without bypasses:
    $env:CODEX_SANDBOX_NETWORK_DISABLED
    $env:CODEX_PERMISSION_PROFILE
    $env:CODEX_NETWORK_PROXY_ACTIVE
    Resolve-DnsName example.com
    curl.exe -I -L --max-time 15 https://example.com/
  4. If the request is blocked, ask the agent to request authorized network permission and retry. This was also attempted using GPT-6 Luna.
  5. Compare with regular Windows PowerShell and standalone Codex CLI:
    codex exec --skip-git-repo-check --sandbox workspace-write 'Do not modify files. Check CODEX_SANDBOX_NETWORK_DISABLED, then run curl.exe -I --max-time 15 https://example.com/ using only the configured sandbox permissions. Report the exact results. Do not bypass restrictions.'

Actual behavior

Restricted local Work / Desktop sessions:

CODEX_SANDBOX_NETWORK_DISABLED=1
CODEX_PERMISSION_PROFILE=<unset>
CODEX_NETWORK_PROXY_ACTIVE=<unset>
Resolve-DnsName example.com -> Access is denied
curl.exe ... https://example.com/ -> curl: (6) Could not resolve host: example.com

In the Luna Work session, the model reported no supported network permission-request mechanism among the tools exposed to that session. No approval was requested or granted.

Regular Windows PowerShell, same machine:

  • Resolve-DnsName example.com: returned A and AAAA records.
  • curl.exe -vL --max-time 20 -o NUL https://example.com/: completed successfully with HTTP 200 OK, including Schannel/TLS negotiation.
  • netsh winhttp show proxy: direct access (no proxy).
  • Get-ChildItem Env:*PROXY*: no matching environment variables.

Standalone Codex CLI, same machine, explicitly using workspace-write:

OpenAI Codex v0.163.0
sandbox: workspace-write (network access enabled)
CODEX_SANDBOX_NETWORK_DISABLED is unset
curl.exe -I --max-time 15 https://example.com/
HTTP/1.1 200 OK
command exit code: 0

The CLI output also showed approval: never for this noninteractive codex exec invocation. It successfully made the request within its assigned sandbox, without bypassing any restrictions or modifying files.

Expected behavior

When Work public internet access and the Codex workspace-write network setting are enabled, a local Work/Codex Desktop session should either:

  1. Receive the corresponding network-enabled sandbox policy; or
  2. Expose the supported approval mechanism so the user can authorize a scoped network request.

The actual effective policy should be visible and match the permission options selected in the app, rather than silently assigning CODEX_SANDBOX_NETWORK_DISABLED=1.

Related issues

Additional information

  • No firewall, DNS, certificate, or system security settings were changed.
  • No bypass via curl --resolve or similar was attempted after the restricted policy was identified.
  • This report contains no private document contents, credentials, signed URLs, or user-local filesystem paths.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    connectivity
    on Oct 22, 2026
  2. github-actions commented on Oct 22, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. changed the title [-][Windows 10][Work + Codex Desktop] Networking disabled despite enabled settings; standalone CLI HTTPS succeeds (26.1016.6573.0)[/-] [+][Windows 10 + 11][Work + Codex Desktop] Networking disabled despite enabled settings; standalone CLI HTTPS succeeds (26.1016.6573.0)[/+] on Oct 22, 2026
  4. MBUltradent commented on Oct 27, 2026

    @MBUltradent

    This seems to work after updating today to version 26.1023.50603

  5. habr05 commented on Oct 28, 2026

    @habr05

    26.1023.50603 still did not fix on my end.

  6. Animamigrante commented on Oct 29, 2026

    @Animamigrante

    Additional reproduction on 29 October 2026 with ChatGPT desktop version 26.1023.51421 (About screen: “Powered by Codex & OWL”, released 27 October).

    Work public internet access is enabled. The same failure was reproduced in three local Work contexts on the same Windows computer:

    • An existing project conversation.
    • A new Work conversation outside any project.
    • An existing conversation in another project.

    In all three:

    CODEX_SANDBOX_NETWORK_DISABLED=1
    CODEX_PERMISSION_PROFILE=<unset>
    CODEX_NETWORK_PROXY_ACTIVE=<unset>
    

    Local DNS resolution of ws.audioscrobbler.com and www.google.com fails with 11001 / HostNotFound in the first two contexts. The third independently reproduces the Google curl failure below.

    curl.exe -I --connect-timeout 10 --max-time 15 https://ws.audioscrobbler.com/2.0/
    # curl: (6) Could not resolve host: ws.audioscrobbler.com
    
    curl.exe -I --connect-timeout 10 --max-time 15 https://www.google.com/
    # curl: (6) Could not resolve host: www.google.com

    No HTTP response is received inside Work. In ordinary PowerShell on the same computer, the Last.fm endpoint returns HTTP 400, confirming DNS/TCP/TLS reachability there (not API authentication). The host also has a configured DNS server. Google Drive connector reads/writes work, but those are a separate path and are not evidence of local shell internet access.

    Already tried without resolving the issue:

    • Restarting the desktop app.
    • Starting a new Work conversation.
    • Turning Work network access off, leaving settings, then turning it on again.
    • Retesting on the app version above.

    Read-only configuration inspection found no project/ancestor .codex/config.toml overrides. The user config has windows.sandbox="elevated" but no explicit sandbox_workspace_write.network_access setting, so this is not identical to the configuration in the original report. No proxy environment settings were found in the affected process. A timed command/log comparison did not expose the effective policy source or a denial reason.

    No firewall, DNS, credentials, permission profiles, or security settings were modified. Work reset and reinstallation have not been performed. Standalone Codex CLI networking has not been tested on this machine.

    Could maintainers identify a supported, non-destructive way to inspect the source of the effective local Work network policy and reconcile it with the enabled Work network setting? Is there a fix applicable to 26.1023.51421 that retains filesystem isolation and does not require resetting Work or granting Full Access?

    This reproduces the symptom across projects; it does not establish the exact root cause.

  7. tt1o commented on Nov 5, 2026

    @tt1o

    Additional reproduction on 2026-11-05 (Asia/Shanghai): this still occurs in Windows ChatGPT Work after updating the desktop package to OpenAI.Codex 26.1029.7803.0. A separately launched Codex CLI succeeds on the same computer with the existing Google authorization.

    Environment and configuration

    • Windows x64, local execution.
    • Desktop package before update: 26.1013.4894.0.
    • Desktop package after update, verified from the running application path: 26.1029.7803.0.
    • Standalone CLI used for the successful control: codex-cli 0.163.0-alpha.10.2.
    • Visually verified from the user's desktop settings screenshot on 2026-11-05: Settings → 数据管理 (Data management) → 工作模式网络访问 (Work network access) is blue/enabled. This is the actual Work network setting, not the web-search tool in the composer.
    • These settings were verified again after the update:
    [windows]
    sandbox = "elevated"
    
    [sandbox_workspace_write]
    network_access = true

    Actual Work results

    Before the update, TCP connections to both oauth2.googleapis.com:443 and bigquery.googleapis.com:443 failed with PermissionError / WinError 10013.

    After the update, a fresh execution still reports:

    CODEX_SANDBOX_NETWORK_DISABLED=1
    HTTP_PROXY / HTTPS_PROXY / ALL_PROXY: unset
    

    A local diagnostic wrapper using the official Google auth/BigQuery Python SDKs still fails while refreshing the existing personal Application Default Credentials:

    {
      "status": "error",
      "error": "authentication_failed",
      "message": "Personal ADC could not be loaded or refreshed.",
      "exception_type": "TransportError"
    }

    The wrapper's generic suggestion to log in again is not evidence that the credentials have expired. No invalid_grant error was observed. The ADC quota-project warning also appeared in the successful CLI control, so it has not been established as the cause.

    The post-update test stopped after the diagnostic failed; it did not submit a data query or proceed to table metadata retrieval. The direct TCP tests above were performed before the update, not repeated afterwards.

    Successful standalone CLI control

    The user launched the CLI from an ordinary Windows command prompt with:

    --no-daemon --sandbox workspace-write --ask-for-approval on-request
    -c sandbox_workspace_write.network_access=true
    

    The control session recorded sandbox_policy.network_access=true and a network-enabled permission profile. Reusing the existing personal Google ADC, the diagnostic returned status=ok and refresh=succeeded, and BigQuery table schema retrieval succeeded.

    The successful control completed at 2026-11-05 11:23:54 Asia/Shanghai. It only checked authorization refresh and table metadata; no business-data query was executed.

    Already attempted and requested resolution

    The Work network toggle, local configuration, client restart / another desktop task, standalone CLI control, and desktop update have all been checked or attempted. Work still fails after the update.

    This narrows the investigation to Work's effective execution permissions or their handoff, but does not establish whether the cause is stored session permissions, configuration merging, host policy, or another component. The working standalone CLI is a diagnostic control, not a resolution for Work.

    Could maintainers identify which policy source disables networking in Work despite the enabled setting, and provide a supported persistent fix that retains workspace filesystem isolation?

    Acceptance criterion: the existing authorization can refresh and BigQuery metadata can be read directly in an ordinary Work session, including after restarting the desktop app, without manually launching a separate CLI each time.

    No firewall rules, certificate validation, or sandbox protections were disabled for these tests. This report intentionally excludes account emails, credentials, tokens, private filesystem paths, raw private logs, and internal database/table names.

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

    appbugconnectivitysandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions