Repository navigation
Ignore Codex custom-slug fallback-metadata warnings in model_not_supported_error detection - #68427
Conversation
Co-authored-by: pelikhan <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The new guide is missing from the embedded offline fallback list, causing regeneration inconsistency and a failing synchronization test.
1 open finding
What changed in this PR
Prevents Codex fallback-metadata warnings from being misclassified as unsupported-model failures.
Changes:
- Broadens warning filtering for custom model slugs.
- Adds regression coverage for reported log lines.
- Exposes model-misconfiguration debugging guidance.
| File | Description |
|---|---|
actions/setup/js/agent_error_patterns.cjs |
Filters benign Codex metadata warnings. |
actions/setup/js/agent_execution.test.cjs |
Tests custom-slug warning classification. |
.github/skills/agentic-workflows/SKILL.md |
Lists the model debugging guide. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
Request changes
This still has a merge-blocking regression in the skill manifest path: the new debug-model-engine-misconfiguration.md entry was added to .github/skills/agentic-workflows/SKILL.md, but the embedded offline fallback list was not updated, so buildAgenticWorkflowsSkillContent() will diverge whenever the GitHub API path is unavailable.
Blocking theme
The JS classifier change looks directionally correct, but the skill-list edit breaks the offline/embedded source of truth for the same file set. That means local/bootstrap paths can produce different skill content than the checked-in skill document, which is exactly the kind of drift the fallback JSON and its sync test are supposed to prevent. Until the fallback data is regenerated or updated in the same PR, this should not merge.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 18.9 AIC · ⌖ 5.68 AIC · ⊞ 21.3K
Comment /review to run again
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs — the fix for the reported false positive is correct and well-tested, but one of the three added filter clauses appears unnecessary.
📋 Key Themes & Highlights
Key Themes
- Root cause correctly addressed: widening
fallback model metadata→fallback (?:model )?metadatain the existing Codex WARN filter is the actual fix for the reported false positive (verified by reproducing the exact log lines from #68108 against the regex). - One filter clause looks redundant: the new
Model metadata for ... not found. Defaulting to fallback metadatafilter doesn't changedetectErrors()output —MODEL_NOT_SUPPORTED_PATTERNnever matched that line shape to begin with (it needsmodel <slug> not found, notModel metadata for <slug> not found). See inline comment for the verification steps. - Good regression test: the new test uses the exact three log lines from the linked issue, which is a solid repro-based regression guard per
/diagnosing-bugsprinciples.
Positive Highlights
- ✅ Regression test added directly from the bug report's reproduction steps — textbook
/diagnosing-bugsdiscipline. - ✅ Confirmed that real refusals (
unknown model unavailable) still correctly classify asmodel_not_supported_error— no over-broadening of the filter. - ✅ Clear, honest PR description that explicitly scopes out related but out-of-scope issues (404 fallback-to-frontmatter, output-based suppression).
No blocking issues — the extra filter clause doesn't introduce incorrect behavior, just unnecessary complexity. Flagged inline for the author's consideration.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 83.3 AIC · ⌖ 15.6 AIC · ⊞ 10.3K
Comment /matt to run again
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
🎉 This pull request is included in a new release. Release: |

With a custom model slug (e.g. an OpenRouter slug), Codex logs "unknown model / fallback metadata" warnings on every run, including successful ones. The failure classifier matched them as
model_not_supported_error, so every failure issue carried that category regardless of the real cause.detectErrorsalready filtered some of these warnings before runningMODEL_NOT_SUPPORTED_PATTERN, but the filter only matched the exact wording... fallback model metadata.. This PR widens it.agent_error_patterns.cjscodex_models_manager::model_info: Unknown model …filter now matches both "fallback metadata" and "fallback model metadata", with or without a trailing period.Model metadata for `<slug>` not found. Defaulting to fallback metadata…. This line otherwise matched the generic "model … not found" pattern.unknown model unavailablestill producesmodel_not_supported_error.agent_execution.test.cjsNot addressed:
models:frontmatter metadata when the api-proxy/v1/modelsreturns 404.