Skip to content

codex 0.125.0 (Homebrew cask) hangs on startup on macOS — no TUI, no output, no error #20025

Open

Description

@cossio

Summary

After Homebrew auto-bumped the codex cask to 0.125.0 today, running codex
with no arguments hangs indefinitely. There is no TUI, no stdout/stderr output,
and no error. The process has to be killed manually. Even codex --version
hangs, so this is not a TUI-only problem — the process never gets far enough to
print its version.

Environment

  • codex (Homebrew cask): 0.125.0 (/opt/homebrew/bin/codex →
    /opt/homebrew/Caskroom/codex/0.125.0/codex-aarch64-apple-darwin)
  • macOS: 26.4.1 (build 25E253), arm64 (Apple Silicon)
  • Codex desktop app also installed at `/Applications/Codex.app`, version
    bundle 26.422.62136, bundling CLI 0.126.0-alpha.8. The desktop app
    was running at the time of the hang, with an `app-server` process and an IPC
    socket at `$TMPDIR/codex-ipc/ipc-502.sock`.

Reproduction

  1. Have the Codex desktop app running (its `app-server` is active and the IPC
    socket exists in `$TMPDIR/codex-ipc/`).
  2. Run `codex` (no args) from a normal terminal.
  3. Process hangs forever; needs SIGKILL/Ctrl-C to exit.
  4. `codex --version` also hangs (no output before the hang).

What works

  • `/Applications/Codex.app/Contents/Resources/codex --version` (the
    desktop-app-bundled CLI, 0.126.0-alpha.8) responds immediately.
  • So this appears to be specific to the standalone Homebrew-cask CLI 0.125.0.

Hypothesis

Possibly a version mismatch between the standalone CLI (0.125.0) and the
desktop app's app-server / IPC socket (0.126.0-alpha.8) leads to a handshake
that never completes, with no timeout or error path. But since `--version`
hangs too, the issue is hit very early in startup — before any TUI work — so
the cause may be more general (e.g. blocking IPC/auth/marketplace probe with
no timeout).

Notes

  • Binary is signed (TeamID `2DC432GLL2`). Has the usual `com.apple.quarantine`
    xattr from a Homebrew cask install — Gatekeeper would surface a dialog, not
    silently hang, so I don't think that's it.
  • `~/.codex/config.toml` contains a couple of values that look non-standard
    (`model = "gpt-5.5"`, `model_reasoning_effort = "xhigh"`,
    `personality = "pragmatic"`); willing to retest with those removed if it
    would help triage.

Activity

  1. added
    bug
    CLI
    app-server
    on Apr 28, 2026
  2. github-actions commented on Apr 28, 2026

    @github-actions
    Contributor
  3. removed
    app-server
    on Apr 28, 2026
  4. etraut-openai commented on Apr 28, 2026

    @etraut-openai
    Contributor

    Thanks for the report. Version 0.125.0 has been out for a few days already, and we haven't received any other reports of this. That might suggest that this is specific to your system configuration. Perhaps it was a bad download?

  5. cossio commented on Apr 28, 2026

    @cossio
    Author

    Turns out that running codex in the terminal was triggering a gatekeeper dialog in macOS . This was on a remote Mac, so I could not see it. But I wonder why the codex CLI was triggering gatekeeper in the first place.

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

    CLIbugperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions