Copilot · GitHub

- Add pkg/workflow/data/wire_api_models.json with github-copilot model
  wire_api mappings (responses/completions), derived from pkg/cli/data/models.json
- Add pkg/workflow/copilot_wire_api.go: lookup function + shell case-statement
  generator for runtime resolution before Copilot CLI launches
- Update addCopilotModelEnv: auto-set COPILOT_PROVIDER_WIRE_API=responses in
  the env block when a static model has wire_api=responses in the catalog
- Update buildCopilotAWFPathSetup + buildCopilotDirectCommand: inject the
  wire_api case-statement into PathSetup so the dynamic (org-variable) model
  case is also handled at runtime before copilot starts
- Remove manual COPILOT_PROVIDER_WIRE_API: responses from smoke-copilot-mai.md
  since mai-code-1-flash-picker is now auto-configured
- Update golden files and recompile all 258 workflow lock files
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>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…ted-code-config
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>
…jobs
Root cause: GH_AW_MODELS_JSON_PATH is exported in the path setup script pointing
to /tmp/gh-aw/models.json (the merged activation-artifact catalog). Detection and
evals jobs don't download the activation artifact, so that file doesn't exist.
loadModelsJson() used the override path, got ENOENT, returned null, and
applyCopilotWireAPI silently returned without setting COPILOT_PROVIDER_WIRE_API.
Fix: extract parseModelsJsonFile() helper and have loadModelsJson() fall back to
DEFAULT_MODELS_PATH (bundled models.json deployed alongside the module) when
GH_AW_MODELS_JSON_PATH is set but the file doesn't exist. The merged catalog is a
superset of the bundled one, so wire_api entries are always present in the fallback.
Also log when COPILOT_PROVIDER_WIRE_API is already set in applyCopilotWireAPI to
make future ambient-override issues diagnosable from CI logs.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

@pelikhan

pelikhan marked this pull request as ready for review

July 17, 2026 09:18

Copilot AI review requested due to automatic review settings

July 17, 2026 09:18

Closed

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

@pelikhan

@pelikhan

pelikhan deleted the copilot/update-generated-code-config branch

July 18, 2026 05:44

This was referenced

Jul 18, 2026

Closed

Open

Read the original on github.com ↗