Skip to content

[Bug]: Custom Codex executable path is inaccessible when Codex is undetected #6122

Description

@Pape45

Before you submit

  • I searched existing issues and confirmed this is not a duplicate.
  • I replaced the example text with the real behavior, reproduction steps, expected result, and version from the app's About menu or od --version.

What happened?

Open Design supports a custom Codex executable path through agentCliEnv.codex.CODEX_BIN, but the setting is inaccessible precisely when it is needed.

The “Advanced: proxy & custom paths” section filters its fields by the currently selected cfg.agentId. When Codex is not detected, its card appears under “Available to install” as a disabled card and cannot be selected. Therefore the user cannot select Codex, cannot reveal the Codex-specific advanced fields, and cannot enter the absolute path that would make Codex detectable.

This creates a circular recovery flow:

  1. Codex must be selected to configure CODEX_BIN.
  2. Codex must be detected before it can be selected.
  3. CODEX_BIN is needed because Codex cannot be detected on the inherited PATH.

Steps to reproduce

  1. Install Codex CLI in a directory not visible to the packaged app's inherited PATH.
  2. Launch Open Design.
  3. Open Settings → Execution mode → Local CLI.
  4. Click Rescan.
  5. Observe that Codex appears under “Available to install”.
  6. Try to select the unavailable Codex card or find the “Codex executable path” setting.
  7. Observe that the card cannot be selected and the custom path field is not rendered.

Expected behavior

Users should be able to configure the absolute Codex executable path while Codex is unavailable, then rescan and select it.

A minimal recovery path could expose the custom executable field/action from the unavailable Codex card or render binary path overrides independently of the currently selected agent.

Open Design version

0.16.1

Platform

macOS (Apple Silicon)

Logs (optional)

Codex CLI (`codex`) was not found on your PATH.

Additional context

The daemon already validates an absolute executable CODEX_BIN override and gives it precedence during agent resolution. The missing piece is UI access to that existing capability when available === false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions