You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copilot CLI 1.0.28 in BYOK mode requires an explicit model and fails immediately with:
BYOK providers require an explicit model. Run `copilot help providers` for configuration details.
This means every recompile of a byok-copilot workflow requires a manual patch to the .lock.yml to set a model fallback (e.g. claude-opus-4.6), which is fragile and easy to forget.
Reproduction
Create a workflow with features: byok-copilot: true
gh aw compile .github/workflows/my-workflow.md
Inspect the generated .lock.yml — COPILOT_MODEL fallback is ''
Run the workflow — Copilot CLI exits immediately with exit code 1
Expected behavior
The compiler should generate a non-empty default model for BYOK workflows, or allow specifying a default model in the .md frontmatter. For example:
# Option A: compiler picks a sensible default for byok-copilotCOPILOT_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || 'claude-sonnet-4.6' }}# Option B: allow model to be specified in frontmatter# smoke-copilot.mdfeatures:
byok-copilot: truemodel: claude-opus-4.6
Workaround
After every gh aw compile, manually patch the lock file:
# Replace empty fallback with explicit model
sed -i "s/GH_AW_MODEL_AGENT_COPILOT || '' /GH_AW_MODEL_AGENT_COPILOT || 'claude-opus-4.6' /" .github/workflows/smoke-copilot.lock.yml
Or set the GH_AW_MODEL_AGENT_COPILOT repository variable (but this affects all copilot workflows, not just BYOK ones).
Impact
This affects both smoke-copilot and smoke-copilot-byok workflows in github/gh-aw-firewall. Every recompile (including gh aw upgrade) resets the fallback to empty, requiring manual intervention.
Activity
fix: set COPILOT_MODEL fallback to claude-sonnet-4.5 for BYOK mode
feat: add AWF JSON/YAML config ingestion with schema validation and C…
docs: document COPILOT_MODEL default in byok-copilot feature