Repository navigation
Route Grok 4.5 and 4.6 through the Responses API - #60139
Conversation
Co-authored-by: pelikhan <[email protected]>
|
No ADR enforcement needed: PR does not have the implementation label and has ≤100 new lines of code in business logic directories.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality Sentinel skipped because pre-fetch PR data was unavailable: unable to fetch test file diff
|
|
✅ Ponytail Reviewer completed successfully! Lean already. Ship. Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "ab.chatgpt.com"See Network Configuration for more information.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅ Warning Firewall blocked 2 domainsThe following domains were blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "github.com"
- "registry.npmjs.org"See Network Configuration for more information.
|
|
Warning Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs for details.
|
There was a problem hiding this comment.
🟢 Approval recommended
The catalogs remain identical and the regression tests directly cover both corrected models.
Pull request overview
Corrects GitHub Copilot routing for Grok 4.5 and 4.6.
Changes:
- Routes both models through the Responses API.
- Synchronizes both model catalogs.
- Adds regression coverage for catalog-based routing.
File summaries
| File | Description |
|---|---|
pkg/cli/data/models.json |
Updates CLI model routing. |
actions/setup/js/models.json |
Mirrors the routing update. |
actions/setup/js/copilot_harness.test.cjs |
Tests Responses API selection. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Reviewed via Impeccable audit/harden lens (bug_fix change type — small config correctness fix touching model catalogs and test coverage, no UI).
Findings: None blocking. The wire_api fix for grok-4.5/grok-4.6 is applied consistently to both catalog copies (actions/setup/js/models.json and pkg/cli/data/models.json), matches the github-copilot provider section actually consulted by applyCopilotWireAPI, and is covered by a new parametrized regression test (it.each) that loads the real bundled catalog rather than a synthetic fixture. No edge-case, error-state, or security concerns in the changed lines.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
registry.npmjs.org
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · copilot · sonnet50 · 30.3 AIC · ⌖ 13.6 AIC · ⊞ 8.4K
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd and /codebase-design — this is a tight, well-scoped fix with no actionable issues found.
📋 Analysis
What the PR does
Corrects wire_api for grok-4.5/grok-4.6 from completions → responses in both mirrored catalogs (actions/setup/js/models.json, pkg/cli/data/models.json), matching the pattern used by every other current-generation reasoning model in the github-copilot provider section. This directly resolves the 400 ... not accessible via /chat/completions failure described in #60054.
/tdd check
- The new
it.each(["grok-4.5", "grok-4.6"])regression test reads the real bundledmodels.jsonfrom disk rather than a synthetic fixture (makeModelsJson()), which is the right call here: the bug was specifically catalog-data drift, so a test against a mock catalog would not have caught it. This is a good instance of testing against the actual artifact instead of an idealized double. - Test names read as clear specifications ("uses the responses API from the bundled catalog for %s").
- Both mirrors (
actions/setup/js/models.jsonandpkg/cli/data/models.json) were kept in sync, satisfyingmake validate-models-json-sync.
/codebase-design check
- Change is minimal and localized to data + a targeted regression test; no new abstractions introduced.
- Note (non-blocking, out of scope for this PR):
providers.openai.models["github/grok-4.5"]still haswire_api: "completions". If that entry is ever routed through the samegithub-copilotcompletions/responses selection path, it could reintroduce a similar class of bug, but nothing in the current diff or issue indicates that's exercised — just flagging for future awareness, not a blocker here.
Positive highlights
- ✅ Fix directly targeted at the reported root cause (stale catalog data), not a workaround.
- ✅ Regression test uses the real catalog file, closing the exact gap that let this ship unnoticed.
- ✅ Both catalog mirrors updated together, respecting the existing sync invariant.
No blocking issues — approving.
Warning
Firewall blocked 2 domains
The following domains were blocked by the firewall during workflow execution:
github.comregistry.npmjs.org
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
network:
allowed:
- defaults
- "github.com"
- "registry.npmjs.org"See Network Configuration for more information.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 56.5 AIC · ⌖ 14.9 AIC · ⊞ 10.4K
Comment /matt to run again
|
🎉 This pull request is included in a new release. Release: |
GitHub Copilot rejected
grok-4.5andgrok-4.6because the model catalog incorrectly routed them through/chat/completions.Model catalog
wire_apitoresponsesfor both models.Regression coverage