Skip to content

[FEATURE]: Independent Copilot context-window selection and AI-credit usage #53521

Open

Description

@anxkhn

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

This is a renewed request for #38164, which the inactivity bot closed on September 20 and explicitly invited users to reopen as a new issue if still relevant. I have left the checkbox unchecked because the feature was suggested before.

Describe the enhancement you want to request

Copilot CLI offers Default and Long context choices. OpenCode already fetches the authenticated Copilot /models endpoint, but uses the full input limit and does not expose the default context boundary or long-context prices. Sessions can grow into a higher-priced tier without a visible choice.

Proposal for design review: keep one base model in the model picker. Add an independent Default/Long context selector in the command palette, alongside the existing reasoning-variant selector. Changing reasoning should preserve the chosen context window. Use billing.token_prices.default and long_context for account-specific boundaries and cache rates. Display Copilot usage in GitHub AI credits, where one credit is $0.01. Preserve existing OAuth and configured Enterprise host routing.

Context choices change the local compaction budget. GitHub prices actual prompt size; these are not separate upstream model IDs or a new inference request parameter.

Related: #38164 and #52089. This is separate from reported-charge accounting in #52556 and authentication changes in #20758. A draft implementation will request maintainer design feedback before acceptance.

System details

  • OpenCode: 1.18.34, installed CLI
  • Copilot CLI: 1.0.92-3
  • OS: macOS 27.0.1, Apple Silicon arm64
  • Environment: terminal CLI, zsh, GitHub Copilot OAuth
  • Development base: upstream dev, commit 3f393d78b

Activity

  1. changed the title [-]Copilot context-tier selection and pricing in the model picker[/-] [+][FEATURE]: Copilot Default and Long context choices with pricing[/+] on Oct 6, 2026
  2. anxkhn commented on Oct 6, 2026

    @anxkhn
    Author

    Updated the feature title, template sections, and system details. #38164 is the same request and was closed by the inactivity bot, which invited a new issue if still relevant. I left the uniqueness checkbox unchecked rather than claim there was no prior request. Could a maintainer accept this as a renewed request, or advise where the draft implementation should be discussed?

  3. github-actions commented on Oct 6, 2026

    @github-actions
    Contributor

    Thanks for updating the issue with the required feature details and system information!

  4. github-actions commented on Oct 6, 2026

    @github-actions
    Contributor

    Thanks for updating the issue with the required details and system information!

  5. changed the title [-][FEATURE]: Copilot Default and Long context choices with pricing[/-] [+][FEATURE]: Independent Copilot context-window selection and AI-credit usage[/+] on Oct 6, 2026
  6. opencodejr commented on Oct 27, 2026

    @opencodejr

    Thanks for bringing this back, @anxkhn. You're asking for a Default/Long context-window choice for GitHub Copilot models, separate from the reasoning variant, using the account-specific default and long_context prices from Copilot's /models and showing usage in GitHub AI credits. That way sessions don't drift into the long-context price tier without you noticing.

    I checked v2 (dev): packages/core/src/github-copilot/models.ts currently reads only billing.token_prices.default, and the context limit is set to the full max_context_window_tokens. So the gap you describe is there too. Since the draft implementation is going to ask for design feedback, it's worth basing it on that file.

    Related:

    This is now tracked as a feature request, and maintainers will consider it.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions