Skip to content

Codex Desktop for Windows: New threads lose permission selector and cannot establish outbound SSH connections #61120

Open

Description

@ignacioinventa

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

26.1106.6628.0

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26300.0 x64

What issue are you seeing?

Codex Desktop for Windows: New threads lose permission selector and cannot establish outbound SSH connections

Environment

  • Codex Desktop: 26.1106.6628.0
  • Codex Primary Runtime: 26.1111.570.0
  • Codex CLI: 0.147.0
  • OS: Windows
  • Installation: Microsoft Store package

Issue

Existing Codex Desktop threads can establish SSH connections to my VPS and execute remote commands successfully.

However, all newly created threads fail, both in existing projects and in newly created projects.

The permissions selector initially shows "Auto approve", but disappears after sending the first instruction.

What steps can reproduce the bug?

Diagnostics

  • Effective sandbox: workspace-write
  • CODEX_SANDBOX_NETWORK_DISABLED=1
  • Effective sandbox_approval=false
  • Outbound TCP connection to port 22 fails with Windows AccessDenied (10013).
  • Local config.toml specifies sandbox_approval=true and network access for workspace-write.
  • Codex CLI can connect successfully to the same VPS using SSH.
  • Existing Desktop threads also connect successfully.
  • Repairing the Windows application did not resolve the issue.
  • Microsoft Store reports no available updates.

Expected behavior

New Desktop threads should be able to use the configured network permissions or request approval for outbound SSH connections.

Actual behavior

New threads start with network access disabled and cannot request sandbox escalation. The permissions selector disappears after the first instruction.

Request

Please investigate why Codex Desktop applies different effective sandbox and approval policies to new threads compared with existing threads, and whether this is a regression in the Windows Desktop runtime.

What is the expected behavior?

SSH connections

Additional information

No response

