Client or integration
OpenCodex dashboard
Area
Catalog / models
Summary
Issue 4458 reported two defects. The runtime half is fixed on dev by #4585 (merged as dfa0e2f985): the prompt probe resolves the installed Codex executable through the shared runtime resolver, including the Windows Codex App layout under %LOCALAPPDATA%\OpenAI\Codex\bin\<version>, and classifies its failures.
The second half was deliberately left out of that PR because it belongs to a different surface, and it is still missing. The probe does not report the selected model's published base prompt. prompt_debug.rs returns prompt.input and discards base_instructions, so the base prompt never appears in the probe output even when the selected model catalog carries a base_instructions entry.
What the probe should additionally return:
- the selected root model and the file the base prompt was read from;
- the complete published base prompt for that model, read from the catalog or from a configured
model_instructions_file override;
- a representation flag distinguishing text that is already expanded from a template that still contains expansion placeholders;
- source-specific unavailability reasons, so "no model selected", "model not in catalog", "catalog unreadable", "not published", and "override missing or unreadable" are told apart rather than collapsing into one absent value.
Prior art: #4461 by @S0RYUASUKA implemented this alongside the runtime work and went through several review rounds on it — bounded reads, non-regular-file rejection, treating an empty or whitespace-only override as unavailable rather than as effective prompt text, and keeping malformed catalog rows unavailable instead of throwing. That branch is the reference for anyone picking this up.
Out of scope here, and named so it is not assumed: profile and root instructions precedence, and any GUI rendering of the template representation.
Reproduction
- Select a root model whose catalog entry carries
base_instructions.
- Call the prompt-text probe through the Codex prompt management endpoint.
- The response returns the rendered layer sections but carries no base-prompt text, no source path, and no representation metadata.
Version
dev at dfa0e2f985e32df8263c87ad43d17ce0123a42be.
Operating system
Platform-independent; the runtime-discovery half that was Windows-specific is already fixed.
Provider and model
Not provider-specific.
Logs or error output
No error is produced. The base prompt is simply absent from the probe response.
Screenshots and supporting files
None. This is backend-only and proposes no GUI change.
Redacted configuration
No account tokens, user names, or machine-specific absolute paths are included.
Checks
Client or integration
OpenCodex dashboard
Area
Catalog / models
Summary
Issue 4458 reported two defects. The runtime half is fixed on
devby #4585 (merged asdfa0e2f985): the prompt probe resolves the installed Codex executable through the shared runtime resolver, including the Windows Codex App layout under%LOCALAPPDATA%\OpenAI\Codex\bin\<version>, and classifies its failures.The second half was deliberately left out of that PR because it belongs to a different surface, and it is still missing. The probe does not report the selected model's published base prompt.
prompt_debug.rsreturnsprompt.inputand discardsbase_instructions, so the base prompt never appears in the probe output even when the selected model catalog carries abase_instructionsentry.What the probe should additionally return:
model_instructions_fileoverride;Prior art: #4461 by @S0RYUASUKA implemented this alongside the runtime work and went through several review rounds on it — bounded reads, non-regular-file rejection, treating an empty or whitespace-only override as unavailable rather than as effective prompt text, and keeping malformed catalog rows unavailable instead of throwing. That branch is the reference for anyone picking this up.
Out of scope here, and named so it is not assumed: profile and root
instructionsprecedence, and any GUI rendering of the template representation.Reproduction
base_instructions.Version
devatdfa0e2f985e32df8263c87ad43d17ce0123a42be.Operating system
Platform-independent; the runtime-discovery half that was Windows-specific is already fixed.
Provider and model
Not provider-specific.
Logs or error output
No error is produced. The base prompt is simply absent from the probe response.
Screenshots and supporting files
None. This is backend-only and proposes no GUI change.
Redacted configuration
No account tokens, user names, or machine-specific absolute paths are included.
Checks