fix(codex): strip openai/ provider prefix from Codex model identifiers - #60423
Merged
pelikhan merged 2 commits intoSep 12, 2026
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix model not supported error in codex engine
fix(codex): strip Sep 12, 2026
openai/ provider prefix from Codex model identifiers
pelikhan
marked this pull request as ready for review
September 12, 2026 15:03
pelikhan
deleted the
copilot/aw-systemic-fix-model-not-supported-error
branch
September 12, 2026 15:04
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The normalization is narrowly scoped, adequately tested, and consistently reflected in generated workflows.
Pull request overview
This PR fixes Codex workflows by passing bare OpenAI model identifiers to the Codex CLI.
Changes:
- Strips recognized
openai/andcopilot/prefixes. - Adds case-insensitive unit coverage.
- Regenerates 38 workflow lock files and adds a patch changeset.
File summaries
| File | Description |
|---|---|
pkg/workflow/codex_engine.go |
Normalizes Codex model IDs. |
pkg/workflow/codex_engine_test.go |
Tests recognized and unknown prefixes. |
.changeset/codex-openai-model-prefix.md |
Documents the patch. |
.github/workflows/update-astro.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/spec-enforcer.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/schema-consistency-checker.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/repo-audit-analyzer.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/poem-bot.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/notion-issue-summary.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/lint-monster.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/issue-arborist.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/gpclean.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/functional-pragmatist.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/example-permissions-warning.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/example-failure-category-filter.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/eslint-monster.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/designer-drift-audit.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/dependabot-go-checker.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/daily-spending-forecast.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/daily-semgrep-scan.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/daily-regulatory.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/daily-fact.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/daily-documentation-diagram.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/daily-doc-updater.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/daily-cli-tools-tester.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/daily-cli-performance.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/daily-cache-strategy-analyzer.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/daily-awf-spec-compiler-surfacing.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/commit-changes-analyzer.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/cloclo.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/chaos-pr-bundle-fuzzer.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/changeset.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/bot-detection.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/avenger.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/auto-triage-issues.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/audit-workflows.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/artifacts-summary.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/agentic-token-trend-audit.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/agent-persona-explorer.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/ace-editor.lock.yml |
Regenerates bare Codex model values. |
.github/workflows/ab-testing-advisor.lock.yml |
Regenerates bare Codex model values. |
Review details
- Files reviewed: 41/41 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
engine: codexworkflows declaringmodel: openai/gpt-5.3-codexfailed daily withmodel_not_supported_errorand produced no safe outputs.codexModelIDonly stripped thecopilot/prefix, so the provider-scoped name was forwarded verbatim to the Codex CLI:Changes
pkg/workflow/codex_engine.go—codexModelIDnow stripsopenai/alongsidecopilot/(case-insensitive), so both providers resolve to the bare name (gpt-5.3-codex). Unrecognized prefixes are left untouched rather than blindly splitting on/.pkg/workflow/codex_engine_test.go— extendedTestCodexModelIDwithopenai/, mixed-caseOpenAI/, and a non-matching-provider case.make recompileupdated 38 workflows; the diff is exclusivelyGH_AW_MODEL_{AGENT,DETECTION,EVALS}_CODEXvalues losing the prefix. Detection and evals phases share the same env builder, so all three phases were affected.Scope note
The issue also lists workflows on
copilot/gpt-5.3-codex(Metrics Collector, PureLock, Daily Evals Feature Report). Those already compiled to a correct bare model name over the Copilot BYOK path, so their failures point at the org/account policy hypothesis rather than a compiler defect — they are intentionally not downgraded togpt-5.2-codexhere, since that cannot be verified from CI and would be a speculative behavior change. Policy verification and a day-over-day failure-rate guard remain open follow-ups.