Skip to content

fix(agent): detect Codex bundled with ChatGPT.app #3

Closed

Description

@ryan-wong-coder

Problem

On macOS, Codex can be provided by the ChatGPT desktop app at:

/Applications/ChatGPT.app/Contents/Resources/codex

The binary works from terminals whose PATH contains the ChatGPT resources directory, but Flowix launched from Finder or the Dock receives a minimal GUI PATH. resolve_codex_binary checks several common installation locations but not the ChatGPT.app bundle. As a result, agent_runtime_status marks Codex unavailable and the / menu hides the Codex agent. If no built-in Flowix model is configured, the agent section can appear completely empty.

Expected behavior

Flowix should detect the executable bundled with ChatGPT.app on macOS without requiring users to create a manual symlink.

Suggested fix

Add /Applications/ChatGPT.app/Contents/Resources/codex as a macOS fallback candidate in resolve_codex_binary, while preserving the existing priority for CODEX_CLI_PATH, process PATH, and common user installation directories. Add a regression test for the candidate path behavior.

Environment

  • macOS
  • Flowix 1.0.5
  • Codex CLI bundled with ChatGPT.app

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions