Skip to content

Network/proxy/AppContainer issue causing Codex Store app to hang #19685

Closed

Description

@admincopm

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

Latest

What subscription do you have?

plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Image 正文: ## Summary The Microsoft Store version of Codex fails to load / becomes unresponsive on Windows when using a local proxy/VPN setup, even after adding the Codex AppContainer loopback exemption and importing the system proxy into WinHTTP. This looks related to AppContainer / localhost proxy / WebView2 / Codex sandbox networking rather than a normal browser/network issue. ## Environment - OS: Windows 10 Pro - OS build: 26200 - Architecture: x64 - Codex package: - Name: `OpenAI.Codex` - PackageFamilyName: `OpenAI.Codex_2p2nqsd0c76g0` - PackageFullName: `OpenAI.Codex_26.422.3464.0_x64__2p2nqsd0c76g0` - Version: `26.422.3464.0` - Codex executable: - Path: `C:\Program Files\WindowsApps\OpenAI.Codex_26.422.3464.0_x64__2p2nqsd0c76g0\app\Codex.exe` - Windows Error Reporting shows version: `2080.0.0.0` - WebView2: - Path: `C:\Program Files (x86)\Microsoft\EdgeWebView\Application\147.0.3912.86\msedgewebview2.exe` - Proxy/VPN: - Clash Verge / Mihomo - Local mixed proxy: `127.0.0.1:7897` - TUN mode enabled - Rule mode enabled ## Current proxy state `verge-mihomo` is listening on the local proxy port: ```powershell Get-NetTCPConnection -State Listen | Where-Object { $_.LocalPort -eq 7897 } Result: LocalAddress : :: LocalPort : 7897 ProcessName : verge-mihomo WinHTTP proxy has also been imported: netsh winhttp show proxy Result: Proxy Server(s): 127.0.0.1:7897 Bypass List: localhost;127.*;192.168.*;10.*;172.16.*;... Windows user proxy is also enabled: ProxyEnable: 1 ProxyServer: 127.0.0.1:7897 Loopback exemption state I added the Codex AppContainer loopback exemption: CheckNetIsolation LoopbackExempt -a -n="OpenAI.Codex_2p2nqsd0c76g0" It now appears in the exemption list: Name: openai.codex_2p2nqsd0c76g0 SID: S-1-15-2-2968813833-811790644-2202111208-3784096404-1081847329-2708967783-1438471679 Microsoft Store itself works after similar network fixes, but Codex still does not. Network observations Direct connection to chatgpt.com:443 without the proxy fails in my region/network, but through the Clash/Mihomo TUN/proxy path DNS resolves to fake-ip and TCP succeeds: Resolve-DnsName chatgpt.com -Server 127.0.0.1 Result: chatgpt.com A 198.18.0.11 Test-NetConnection chatgpt.com -Port 443 Result: ComputerName : chatgpt.com RemoteAddress : 198.18.0.11 TcpTestSucceeded : True So the local proxy/TUN path is available at the system level. Actual behavior Codex still fails to load correctly / becomes unresponsive. Windows Event Viewer shows Codex.exe application hangs: ProviderName: Application Hang Event ID: 1002 Message: Codex.exe version 2080.0.0.0 stopped interacting with Windows and was closed. Windows Error Reporting shows: Event type: MoAppHang P1: OpenAI.Codex_26.422.3464.0_x64__2p2nqsd0c76g0 P2: praid:App P3: 2080.0.0.0 There is also a memory warning: Event type: RADAR_PRE_LEAK_64 P1: Codex.exe P2: 2080.0.0.0 WER reports exist under: C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppHang_OpenAI.Codex_26... Codex app logs Codex logs are located under: C:\Users\\AppData\Local\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\ Recent logs include repeated errors like: error [electron-message-handler] Request failed error={"code":-32600,"message":"unsupported feature enablement `workspace_dependencies`: currently supported features are apps, memories, plugins, tool_search, tool_suggest, tool_call_mcp_elicitation"} method=experimentalFeature/enablement/set The app also logs runtime config pointing to: https://persistent.oaistatic.com/codex-primary-runtime/26.423.10653/codex-primary-runtime-win32-x64-26.423.10653.tar.xz Expected behavior After: 1. adding OpenAI.Codex_2p2nqsd0c76g0 to CheckNetIsolation LoopbackExempt, 2. importing WinHTTP proxy from system proxy, 3. confirming 127.0.0.1:7897 is listening, 4. confirming chatgpt.com:443 is reachable through the TUN/fake-ip path, Codex should be able to use the local proxy/TUN route and load normally. Actual behavior Codex still fails / hangs, while the browser and Microsoft Store can use the same network/proxy setup. Related issues This seems related to, but not fully solved by, the following issues: - https://github.com//issues/18675 Windows Codex app DNS/network fails in sandbox despite network enabled; cannot reach local proxy. - https://github.com//issues/17137 Windows app sandbox refresh fails with localhost proxy / Clash Verge TUN. This was reportedly fixed, but this issue still reproduces on OpenAI.Codex_26.422.3464.0. - https://github.com//issues/18647 Windows desktop app intermittently fails streamed responses behind Clash Verge Rev proxy. - https://github.com//issues/17610 Windows desktop app hangs / MoAppHang. - https://github.com//issues/16374 Codex desktop app freezes / MoAppHang. Question Is the Microsoft Store Codex app expected to support Windows localhost proxies / Clash Verge TUN setups from inside the AppContainer/WebView2/sandbox environment? If yes, what additional diagnostics should I collect to identify why Codex still hangs even after loopback exemption and WinHTTP proxy import?

What steps can reproduce the bug?

Steps to reproduce

  1. Install Codex from Microsoft Store.

  2. Use Windows with a local proxy/VPN client, e.g. Clash Verge / Mihomo.

  3. Enable the local proxy:

    • Mixed proxy: 127.0.0.1:7897
    • TUN mode: enabled
    • Rule mode: enabled
  4. Confirm the system/browser can access ChatGPT/OpenAI through the proxy.

  5. Launch the Microsoft Store Codex app.

  6. Codex fails to load or becomes unresponsive.

  7. Add AppContainer loopback exemption:

    CheckNetIsolation LoopbackExempt -a -n="OpenAI.Codex_2p2nqsd0c76g0"
  8. Import system proxy into WinHTTP:
    netsh winhttp import proxy source=ie

  9. Restart Codex and try again.

  10. Codex still fails to load / hangs, even though the proxy works for browser/system traffic.
    如果它要求更短版,就填:

1. Install Microsoft Store Codex on Windows.
2. Use Clash Verge / Mihomo with local proxy `127.0.0.1:7897`, TUN enabled, rule mode enabled.
3. Verify browser can access ChatGPT/OpenAI through the proxy.
4. Launch Codex.
5. Codex fails to load / hangs.
6. Add `OpenAI.Codex_2p2nqsd0c76g0` to `CheckNetIsolation LoopbackExempt`.
7. Run `netsh winhttp import proxy source=ie`.
8. Restart Codex.
9. Codex still fails / becomes unresponsive.

### What is the expected behavior?

_No response_

### Additional information

_No response_

Activity

  1. added
    app
    on Apr 26, 2026
  2. added
    bug
    windows-os
    connectivity
    sandbox
    on Apr 26, 2026
  3. kingsleyonoh commented on May 6, 2026

    @kingsleyonoh

    Adding another affected Windows environment with WER evidence. This may be the same underlying class as this issue, even though I am not intentionally using a localhost proxy/VPN setup.

    Environment

    • Codex CLI: codex-cli 0.128.0
    • Global npm package: @openai/[email protected] (latest when checked on 2026-05-06)
    • Codex app package family: OpenAI.Codex_2p2nqsd0c76g0
    • Codex app package version from WER: OpenAI.Codex_26.429.3425.0_x64__2p2nqsd0c76g0
    • Windows shell: Windows PowerShell
    • Config mode: danger-full-access, approval_policy = "never", YOLO mode
    • Plugins enabled at time of observed hang: browser-use, documents, spreadsheets, presentations
    • Plugins later reduced globally to browser-use only as a mitigation attempt

    User-visible behavior

    Codex intermittently closes during normal interactive coding sessions. The active TUI disappears and the session has to be resumed. This has happened enough during work sessions to become disruptive.

    Windows Event Viewer / WER evidence

    Windows Application log recorded:

    Provider: Application Hang
    Event ID: 1002
    TimeCreated: 2026-05-06 10:43:55 local
    Message: The program Codex.exe version 2345.0.0.0 stopped interacting with Windows and was closed.
    

    Report.wer fields from the archived report:

    EventType=MoAppHang
    OriginalFilename=Codex.exe
    TargetAppId=U:OpenAI.Codex_26.429.3425.0_x64__2p2nqsd0c76g0!App
    TargetAppVer=26.429.3425.0_x64_!2026//04//06:20:19:48!0!Codex.exe
    AppPath=C:\Program Files\WindowsApps\OpenAI.Codex_26.429.3425.0_x64__2p2nqsd0c76g0\app\Codex.exe
    ReportDescription=A problem caused this program to stop interacting with Windows.
    

    Codex log signals around the affected sessions

    The Codex TUI log contains repeated warnings/errors like:

    stream disconnected - retrying sampling request
    startup remote plugin sync failed; ... https://chatgpt.com/backend-api/plugins/list failed with status 403 Forbidden
    failed to warm featured plugin ids cache ... /plugins/featured failed with status 403 Forbidden
    

    The 403 response body appears to be a Cloudflare/browser challenge page (Enable JavaScript and cookies to continue). There are also repeated PowerShell snapshot warnings:

    Failed to create shell snapshot for powershell: Shell snapshot not supported yet for PowerShell
    

    I am not claiming those log lines are the root cause, only that they are repeatedly present in the same environment where Windows reports MoAppHang for Codex.exe.

    Expected

    Codex should recover/retry gracefully or show an actionable error if a plugin sync or stream request fails. It should not become non-responsive until Windows closes Codex.exe.

    Actual

    Windows closes Codex as non-responsive (MoAppHang), and the user must resume the interrupted session.

    Mitigations tried

    • Confirmed latest @openai/codex / Codex CLI version: 0.128.0
    • Disabled nonessential plugins globally (documents, spreadsheets, presentations), leaving only browser-use
    • Considered codex --no-alt-screen; useful only for terminal scrollback/recovery visibility, not a fix for the underlying hang

    I can provide the full Report.wer and redacted codex-tui.log if maintainers want more detail.

  4. MrChronon commented on Oct 9, 2026

    @MrChronon

    I found a reproducible WinHTTP proxy issue on Windows that may explain at least part of the 0x803FB017 failures.

    My setup uses Throne with TUN + split routing.

    netsh winhttp show proxy unexpectedly showed:

    Proxy Server: 127.0.0.1:10801
    

    However, nothing was listening on port 10801.

    The actual active Throne mixed proxy was:

    127.0.0.1:2080
    

    Microsoft Store logs showed the failure specifically while querying the OpenAI Codex package:

    Failed to connect to
    https://displaycatalog-caching.bigcatalog-frontdoor-prod.commerce.microsoft.com/...
    with proxy 127.0.0.1:10801
    
    HRESULT: 0x803FB017
    

    The request was for:

    OpenAI.Codex_2p2nqsd0c76g0
    

    I verified that the actual Throne proxy worked:

    curl.exe -x http://127.0.0.1:2080 https://api.ipify.org

    I also tested the exact Microsoft Store catalog endpoint through 127.0.0.1:2080 and received:

    HTTP 200
    

    Then I verified that 2080 still applied Throne split-routing rules correctly:

    • a Direct-rule domain used my normal public IP
    • a Proxy-rule domain used the VPN exit IP

    Instead of resetting WinHTTP to direct access, I changed it to the active Throne mixed proxy:

    netsh winhttp set proxy 127.0.0.1:2080

    After this:

    • Microsoft Store update downloads started working normally
    • no new 0x803FB017 events appeared during a clean Codex launch test
    • Codex 26.908.4834.0 continued to launch normally

    So in my case, 0x803FB017 was at least partly caused by a stale WinHTTP proxy pointing to a dead localhost port.

    A useful diagnostic for Windows users seeing similar errors may be:

    netsh winhttp show proxy

    and then checking whether the configured localhost proxy port is actually listening.

    Important: I am not claiming this fixes the separate CodexSandboxService / StartService FAILED 87 issue seen in newer builds. These may be two independent problems with overlapping symptoms.

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

    appbugconnectivityperformancesandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions