Skip to content

github-copilot: surface & optionally pin context-pricing tier (default vs long_context) #38164

Closed as not planned

Description

@AwesomenessReborn

Feature hasn't been suggested before.

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

Describe the enhancement you want to request

Problem

GitHub Copilot bills GPT-5.x in two context tiers inside a single model: a default tier and a long_context tier that costs ~2× input / 1.5× output, switching automatically once the prompt crosses ~272K tokens. Copilot's own CLI lets you pick the tier per session. opencode shows neither the tier nor any control over it — so for models whose long window is their catalog default (gpt-5.5, gpt-5.6-luna/sol/terra at 1.05M context), a session silently grows past 272K into the 2× tier with no signal.

Evidence

From the live GET /models endpoint, e.g. gpt-5.6-sol.billing.token_prices (credits/1M):

tier applies up to (prompt) input output cache read cache write
default 272K 500 3,000 50 625
long_context 922K 1,000 4,500 100 1,250

(The default row matches Copilot CLI's "Default" pricing panel exactly.) The tier is an in-record billing field auto-selected by prompt size — not a separate model ID and not a request param.

This data already exists upstream — models.dev encodes it as cost.tiers (e.g. gpt-5.6-sol.toml has tier = { type = "context", size = 272_000 }). opencode parses it (packages/opencode/src/provider/provider.ts:1183) but uses it only for the passive cost estimate — never for window sizing or a visible tier signal. So this is an opencode feature gap, not a models.dev data bug.

Current workaround

Hand-set limit.input: 272000 per model in opencode.json (caps the prompt at the tier boundary so compaction keeps you on default). Works, but must be repeated for every model and every new model Copilot ships, and is invisible to anyone unaware the boundary exists.

Proposed (either is useful alone)

  1. Opt-in tier pin — a provider/model setting (e.g. contextTier: "default" | "long") that sets the effective window to the model's cost.tiers boundary. Auto-generates today's manual override.
  2. Tier indicator / warning — show the active tier and warn when a session crosses the boundary into the 2× tier.

Prior art

Activity

  1. changed the title [-][FEATURE]: enhancement, provider:github-copilot[/-] [+]github-copilot: surface & optionally pin context-pricing tier (default vs long_context)[/+] on Jul 21, 2026
  2. github-actions commented on Sep 20, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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