Skip to content

Add Codex system account reconciliation#616

Merged
ratulsarna merged 18 commits intocodex/rat-185-multi-account-foundationfrom
codex/rat-187
Mar 29, 2026
Merged

Add Codex system account reconciliation#616
ratulsarna merged 18 commits intocodex/rat-185-multi-account-foundationfrom
codex/rat-187

Conversation

@ratulsarna
Copy link
Copy Markdown
Collaborator

@ratulsarna ratulsarna commented Mar 28, 2026

Summary

It observes the live system Codex account read-only, reconciles it with CodexBar-added accounts, and exposes a visible account projection with a truthful active/live split.

It also adds regression coverage to keep remote routing and OpenAI web behavior pinned to the active account.

@ratulsarna
Copy link
Copy Markdown
Collaborator Author

@codex review

@ratulsarna ratulsarna changed the title RAT-187: add Codex system account reconciliation Add Codex system account reconciliation Mar 28, 2026
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

ℹ️ 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".

@ratulsarna
Copy link
Copy Markdown
Collaborator Author

@codex review

Copy link
Copy Markdown

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

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: 056dd22160

ℹ️ 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".

@ratulsarna
Copy link
Copy Markdown
Collaborator Author

@codex review

Copy link
Copy Markdown

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

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: 1efe895e3a

ℹ️ 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".

@ratulsarna ratulsarna marked this pull request as ready for review March 29, 2026 19:03
@ratulsarna ratulsarna merged commit 62713e8 into codex/rat-185-multi-account-foundation Mar 29, 2026
4 checks passed
Copy link
Copy Markdown

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

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: a9ab808104

ℹ️ 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 on lines +46 to +48
} else {
snapshot.liveSystemAccount != nil ? .liveSystem : .managedAccount(id: id)
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Choose fallback account when selected managed ID disappears

When the persisted source is a managed account that has been removed and no live system account is present, this branch keeps returning the stale .managedAccount(id) instead of resolving to one of the remaining stored accounts. That leaves codexResolvedActiveSource permanently pointed at a non-existent target, so Codex/OpenAI-web refreshes remain fail-closed as managedAccountTargetUnavailable even though a valid managed account still exists; if only one account remains, the settings UI shows no active picker, so the user has no in-app way to recover selection.

Useful? React with 👍 / 👎.

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