Skip to content

Route Grok 4.5 and 4.6 through the Responses API - #60139

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-grok-4-models
Sep 11, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/fix-grok-4-models

Conversation

Copilot AI commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Copilot rejected grok-4.5 and grok-4.6 because the model catalog incorrectly routed them through /chat/completions.

  • Model catalog

    • Set wire_api to responses for both models.
    • Keep the CLI and setup-action catalogs synchronized.
  • Regression coverage

    • Verify the Copilot harness selects the Responses API for both bundled catalog entries.
"wire_api": "responses"

Copilot AI changed the title [WIP] Fix grok-4.5 and grok-4.6 wire_api miscategorization Route Grok 4.5 and 4.6 through the Responses API Sep 11, 2026
Copilot AI requested a review from pelikhan September 11, 2026 01:39
@pelikhan
pelikhan marked this pull request as ready for review September 11, 2026 01:43
Copilot AI balanced review requested due to automatic review settings September 11, 2026 01:43
@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security scanning failed for Design Decision Gate 🏗️. Review the logs for details.

No ADR enforcement needed: PR does not have the implementation label and has ≤100 new lines of code in business logic directories.

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel skipped because pre-fetch PR data was unavailable: unable to fetch test file diff

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Lean already. Ship.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • ab.chatgpt.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "ab.chatgpt.com"

See Network Configuration for more information.

Generated by Ponytail Reviewer for #60139

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • github.com
  • registry.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

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ PR Code Quality Reviewer failed during code quality review.

Warning

Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs for details.

🔎 Code quality review by PR Code Quality Reviewer

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 bundled models.json from 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.json and pkg/cli/data/models.json) were kept in sync, satisfying make 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 has wire_api: "completions". If that entry is ever routed through the same github-copilot completions/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.com
  • registry.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

@pelikhan
pelikhan merged commit 1787de5 into main Sep 11, 2026
107 of 127 checks passed
@pelikhan
pelikhan deleted the copilot/fix-grok-4-models branch September 11, 2026 02:48
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.89.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

grok-4.5/grok-4.6 wire_api miscategorized as "completions" — 400 not accessible via /chat/completions

3 participants