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 — feat(core): add separate ChatGPT token-sharing OAuth method by rekram1-node · Pull Request #52147 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Sep 29, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Summary

  • Preserve the existing Codex browser/headless methods and add chatgpt-token-sharing as a separate OAuth method under the same OpenAI provider.
  • Reuse the issued OAuth client ID, migrate identifiable token-sharing credentials in place, and cache account-specific model snapshots in plugin KV.
  • Complete sign-in without waiting for /v1/models; use catalog models until an asynchronous refresh completes, then check every 15 minutes. Preserve the model context windows as reported.
  • Add the jose dependency in packages/core/package.json and bun.lock, plus focused plugin and provider-error coverage.

Notes

  • The app UI is split into feat(app): show ChatGPT token-sharing guidance #52160. SQLite file permissions and token-sharing error messages are already on v2 via other PRs, so this branch is merged with current v2 and does not duplicate them.
  • The fallback allowlist contains ten IDs, but only matching models in the OpenAI catalog are copied. The inspected local catalog had five matching base models and no -fast entries.
  • Live sign-in and inference have not been verified.

Verification

  • bun test test/plugin/provider-chatgpt.test.ts test/plugin/provider-openai.test.ts test/session-error.test.ts test/database.test.ts (from packages/core)
  • bun run check

Sorry, something went wrong.

Uh oh!

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

All reactions
rekram1-node added 7 commits September 29, 2026 13:53
@rekram1-node
feat: integrate ChatGPT token sharing
edc8f9c
Register user-owned ChatGPT OAuth clients, verify ID tokens, and secure stored credentials.
Use account-visible Responses models with stateless HTTP streaming and refreshed model discovery.
Preserve provider diagnostics, tailor retry behavior, and show ChatGPT plan and usage guidance.
@rekram1-node
feat(app): confirm ChatGPT plan on first connection
f3c854a
@rekram1-node
fix(core): remove temporary ChatGPT header
aeccc1c
@rekram1-node
docs(core): defer ChatGPT reconsent flag
2db1eca
@rekram1-node
fix(core): use IPv4 loopback for ChatGPT OAuth
74191d9
@rekram1-node
feat(core): persist ChatGPT agent host ID
6f7dcc4
@rekram1-node
refactor(core): clarify ChatGPT host ID storage key
86bff17
@rekram1-node
rekram1-node requested review from Brendonovich and Hona as code owners September 29, 2026 18:54
rekram1-node added 2 commits September 29, 2026 14:40
@rekram1-node
feat(core): separate ChatGPT token-sharing OAuth from Codex
208f91d
@rekram1-node
chore(app): separate ChatGPT UI from core PR
a786d45
@rekram1-node rekram1-node mentioned this pull request Sep 29, 2026
feat(app): show ChatGPT token-sharing guidance #52160
Merged
@rekram1-node rekram1-node changed the title feat(core): integrate ChatGPT token sharing feat(core): add separate ChatGPT token-sharing OAuth method Sep 29, 2026
@rekram1-node
chore(core): merge current v2 updates
6e97a5f
@rekram1-node
rekram1-node merged commit 4d90907 into v2 Sep 29, 2026
9 of 10 checks passed

Uh oh!

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

@rekram1-node
rekram1-node deleted the chatgpt-sharing-fork branch September 29, 2026 19:48
@SDSDFFG-rgb SDSDFFG-rgb mentioned this pull request Sep 30, 2026
desktop: gpt-6.1-sol missing from ChatGPT OAuth models, shared session model forcibly switched #52375
Closed
@Wh1isper Wh1isper mentioned this pull request Sep 30, 2026
Support ChatGPT plan usage through Sign in with ChatGPT pydantic/pydantic-ai#9516
Closed
@yturkkan yturkkan mentioned this pull request Oct 14, 2026
v2: OpenAI OAuth credential saved but provider never materializes (ProviderNotFoundError) #55516
Closed
@opencode-agent opencode-agent Bot mentioned this pull request Oct 17, 2026
openai: adding a second ChatGPT account fails with workspace scope denied #56298
Closed
@pascalandr pascalandr mentioned this pull request Oct 18, 2026
fix(usage): explain the ChatGPT token-sharing quota limitation NeuralNomadsAI/CodeNomad#999
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Hona Hona Awaiting requested review from Hona
@Brendonovich Brendonovich Awaiting requested review from Brendonovich

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.

1 participant

@rekram1-node
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.