Skip to content

feat(opencode): openai.main instance; opencode-go-plans to round-robin - #5085

Merged
dezren39 merged 1 commit into
mainfrom
fleet/openai-main-instance
Nov 3, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fleet/openai-main-instance

Conversation

@dezren39

@dezren39 dezren39 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Drew 2026-11-03, two selection/identity cleanups:

openai.main — the main ChatGPT account gets its own instance id (instanceOf openai), parallel to openai.alternate. Bare openai is now only the parent + sync-models catalog; no account rides it directly.

  • openai-plan members: [openai.alternate, openai.main], still ordered — the accounts are not peers: alternate (popesdrew, student) spends first, main (drewrypope) is the fleet's final reserve and serves only when alternate fails or is demoted.
  • The main credential was rebound under the openai.main integration in the laptop auth store ahead of this change (new row verified active); the bare-openai credential row is removed once this lands.

opencode-go-plans → round-robin — the two Go accounts ARE peers (same plan), so the weighted 3/2 burn-by-expiry tilt is dropped for an equal split. Quota/health demotion still shifts traffic off a walled member.

Aggregator pool rename (openai → openai.main hub series) follows in a separate PR.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…encode-go-plans to round-robin

Drew 2026-11-03:
- The main ChatGPT account gets its own instance id, openai.main
  (instanceOf openai), parallel to openai.alternate. The bare openai
  provider is now only the instanceOf parent + sync-models catalog -
  no account rides it directly. openai-plan members become
  [openai.alternate, openai.main], still ordered: alternate (popesdrew,
  student) spends first, main (drewrypope) stays the reserve. The main
  credential was rebound under the openai.main integration in the
  laptop auth store ahead of this change; the bare-openai credential
  row is removed once this lands.
- opencode-go-plans selection weighted 3/2 -> round-robin: the two Go
  accounts are peers on the same plan and split evenly; the
  burn-by-expiry tilt is dropped.
@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 19:16
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 10 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 31e3c188-6042-4e0c-ae54-1079c205ed83
Commits

Reviewing files that changed from the base of the PR and between 8fd1fe5 and 5c3aedb.

Files selected for processing: 1
  • .opencode/opencode.jsonc
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T19:21:33.183087Z 5c3aedb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit a0b54cf into main Nov 3, 2026
1 check passed
@dezren39
dezren39 deleted the fleet/openai-main-instance branch November 3, 2026 19:16

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5c3aedbf73

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .opencode/opencode.jsonc
Comment on lines +456 to +459
"openai.main": {
"instanceOf": "openai",
"name": "OpenAI Main (drewrypope)"
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the credential watchdog for the main-account rename

When the bare openai credential row is removed as described in this commit, the enabled hourly credential watchdog will report openai: no credential rows found even with a healthy openai.main credential. nixos/services/openai-cred-watchdog/openai-cred-watchdog.py:24 still queries only openai and openai.alternate, and its main-account banned-method check at line 56 also matches only openai. Update both alongside this rename so the watchdog checks the account actually serving the reserve route instead of permanently failing against the retired credential identity.

Useful? React with 👍 / 👎.

dezren39 added a commit that referenced this pull request Nov 3, 2026
…5089)

Follows the config rename (PR #5085): pool ids are the OpenCode
config provider ids (POOL NAMING note, 2026-11-03), and the config
now defines openai.main for the main account. The codex gatherer
door now files under openai.main, POOL_SPECS carries the new id,
and usage snapshot records write the new serviceId. The pre-rename
series stays in the store under openai, unrewritten, per the naming
convention. Tests updated where they bound the old pool id;
synthetic overlay fixtures keep their arbitrary ids.

Co-authored-by: developing-today[bot] <5454422+developing-today[bot]@users.noreply.github.com>
@dezren39
dezren39 restored the fleet/openai-main-instance branch November 8, 2026 04:06
@dezren39
dezren39 deleted the fleet/openai-main-instance branch November 8, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant