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): Codex credential sync never targets the self-contained _openai door (code#8163) by dezren39 · Pull Request #2250 · developing-today-forks/opencode

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026

Copy link
Copy Markdown

What this does

developing-today/code#8163 (Drew, 2026-11-10): "make _openai that does it all without codex" — a self-contained _openai door for the drewrypope ChatGPT account that holds its own credential and refreshes it in-process, with no Muse / ~/.codex/auth.json / codex-sync anywhere in its path.

The door itself rides the fork's existing instance machinery, by design:

  • Config seats _openai as instanceOf: "openai" (developing-today/code config PR), so OpenAIPlugin runs its body for the _openai integration: the fork's existing ChatGPT OAuth methods (browser + headless/device) are registered for it, its credential is resolved — and refreshed in-process when near expiry — by Integration.connection.resolve, and it serves direct HTTPS to the ChatGPT backend, exactly like openai.alternate already self-renews (🐛 Bug Report: MCP Tool JSON Parsing Errors on OpenCode (GLM-4.7) anomalyco/opencode#8102 audit).
  • Its credential is seeded from the currently-valid drewrypope tokens WITHOUT the externalRefresh stamp that codex-sync writes, so resolve owns its refresh from the first cycle.

This PR

CodexSync.selectTarget previously excluded _openai only as a side effect of its openai / openai.* name filter. That is exactly the kind of implicit exclusion that silently breaks the next time someone widens the door search (which is how the instance-door bug behind #2237 happened in the other direction). This change:

  • Adds CodexSync.selfContainedIntegrationID (_openai) and excludes it explicitly in selectTarget, with the reasoning recorded in the module header.
  • Adds a regression test: a _openai credential whose account matches the Muse auth file is never synced — syncOnce reports no-credential and the row is left byte-identical, with no externalRefresh stamp added.

Tests

  • packages/core/test/credential-codex-sync.test.ts: 14/14 pass (13 existing + 1 new). Note the new test also passes on the unpatched source today — it locks in the exclusion as explicit policy + coverage against the filter widening, rather than fixing a live mis-targeting.

Refs developing-today/code#8163, anomalyco#7991, anomalyco#5705, anomalyco#8102.

Sorry, something went wrong.

Uh oh!

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

All reactions
@dezren39
fix(core): Codex credential sync never targets the self-contained _op…
c3b935d
…enai door (code#8163)
@dezren39
dezren39 merged commit 6cc10da into main Nov 10, 2026
@dezren39
dezren39 deleted the feat/8163-openai-self-contained branch November 10, 2026 14:51
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
All reactions

Sorry, something went wrong.

Uh oh!

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

This was referenced Nov 10, 2026
chore(nix): bump opencode pin to 6cc10dae — CodexSync never targets _openai (#8163) developing-today/code#8167
Merged
_openai provider: self-contained main OpenAI door that does it all without Codex (Drew top priority) developing-today/code#8163
Closed
fix(core): CodexSync never targets any _openai door (code#8163) #2262
Merged
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
This was referenced Nov 27, 2026
Queue worker cannot push to this repo: fleet bot has permission none (task 25787 fix for #2873 stranded) #2880
Closed
fix(core): start session-cookie quota cache TTL when fetch settles #2873
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

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

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