Skip to content

fix: replace deprecated gpt-5-mini with gpt-5.4-mini in daily-model-resolution workflow#41625

Merged
pelikhan merged 2 commits into
mainfrom
copilot/aw-fix-daily-sub-agent-audit
Jun 26, 2026
Merged

fix: replace deprecated gpt-5-mini with gpt-5.4-mini in daily-model-resolution workflow#41625
pelikhan merged 2 commits into
mainfrom
copilot/aw-fix-daily-sub-agent-audit

Conversation

Copilot AI commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

The codex engine internally resolves gpt-5-mini to gpt-5-codex-mini-alpha-2025-11-07, which returns HTTP 404. This caused the Daily Sub-Agent Model Resolution Audit to exhaust all 4 retry attempts and fail on every scheduled run.

Changes

  • daily-model-resolution.md — replace gpt-5-mini with gpt-5.4-mini in both the top-level engine config and the inline run-analyzer sub-agent definition
  • daily-model-resolution.lock.yml — recompiled from updated source
  • pkg/workflow/prompts_test.go — update TestDailyModelResolutionUsesCodexCompatibleSubAgentModel guard to assert gpt-5.4-mini
 engine:
   id: codex
-  model: gpt-5-mini
+  model: gpt-5.4-mini

gpt-5.4-mini is already in active use with the codex engine (e.g. smoke-call-workflow.md).

…t-5.4-mini

The codex engine was mapping gpt-5-mini to gpt-5-codex-mini-alpha-2025-11-07
which no longer exists (404 Not Found), causing all retry attempts to fail.

Replace gpt-5-mini with gpt-5.4-mini (confirmed working in other codex workflows
like smoke-call-workflow.md) in both the main engine config and the run-analyzer
sub-agent definition. Also update the guard test to expect the new model name.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix daily sub-agent model resolution audit failure fix: replace deprecated gpt-5-mini with gpt-5.4-mini in daily-model-resolution workflow Jun 26, 2026
Copilot AI requested a review from pelikhan June 26, 2026 07:12
@pelikhan pelikhan marked this pull request as ready for review June 26, 2026 11:24
Copilot AI review requested due to automatic review settings June 26, 2026 11:24
@pelikhan pelikhan merged commit 2af7e87 into main Jun 26, 2026
@pelikhan pelikhan deleted the copilot/aw-fix-daily-sub-agent-audit branch June 26, 2026 11:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Daily Sub-Agent Model Resolution Audit workflow to avoid a deprecated gpt-5-mini codex resolution that was producing HTTP 404s, by switching to a codex-compatible gpt-5.4-mini model and aligning compiled artifacts/tests accordingly.

Changes:

  • Switch the workflow’s codex engine model and run-analyzer sub-agent model from gpt-5-mini to gpt-5.4-mini.
  • Recompile the generated .lock.yml workflow output to reflect the updated model.
  • Update the Go guard test to assert gpt-5.4-mini for the run-analyzer sub-agent.
Show a summary per file
File Description
.github/workflows/daily-model-resolution.md Updates codex engine + run-analyzer sub-agent to use gpt-5.4-mini.
.github/workflows/daily-model-resolution.lock.yml Recompiled generated workflow reflecting the new model in metadata/env.
pkg/workflow/prompts_test.go Updates the workflow-content assertion to expect gpt-5.4-mini.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment on lines 459 to +466
workflow := string(content)
agentStart := strings.Index(workflow, "## agent: `run-analyzer`")
if agentStart == -1 {
t.Fatal("Expected daily-model-resolution workflow to define the run-analyzer sub-agent")
}
agentBlock := workflow[agentStart:]
if !strings.Contains(agentBlock, "\nmodel: gpt-5-mini\n") {
t.Fatal("Expected daily-model-resolution run-analyzer sub-agent to use explicit codex-compatible model gpt-5-mini")
if !strings.Contains(agentBlock, "\nmodel: gpt-5.4-mini\n") {
t.Fatal("Expected daily-model-resolution run-analyzer sub-agent to use explicit codex-compatible model gpt-5.4-mini")
@github-actions github-actions Bot mentioned this pull request Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants