From b78551b35341e47f0cdda3c2bc535a6cf7ad093e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 20 Apr 2026 13:30:42 +0000 Subject: [PATCH] docs: document COPILOT_MODEL default in byok-copilot feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The byok-copilot flag bundles four compiler behaviors, not three. The fourth — setting COPILOT_MODEL with a non-empty claude-sonnet-4.6 fallback — was added to fix bug #26565 but never reflected in the user-facing reference docs. Co-Authored-By: Claude Sonnet 4.6 --- docs/src/content/docs/reference/frontmatter.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/src/content/docs/reference/frontmatter.md b/docs/src/content/docs/reference/frontmatter.md index 62749f2920a..bbe1514af53 100644 --- a/docs/src/content/docs/reference/frontmatter.md +++ b/docs/src/content/docs/reference/frontmatter.md @@ -440,7 +440,12 @@ Debug workflow using script mode for custom actions. #### Copilot BYOK Mode (`features.byok-copilot`) -Enables Copilot offline Bring Your Own Key (BYOK) mode with a single flag, bundling three required behaviors: injecting a dummy `COPILOT_API_KEY` to trigger the AWF BYOK runtime path, implicitly enabling `cli-proxy`, and forcing the Copilot CLI to install at `latest` (ignoring any pinned `engine.version`). +Enables Copilot offline Bring Your Own Key (BYOK) mode with a single flag, bundling four required behaviors: + +1. Injecting a dummy `COPILOT_API_KEY` to trigger the AWF BYOK runtime path. +2. Implicitly enabling `cli-proxy`. +3. Forcing the Copilot CLI to install at `latest` (ignoring any pinned `engine.version`). +4. Setting `COPILOT_MODEL` to `${{ vars.GH_AW_MODEL_AGENT_COPILOT || 'claude-sonnet-4.6' }}` — Copilot BYOK providers require a non-empty model, so the compiler provides `claude-sonnet-4.6` as the fallback when `GH_AW_MODEL_AGENT_COPILOT` is not set. ```yaml wrap engine: copilot @@ -448,7 +453,9 @@ features: byok-copilot: true ``` -Without this flag, BYOK mode requires manual composition of all three behaviors. With `byok-copilot: true`, the compiler handles the wiring automatically. +Without this flag, BYOK mode requires manual composition of all four behaviors. With `byok-copilot: true`, the compiler handles the wiring automatically. + +To use a different model, set the `GH_AW_MODEL_AGENT_COPILOT` repository variable. The compiled workflow uses `${{ vars.GH_AW_MODEL_AGENT_COPILOT || 'claude-sonnet-4.6' }}` for `COPILOT_MODEL`. > [!IMPORTANT] > `byok-copilot` is a gh-aw convenience extension point, not an enforcement boundary. gh-aw does not enforce Copilot BYOK usage.