GeezerVison is showing github.com — feat(core): add Copilot Auto tier variants by OpeOginni · Pull Request #63093 · anomalyco/opencode
Conversation
OpeOginni
commented
Nov 10, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
- Follows feat(core): add GitHub Copilot Auto and a model resolve hook #62997 with the Auto tier variants from feat(core): add Copilot Auto routing and tier variants #57027 and my working plugin.
- Reads account-enabled tiers from
/meta and exposes them as Auto variants. Older deployments without discovery offer efficiency, balance, and intelligence, with availability enforced by /auto.
- Routes again when the tier changes and reports explicit-tier failures instead of silently choosing a fallback. Tier names never become reasoning settings on the chosen model.
- Changing variants asks Copilot to route again on the next request, without waiting for compaction or a new session. Copilot may choose a different model or keep the same one.
- Keeps Auto's default selection untiered. Account-supported tiers are available directly without an experimental flag.
- Accepts both Copilot Auto markers. Some Copilot Free accounts return
auto: true without billing.auto_discount; accounts that still return billing.auto_discount continue to work.
- Reports a routing error if
/auto fails and there's no fallback model, instead of sending a request without the required session token.
How did you verify your code works?
- Focused Copilot and model-resolution tests pass, including repeated runs.
bun run check and core typecheck:tsc pass.
- The full core suite has three shell/process-substitution failures on macOS. All three reproduce on unmodified upstream
dev at 8aa00e805e.
- Embedded SDK smoke check against a local fake Copilot HTTP server verified the untiered default, tier switching, and the chosen model/token pair through streamed completions, without experimental configuration.
- Verified with the CLI and a local mock that the Free-plan payload lists only
github-copilot/auto. The provider test checks that the routed request carries the session token.
- Not tested against a live Copilot account.
Visual
<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" fill="none" font-family="system-ui,sans-serif" font-size="10">
<style>
.tier{opacity:.35;animation:select 6s infinite}.balance{animation-delay:2s}.intelligence{animation-delay:4s}
@keyframes select{0%,28%{opacity:1}34%,94%{opacity:.35}100%{opacity:1}}
@media(prefers-reduced-motion:reduce){.tier{animation:none;opacity:1}}
</style>
<text x="120" y="20" text-anchor="middle" fill="currentColor">Copilot Auto</text>
<g class="tier"><rect x="4" y="32" width="74" height="26" rx="13" stroke="currentColor"/><text x="41" y="49" text-anchor="middle" fill="currentColor">efficiency</text></g>
<g class="tier balance"><rect x="83" y="32" width="66" height="26" rx="13" stroke="currentColor"/><text x="116" y="49" text-anchor="middle" fill="currentColor">balance</text></g>
<g class="tier intelligence"><rect x="154" y="32" width="82" height="26" rx="13" stroke="currentColor"/><text x="195" y="49" text-anchor="middle" fill="currentColor">intelligence</text></g>
</svg>
Screenshots / recordings
Trimmed.mov
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sound overall, with one behaviour I'd fix before merging. I couldn't run it against a real Copilot account. The Copilot test files pass (33 tests), typecheck:tsc is clean for core and schema, and I traced the resolve-hook path: the routed model is a new reference without a variant, so tier names don't leak into reasoning settings, a tier change bypasses the cached route, and explicit-tier failures reach the user as a session error.
Public API: adds the copilot_auto_tiers feature flag (OPENCODE_FLAGS / experimental.copilot_auto_tiers). Backwards compatible. Note that, like the other flags, it is on by default in local and dev builds.
Concerns:
- A session with a saved tier fails every prompt when discovery comes back empty (flag off, any non-404/405
/meta error, or a tier the account lost), with a misleading "not enabled for this account" message. See the inline comment.
- The
multi_turn: { routing_intent: "anchor", turns_since_anchor: 0 } and hydra_rl_multi_turn: {} fields are hardcoded and undocumented. A short note on where they come from (e.g. VS Code's client) would help keep them in sync.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit removes the opt-in flag and treats the default variant as untiered, matching the model resolver. I checked it with the Copilot test files (33 pass) and core typecheck:tsc (clean). Not tested against a live Copilot account.
Public API: unchanged. The copilot_auto_tiers flag added earlier in this pull request has been removed again, so nothing ships.
Removing the flag covers the flag-off case from my earlier thread. A failed /meta request (other than 404/405) still leaves the tier list empty, so the open thread still applies. Also note that without the flag, the tier variants and the extra /meta request reach every connected Copilot account at once, and this hasn't been tested against a live account; maintainers may prefer to keep it behind the flag until it has been.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit keeps a failed /meta request separate from an empty tier list, so the error now says it could not verify tier availability instead of wrongly saying the tier isn't enabled for this account. I checked it with the Copilot test files (33 pass) and core typecheck:tsc (clean). Not tested against a live Copilot account. The public API is unchanged.
The open thread is partly addressed. A session with a saved tier still fails every prompt while /meta is failing, and Auto's variants are hidden for that time. The description says this is intended (explicit-tier failures instead of a silent fallback), so I'll leave it to maintainers to decide whether a short /meta outage should block those sessions or route them without a tier. Nothing new to add.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
OpeOginni
commented
Nov 10, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
The new commit removes the opt-in flag and treats the default variant as untiered, matching the model resolver. I checked it with the Copilot test files (33 pass) and core typecheck:tsc (clean). Not tested against a live Copilot account.
Public API: unchanged. The copilot_auto_tiers flag added earlier in this pull request has been removed again, so nothing ships.
Removing the flag covers the flag-off case from my earlier thread. A failed /meta request (other than 404/405) still leaves the tier list empty, so the open thread still applies. Also note that without the flag, the tier variants and the extra /meta request reach every connected Copilot account at once, and this hasn't been tested against a live account; maintainers may prefer to keep it behind the flag until it has been.
Jnr Jnr, I have tested it with my own github copilot student account, and it works, so we don't need to have it under experimental
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit only merges the latest dev. The tier changes are the same as before and sit cleanly next to the login-endpoint fallback from #63146. The Copilot test files pass (35 tests) and core typecheck:tsc is clean. Still not tested against a live Copilot account. The public API is unchanged. Nothing new to raise.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit only merges the latest dev, which doesn't touch the Copilot files, so the tier changes are the same as at my last review. The Copilot test files pass (35 tests) and core typecheck:tsc is clean. Still not tested against a live Copilot account. The public API is unchanged. Nothing new to raise.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|