Skip to content

[Bug][Windows] Prompt probe misses Codex App runtime and base prompt source #4458

Description

@S0RYUASUKA

Client or integration

OpenCodex dashboard

Area

Platform (Windows / macOS / Linux)

Summary

On Windows, the Codex prompt probe can report Codex program not found even when Codex is installed by the Codex App. The installed executable is under the stable product root %LOCALAPPDATA%\OpenAI\Codex\bin\<changing-version>\codex.exe, while the prompt probe only checked fixed POSIX paths. The probe also did not expose the selected model's published base prompt in its response.

Reproduction

  1. Install Codex on Windows through the Codex App.
  2. Start the OpenCodex service in the normal Windows service flow.
  3. Call the prompt-text probe through the existing Codex prompt management endpoint.
  4. Observe Codex program not found, although the Codex executable exists below %LOCALAPPDATA%\OpenAI\Codex\bin.
  5. The response has no selected-model base prompt source or representation metadata.

Expected:

  • The probe should resolve the installed Codex executable using the shared runtime-discovery rules, including the Windows installation root and the inherited Windows PATH.
  • The prompt response should identify the selected model and source file, return the complete published base prompt, and distinguish expanded text from an unexpanded template.
  • Probe failures should distinguish program not found, unsupported command, execution failure, and invalid output.

Actual:

  • The probe reports repeated path does not exist candidates and stops before invoking the installed Windows Codex executable.
  • The base prompt is absent from the probe response even when the selected model catalog contains base_instructions.

Version

  • OpenCodex: local production reproduction on 2.52.0; candidate verification is based on current dev at dc33113a9e6f5597ef9b2eecd692d7dc4b28dbd3 (package version 2.53.0).
  • Codex CLI: codex-cli 0.154.0-alpha.6.2.

Operating system

Windows (local reproduction; exact version omitted for privacy)

Provider and model

Not provider-specific.

Logs or error output

  • Codex is installed below %LOCALAPPDATA%\OpenAI\Codex\bin\<changing-version>\codex.exe.
  • The selected model catalog contains a base_instructions entry for the active model.

Screenshots and supporting files

No screenshot is included because this change does not modify the GUI.

Redacted configuration

  • No account tokens, user names, or machine-specific absolute paths are included here.

Checks

The candidate fix was verified locally without a paid model request. Focused backend tests, type checking, privacy scanning, and diff whitespace checks passed. The broad changed-test run timed out at the local 240-second runner limit with 8,692 passed and 172 failures across unrelated provider/network, account-pool, management/API, and lab suites; it is not represented as upstream CI evidence. The candidate's prompt-probe and runtime tests passed in that run. This report is limited to the backend prompt-probe and runtime path; it does not propose GUI changes.

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

    bugSomething isn't workingcatalogModel catalog, slugs, visibility, routed entriesplatformOS/service/tray/ACL (Windows-heavy, not Windows-only)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions