Skip to content

Stabilize Daily Agent of the Day sub-agent model routing for Copilot chat endpoint compatibility - #48504

Closed
pelikhan with Copilot wants to merge 8 commits into
mainfrom
copilot/aw-fix-daily-agent-blog-writer
Closed

Stabilize Daily Agent of the Day sub-agent model routing for Copilot chat endpoint compatibility#48504
pelikhan with Copilot wants to merge 8 commits into
mainfrom
copilot/aw-fix-daily-agent-blog-writer

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

The Daily Agent of the Day Blog Writer workflow was intermittently failing when sub-agent calls resolved to mai-code-1-flash-picker, which is not accessible via the /chat/completions path used in this execution flow. This change constrains sub-agent model selection to explicit chat-compatible models to prevent that failure mode.

  • Model pinning for inline sub-agents

    • Updated inline agent model declarations in .github/workflows/daily-agent-of-the-day-blog-writer.md:
      • persona-generator: mai-codeclaude-haiku-4.5
      • story-writer: largeclaude-sonnet-4.6
      • seo-optimizer: mai-codeclaude-haiku-4.5
  • Prompt-level execution guardrail

    • Added explicit instruction in the workflow process section to pass compatible models on task sub-agent invocations, so runtime calls don’t drift to incompatible defaults.
  • Compiled workflow sync

    • Regenerated workflow lock outputs to keep markdown source and compiled workflow artifacts aligned with the updated model configuration.
#### agent: `persona-generator`
---
model: claude-haiku-4.5
---

#### agent: `story-writer`
---
model: claude-sonnet-4.6
---

#### agent: `seo-optimizer`
---
model: claude-haiku-4.5
---

Copilot AI linked an issue Jul 28, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits July 28, 2026 03:25
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix daily agent of the day blog writer failure Stabilize Daily Agent of the Day sub-agent model routing for Copilot chat endpoint compatibility Jul 28, 2026
Copilot AI requested a review from pelikhan July 28, 2026 03:39
@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot fix models.json to use the correct endpoint for this model

Copilot AI and others added 3 commits July 28, 2026 03:48
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

@copilot fix models.json to use the correct endpoint for this model

Implemented in commit 7055cf8.

  • Added mai-code to both model catalogs with wire_api: "responses" so it routes to the correct endpoint.
  • Kept catalog mirrors synchronized:
    • /home/runner/work/gh-aw/gh-aw/actions/setup/js/models.json
    • /home/runner/work/gh-aw/gh-aw/pkg/cli/data/models.json
  • Added a targeted test in /home/runner/work/gh-aw/gh-aw/actions/setup/js/copilot_harness.test.cjs to assert COPILOT_MODEL=mai-code auto-configures COPILOT_PROVIDER_WIRE_API=responses.

@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot Mai-code is an alias

Copilot AI and others added 2 commits July 28, 2026 04:03
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Mai-code is an alias

Addressed in 4c8b08b: removed mai-code as a standalone entry from both models catalogs and kept only mai-code-1-flash-picker for wire API routing/tests.

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.

[aw] Daily Agent of the Day Blog Writer failed

2 participants