Activity

  1. added
    app
    on Nov 12, 2026
  2. added
    bug
    windows-os
    sandbox
    on Nov 12, 2026
  3. GeekMonkey-ca commented on Nov 12, 2026

    @GeekMonkey-ca

    Having the exact same issue, with all of your exact error codes and behavior. Windows installed Update 2026-11 Security Update (KB5132061) (26200.9974) immediately prior to this occurring for me. After the reboot, Codex can no longer write or obtain network access;

    File Write to local device reports Underlying HRESULT: -2147024891 (0x80070005).
    Connect to 127.0.0.1:3306 Failed: An attempt was made to access a socket in a way forbidden by its access permissions. Native Windows error: 10013; socket error: AccessDenied.

    Hopefully this is resolved soon.

    Update — November 12, 2026: Partial recovery after clean reinstall

    Following the November 11 Windows update (KB5132061), Codex stopped accessing local files and network services correctly.

    Troubleshooting performed:

    1. Confirmed filesystem error 0x80070005 and TCP socket error 10013 inside Codex. Both operations worked normally outside Codex.
    2. Confirmed Codex was running at Low Integrity with CODEX_SANDBOX_NETWORK_DISABLED=1.
    3. Confirmed effective session policies differed from config.toml, with sandbox elevation requests automatically rejected.
    4. Multiple approval requests were explicitly accepted but returned as aborted or no longer active.
    5. Windows application Repair and restarting the sandbox service did not help.
    6. Uninstalled KB5132061, reverting Windows from build 26200.9974 to 26200.9711. The problem persisted.
    7. Completely uninstalled Codex, restarted Windows, renamed .codex to preserve the original configuration, and reinstalled Codex through the Microsoft Store.
    8. Codex displayed a Windows sandbox initialization message and restarted. An initial conversation used a Linux environment, although subsequent local conversations successfully used Windows.
    9. Added the following settings to the freshly generated config.toml, retaining [windows] sandbox = "elevated":
    sandbox_mode = "workspace-write"
    approval_policy = "on-request"
    
    [sandbox_workspace_write]
    network_access = true

    Current results:

    • Local filesystem read/write operations now work.
    • TCP connections to 127.0.0.1:3306 succeed outside the sandbox.
    • The same TCP connections still fail inside the Windows sandbox with error 10013, despite network_access = true.
    • No new Codex-related errors were found in Windows Event Viewer following the reinstall.

    Conclusion:

    The clean reinstall and fresh configuration partially restored functionality, but sandboxed network access remains broken. The Windows update coincided with the original failure, although uninstalling it did not resolve the issue.

    This appears to be an ongoing Windows sandbox/network-permission problem rather than a general filesystem or network connectivity issue.

  4. Otautahi commented on Nov 15, 2026

    @Otautahi

    I can independently reproduce this on Windows with the Microsoft Store Codex desktop app (package version 26.1111.2228.0; desktop runtime configuration reports build 26.1111.21308). My use case is SSH to a Raspberry Pi on the same private LAN.

    Verified comparison on the same Windows PC:

    • Native Windows PowerShell / OpenSSH: passwordless SSH works.
    • Standalone npm-installed Codex CLI v0.169.0: SSH works when launched with --sandbox danger-full-access --ask-for-approval on-request, using an explicit identity file and destination IP.
    • Codex desktop, local trusted project, fresh conversations: SSH fails before authentication, even after selecting Full Access. Test-Path confirms the private key is accessible. Test-NetConnection <LAN-IP> -Port 22 reports TcpTestSucceeded: False and a CIM access warning.

    Desktop SSH error (LAN address redacted):

    ssh: connect to host <LAN-IP> port 22: Permission denied
    

    Desktop execution environment reports:

    CODEX_SANDBOX_NETWORK_DISABLED=1
    CODEX_VERSION=0.0.0
    

    Effective sandbox is workspace-write, despite explicitly configuring sandbox_mode = "danger-full-access" and approval_policy = "on-request" in the shared user config and restarting the app. The Windows sandbox setting is elevated.

    I also tried switching the global configuration to workspace-write with [sandbox_workspace_write] network_access = true, but desktop SSH still fails. Requests to execute outside the sandbox have also failed to resolve the problem. The npm CLI remains a working comparison on the same machine.

    This seems to isolate the problem to the desktop runtime's effective sandbox/network policy rather than SSH authentication, DNS, the remote SSH server, or general Windows connectivity. I would appreciate a fix or a supported desktop workaround that permits approved SSH access to private LAN hosts. I have not established whether the Windows update mentioned in another comment is related to my case.

  5. GiftedMamba commented on Nov 17, 2026

    @GiftedMamba

    I can confirm a related regression on Windows after the recent Codex update, affecting SSH Git operations against private GitLab repositories.

    The problem began immediately after updating to Primary Runtime 26.1116.1210.0. Before the update, the same repositories worked with the same SSH and Git configuration. I made no Git or SSH configuration changes.

    Environment

    • Codex Desktop: 26.1111.2228.0
    • Codex Primary Runtime: 26.1116.1210.0
    • Windows, Git for Windows, SSH authentication
    • Observed: November 17, 2026

    Reproduction and results

    1. Confirm the private GitLab repository is reachable from normal PowerShell using SSH.
    2. In Codex Desktop, attempt git clone into a new folder in the workspace, starting with no destination folder.
    3. Repeat under each permission mode:
      • Ask for approvals: The session log records an escalation request with the user as reviewer, but no approval prompt appears. The request remains unresolved until canceled; no checkout is created.
      • Approve for me: The log records escalation to automatic review, but no decision arrives before the attempt is canceled; no checkout is created.
      • Full access: git clone succeeds (exit code 0) and the checkout is clean.
    4. Normal PowerShell Git/SSH operations also work.

    Before escalation, sandboxed git ls-remote fails inside Git for Windows' sh.exe with NtCreateDirectoryObject(...): 0xC0000022, before reaching GitLab.

    Unlike the original report, the permission selector remains usable in my case and escalation requests are logged; the failure appears to be in completing those requests. This suggests a related sandbox/approval regression, but the logs do not establish exactly where requests stall or prove that the runtime update caused it.

    Expected: Ask for approvals should show an actionable prompt; Approve for me should return a decision or a clear error. Both modes worked with these repositories before the update.

  6. ChrisDurham192 commented on Nov 18, 2026

    @ChrisDurham192

    Also affected: started after auto-update on 16 Nov 2026

    Environment

    OS Windows 11 26H2, build 26300.9974 (KB5132061 installed 11 Nov)
    App ChatGPT desktop (OpenAI.Codex) 26.1111.2228.0
    Runtime Codex Primary Runtime 26.1112.737.0
    Mode ChatGPT Work

    Timeline (from the AppXDeploymentServer/Operational event log)

    • 11 Nov: app updated 26.1103 → 26.1106.6628, which kept working normally
    • 16 Nov 08:25–10:47: app updated 26.1106.6628 → 26.1111.2228.0, runtime v26-1110-973 → v26-1112-737 (several 0x80073D02 retries during install)
    • 16 Nov onwards: local network connections broken

    Symptoms

    • Local network access is enabled in settings, but connections to my local/LAN databases ([e.g. SQL Server on 192.168.x.x:1433]) are blocked
    • When the app asks for manual permission, it reports "permission denied" about 0.1 s later, before I can respond, so the denial is automatic rather than mine
    • Permission mode in use: [Approve for me / Ask for approvals / Full access]

    Notes

    This worked reliably on 26.1106.6628 until the 16 Nov update, so it looks like a regression in 26.1111 / runtime v26-1112.

  7. andrermachado commented on Nov 20, 2026

    @andrermachado

    Additional reproduction — Windows Codex SSH and network regression

    I am experiencing a similar issue with Codex on Windows.

    Environment

    • Codex Primary Runtime: 26.1118.904.0
    • OpenSSH for Windows: 9.5p2
    • Effective session: workspace-write, auto_review
    • CODEX_PERMISSION_PROFILE=:workspace
    • CODEX_SANDBOX_NETWORK_DISABLED=1
    • User configuration requests [windows] sandbox = "elevated"

    Timeline

    • November 15: SSH authentication to a private LAN server was working from Codex. Later that day, authentication failed after the server accepted the ED25519 public key. The client did not complete signing.
    • November 20: SSH failed before authentication with WinSock error 10013 (Access Denied).
    • Subsequent diagnostics: New sessions continued to report CODEX_SANDBOX_NETWORK_DISABLED=1.

    Manual SSH from Windows PowerShell was previously confirmed working.

    No changes to the SSH server, SSH keys or Windows ACLs were made during these diagnostics.

    Important distinction: The earlier signing failure and the current network restriction may have different causes. We have not established which policy or update introduced the regression.

    Could the Codex Windows team clarify why the effective session uses a network-disabled workspace profile despite the local configuration, and whether there is a supported way to restore approved LAN connectivity while retaining sandbox isolation?

  8. RaniSreenivas commented on Nov 22, 2026

    @RaniSreenivas

    Same problem here. Codex app 26.1117.4957.0 (codex-cli 0.171.0-alpha.13), Windows 11, MXC sandbox.
    A project permission profile in .codex\config.toml (default_permissions, network enabled, "127.0.0.1" = "allow") worked on 21 Nov in an existing thread (TCP + MySQL SELECT 1 on 127.0.0.1:13335 PASS).
    On 22 Nov a NEW thread in the same project got WinError 10013 on 127.0.0.1 (MySQL and a local HTTP test), and its temp folder was inside the AppContainer (...\Packages\openai.codex_...\AC#!sandbox...\Temp), where mklink /J also failed.
    The same test in the OLD thread passed again on 22 Nov 10:10 IST. So new threads ignore the project permission profile; existing threads keep it.

  9. Misha20062006 commented on Nov 22, 2026

    @Misha20062006

    Additional reproduction on November 22, 2026, in a new local Work conversation in ChatGPT desktop for Windows.

    • Installed desktop package (Windows registration): 26.1117.4957.0
    • Windows build: 10.0.26300.9974
    • Agent shell: PowerShell 7.6.9; OpenSSH for Windows 9.5p2
    • Effective execution context: workspace-write, restricted network, CODEX_SANDBOX_NETWORK_DISABLED=1

    A read-only SSH connection check to an existing VPS fails before authentication: ssh: connect to host <redacted> port <redacted>: Permission denied (exit 255). A .NET TcpClient.ConnectAsync check to the same endpoint and a separate check to 1.1.1.1:443 both fail immediately with SocketException / AccessDenied / 10013. curl.exe -I https://github.com/ exits 6 (DNS lookup failure) both in the default shell and when invoked through cmd.exe.

    The desktop Integrated terminal shell setting already showed Git Bash. As documented, that preference applies to new interactive terminal sessions. Agent commands in the new Work conversation still ran in Windows-native PowerShell, with the network restriction above. This reproduction checks the effective Work session settings. The state of the separate network permission and whether older conversations on this installation still work were not verified.

  10. Misha20062006 commented on Nov 22, 2026

    @Misha20062006

    Follow-up to my reproduction on Windows desktop 26.1117.4957.0. Work public internet access is enabled. I ran the same direct TCP test to 1.1.1.1:443 in a reopened older conversation in the desktop app.

    • New local Work conversation: CODEX_SANDBOX_NETWORK_DISABLED=1. TCP failed with AccessDenied (WinError 10013).
    • Reopened older conversation: CODEX_SANDBOX_NETWORK_DISABLED was unset. TCP connected within five seconds.

    The failure reproduced in the tested new conversation. The reopened older conversation works as a temporary workaround on this installation.

  11. eyalco commented on Nov 26, 2026

    @eyalco

    I can reproduce this on Windows with the ChatGPT desktop app (installed package OpenAI.Codex 26.1120.6357.0, tested November 26). I found a difference between two choices in Settings → Configuration → Work → Local approval policy that may help narrow it down.

    I ran the same read-only test, ssh <host-alias> hostname, against the same server. It succeeds from ordinary PowerShell. Here is what I saw in Work:

    Work approval policy Result
    Ask for approval, using the default The alias resolves, then the connection to port 22 returns Permission denied before authentication. No approval prompt appears.
    Ask for approval, explicitly selected Work shows Allow once. After I approve, SSH returns the remote hostname.
    Untrusted or Never ask SSH does not connect in my tests.

    In a blocked shell, CODEX_SANDBOX_NETWORK_DISABLED=1. I verified the personal TOML parses and contains approval_policy = "on-request", sandbox_mode = "danger-full-access", and [sandbox_workspace_write] network_access = true. A fresh Work chat still reproduced the block with the default selection.

    This makes Codex unusable for my unattended research workflow. The jobs run on a remote server, and I can’t stay at the desktop to approve each SSH operation. Could a maintainer clarify what Use default inherits in Work and whether there is a supported way to authorize a specific SSH host for a session or project? I’d be happy to test a fix against these same settings.

  12. CoCo-Synthesis commented on Nov 28, 2026

    @CoCo-Synthesis

    I also encountered this on Windows in ChatGPT Work. With Work network access already enabled in Settings, a newer conversation reported CODEX_SANDBOX_NETWORK_DISABLED=1. An HTTPS operation failed at DNS resolution, and the request for network access was rejected without showing me an approval prompt. Restarting the app and retrying in the same conversation did not help. Reopening an older conversation on the same machine let me complete the same operation successfully. Could the team investigate why those two conversations received different effective permissions?

  13. zyanzhao commented on Nov 30, 2026

    @zyanzhao

    Adding a possibly related Windows ChatGPT desktop Work report, with the user's permission. This is a Work task, not a manually launched standalone Codex CLI session; we have not established that the underlying cause is the same as this issue.

    Observed on November 30, 2026:

    • The user reports that no Permissions/network control is visible in the task composer, so they cannot request network access.
    • Effective command-execution environment: workspace-write, restricted network, and sandbox escalation requests are disallowed.
    • CODEX_SANDBOX_NETWORK_DISABLED=1 is present at Process scope. Windows User and Machine environment-variable scopes do not contain that variable. This does not establish which launcher/runtime injected it.
    • curl.exe -I --connect-timeout 8 --max-time 12 https://github.com returns curl: (6) Could not resolve host: github.com.
    • Downloading an uploaded Excel attachment using the supported file-transfer helper fails with download failed: network.
    • Windows system proxy is enabled, and [features] respect_system_proxy = true is configured. Proxy connectivity has not been independently established.
    • The default .codex/.sandbox/sandbox.log was not found.
    • The user reports that reinstalling did not resolve the issue.

    Environment: Windows, ChatGPT Plus, desktop Work task using a local Windows working directory. Exact About-dialog app version and workspace membership are unverified. Package enumeration was denied and the app update-check tool failed, so we cannot claim the installation is current.

    Request: Please investigate why the effective network restriction has no visible Permissions control or supported request path in this Work session. If this tracker is not appropriate for Work execution/UI issues, please provide the correct escalation route and current diagnostic instructions. Local usernames, file contents and session transcripts have been omitted.

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

    appbugremotesandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions