GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(core): keep Astra models at 272k context with ChatGPT sign-in by rekram1-node · Pull Request #64725 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Nov 18, 2026

Copy link
Copy Markdown
Member

Issue for this PR

Closes #

Type of change

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

What does this PR do?

With ChatGPT sign-in, OpenCode caps each OpenAI model at the window OpenAI's own client uses for subscription plans: 272k, or 500k from gpt-6.1 on. Astra is the exception there: gpt-6.2-astra stays at 272k, but the version rule gave it 500k, so Astra sessions ran to twice the size and used more of the plan.

Astra models now keep 272k in every version, including future ones:

model before after
gpt-6.2-astra 500k 272k
gpt-7-astra (future) 500k 272k
gpt-6.2-sol, gpt-7 500k 500k

API-key users keep the catalog limits, as before.

How did you verify your code works?

  • Added gpt-6.2-astra and a future gpt-7-astra to the cap test, for all three ChatGPT sign-in methods.
  • bun test test/plugin/provider-openai-context-caps.test.ts and bun typecheck in packages/core pass.

Screenshots / recordings

N/A

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.

All reactions
@rekram1-node
fix(core): keep Astra models at 272k context with ChatGPT sign-in
6849f9a
@rekram1-node
rekram1-node enabled auto-merge (squash) November 18, 2026 18:03
opencodejr[bot]
opencodejr Bot reviewed Nov 18, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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 fix looks good to me. I ran the updated cap test against the base branch: gpt-6.2-astra and gpt-7-astra got 500k input there, for all three ChatGPT sign-in methods. With this change they get 272k and the test passes. The -fast variants contain -astra too, so they get the same cap. typecheck:tsc passes in packages/core. The typecheck script (bun check) fails with "Script not found" on the base branch as well, so that failure isn't from this change.

Public API is unchanged; this only changes the internal limits the context-caps plugin sets.

No concerns.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
rekram1-node merged commit ef9aab2 into dev Nov 18, 2026
15 of 16 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the chatgpt-astra-cap branch November 18, 2026 18:16
@KomeijiReimu

KomeijiReimu commented Nov 23, 2026

Copy link
Copy Markdown

So we need -opencode.provider.openai-context-caps to use larger context?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
@rekram1-node

rekram1-node commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

yep default behavior is to save ur sub and make sure it's used at the same rate it would be in codex

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@rekram1-node @KomeijiReimu
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.