Skip to content

Codex App GUI no longer works with Clash Verge macOS system proxy, while bundled TUI works with env proxy #13682

Closed as duplicate

Description

@q107580018

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

26.305.950 (863)

What subscription do you have?

business team

What platform is your computer?

Darwin 25.3.0 arm64 arm

What issue are you seeing?

After updating Codex App, the GUI chat cannot connect when using Clash Verge in macOS System Proxy mode. This setup worked correctly before the update.

The issue appears only in the App GUI. The bundled CLI inside the app works normally when proxy environment variables are set manually.

Important comparison:

  • App bundled binary: /Applications/Codex.app/Contents/Resources/codex
  • In terminal, with explicit proxy env vars, the bundled TUI works normally.
  • In the App GUI, connection fails.

This suggests a regression in GUI proxy handling rather than a network, account, or proxy endpoint issue.

Environment:

  • OS: macOS
  • Codex bundled version: codex-cli 0.108.0-alpha.12
  • Proxy tool: Clash Verge
  • Proxy mode: macOS System Proxy
  • Proxy endpoints:

What steps can reproduce the bug?

  1. Enable Clash Verge with macOS System Proxy mode.
  2. Open Codex App GUI.
  3. Start a chat/session.
  4. Observe that the GUI fails to connect.

Control test:

  1. Open terminal and run:

export https_proxy=http://127.0.0.1:7897
export http_proxy=http://127.0.0.1:7897
export all_proxy=socks5://127.0.0.1:7897
/Applications/Codex.app/Contents/Resources/codex

  1. Start a chat in the TUI.

Result:

  • TUI works normally
  • GUI fails to connect

What is the expected behavior?

Codex App GUI should work with macOS system proxy settings (such as Clash Verge system proxy mode), as it did before the update, without requiring manual proxy environment variables.

Additional information

Additional context:

This worked correctly before the recent Codex App update. The regression appears specific to GUI proxy detection.

Since the bundled CLI works when proxy environment variables are provided manually, the issue likely relates to GUI proxy auto-detection or system proxy integration on macOS.

Activity

  1. added
    appIssues related to the Codex desktop app
    on Mar 6, 2026
  2. github-actions commented on Mar 6, 2026

    @github-actions
    Contributor
  3. added
    regressionBehaviors that worked in previous versions but were broken due to an update
    on Mar 6, 2026
  4. Norwa9 commented on Mar 6, 2026

    @Norwa9

    TUI works normally
    GUI fails to connect

    same for me

  5. yujingmarkjiang commented on Mar 13, 2026

    @yujingmarkjiang

    You need to create a ".env" file at the ~/.codex, with content http_proxy='http://proxy-server:port'

  6. Re-dorn commented on Apr 7, 2026

    @Re-dorn

    same question. And ".env" file works for me.

  7. fiowind commented on Apr 18, 2026

    @fiowind

    And ".env" file works for me. 👍

  8. added
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    on Apr 28, 2026
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

    appIssues related to the Codex desktop appbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)macOSregressionBehaviors that worked in previous versions but were broken due to an update

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions