Skip to content

fix(github-copilot): keep catalog reasoning variants#30152

Closed
he-yufeng wants to merge 1 commit into
anomalyco:devfrom
he-yufeng:fix/copilot-preserve-catalog-variants
Closed

fix(github-copilot): keep catalog reasoning variants#30152
he-yufeng wants to merge 1 commit into
anomalyco:devfrom
he-yufeng:fix/copilot-preserve-catalog-variants

Conversation

@he-yufeng
Copy link
Copy Markdown

@he-yufeng he-yufeng commented Jun 1, 2026

Issue for this PR

Fixes #30092

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The GitHub Copilot /models response can omit still-supported catalog reasoning variants such as xhigh. The merge logic now keeps catalog-defined reasoning variants for non-message API models while still letting the live response refresh variants it does return. Message-API model behavior is unchanged.

How did you verify your code works?

  • bun run --cwd packages/opencode test test/plugin/github-copilot-models.test.ts
  • bun run lint -- packages/opencode/src/plugin/github-copilot/models.ts packages/opencode/test/plugin/github-copilot-models.test.ts
  • bun run --cwd packages/opencode typecheck
  • bunx prettier --check packages/opencode/src/plugin/github-copilot/models.ts packages/opencode/test/plugin/github-copilot-models.test.ts
  • git diff --check

Note: oxlint reports existing no-unsafe-type-assertion warnings in this test file; it exits successfully and there are no lint errors.

Screenshots / recordings

N/A; this is provider catalog merge behavior.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 1, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jun 1, 2026
@github-actions github-actions Bot closed this Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: fix(github-copilot): xhigh reasoning variant missing from GPT-5.x models

1 participant