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): separate ChatGPT account registrations by iCodePoet · Pull Request #63517 · anomalyco/opencode

Conversation

@iCodePoet

@iCodePoet iCodePoet commented Nov 12, 2026

Copy link
Copy Markdown

Issue for this PR

Fixes #56298

Type of change

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

What does this PR do?

Add account now registers independently instead of reusing the active ChatGPT account’s user/workspace-bound client ID. Explicit reauthorization reuses only the selected connection’s ID, including inactive accounts, through both TUI and web/desktop flows.

Builds on the registration/reauthorization split proposed in #56302, with current API conventions and app account targeting. No feature flag.

How did you verify your code works?

  • Core: 7,434 passed, 26 skipped. Targeted core, TUI, app login and browser account-flow regressions passed 10 runs each; mutation checks catch missing isolation/forwarding.
  • Server, plugin, protocol and client tests; bun run check; bun run typecheck:tsc; repeatable generation.
  • Settings E2E: 67/74 passed; the same seven unrelated cases fail on the baseline app. Standalone E2E typecheck also matches baseline diagnostics.
  • Live two-account OpenAI sign-in remains untested. Verify by connecting A, adding B, then reauthorizing A while B is active.

Screenshots / recordings

Routing only; no visual changes.

Reviews: code/API, security, privacy and tests. Visual review skipped; no visual changes. History secret scan passed.

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
iCodePoet added 2 commits November 12, 2026 20:04
@iCodePoet
fix(core): separate ChatGPT account registrations
d7e16e5
@iCodePoet
test(auth): cover selected OAuth account targets
e41b7a9
@iCodePoet
iCodePoet requested review from Brendonovich and Hona as code owners November 12, 2026 11:06
@iCodePoet iCodePoet mentioned this pull request Nov 12, 2026
openai: adding a second ChatGPT account fails with workspace scope denied #56298
Closed
@opencodejr opencodejr Bot closed this Nov 12, 2026
@opencodejr

opencodejr Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Thanks for working on this and for the extra web/desktop coverage!

I think this duplicates #56302. That PR is still open, fixes the same issue (#56298) and makes the same core change: "Add account" starts its own registration, and an optional credentialID lets reauthorization keep the selected account's client ID. It passes this through protocol, client, plugin, server and TUI, the same way as here.

The main thing this PR adds is the web/desktop (packages/app) account targeting. It would help most on #56302: mention the app flow there, suggest your controller.ts / dialog-machine.ts changes, or test it live with two ChatGPT accounts in different workspaces. That live check is still the open item there.

All reactions

Sorry, something went wrong.

Uh oh!

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

KomeijiReimu added a commit to KomeijiReimu/opencode that referenced this pull request Nov 14, 2026
@KomeijiReimu @iCodePoet
fix(app): target selected OAuth accounts
235b6ca
Adapt web/desktop account targeting from anomalyco#63517 to this PR's credentialID API.

Co-authored-by: iCodePoet <[email protected]>
@KomeijiReimu KomeijiReimu mentioned this pull request Nov 21, 2026
fix(core): isolate ChatGPT account registrations #56302
Closed
3 of 6 tasks
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.

openai: adding a second ChatGPT account fails with workspace scope denied

Uh oh!

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

1 participant

@iCodePoet
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.