Skip to content

Add saved account switching#596

Open
Hocopor wants to merge 1 commit intoDimillian:mainfrom
Hocopor:codex/account-switching
Open

Add saved account switching#596
Hocopor wants to merge 1 commit intoDimillian:mainfrom
Hocopor:codex/account-switching

Conversation

@Hocopor
Copy link
Copy Markdown

@Hocopor Hocopor commented Apr 10, 2026

What changed

  • added support for saving multiple login profiles
  • added quick switching between saved accounts from the sidebar account menu
  • kept the existing re-login flow via Switch account
  • show saved account usage/limits in the profile list

Notes

  • for Windows builds, dictation is temporarily disabled to unblock packaging

Add support for saving multiple login profiles and switching between them from the sidebar account menu.

Temporarily disable Windows dictation in builds to unblock release packaging.

Co-authored-by: Codex <noreply@openai.com>
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: 70b819f680

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

setSavedProfilesLoading(false);
return;
}
void reloadSavedProfiles(activeWorkspaceId);
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 Skip saved-profile loading in remote backend mode

This effect always calls listSavedAuthProfiles whenever a workspace is active, but the backend command explicitly returns an error in remote mode (saved_auth_profiles_list returns “not supported in remote mode”). In remote sessions, that means opening/switching workspaces now triggers avoidable error toasts even though account switching itself is otherwise supported, so remote users get a persistent noisy failure introduced by this feature.

Useful? React with 👍 / 👎.

Comment on lines +207 to +208
const response = await listSavedAuthProfiles(workspaceId);
setSavedProfiles(normalizeSavedProfiles(response));
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 Ignore stale saved-profile responses after workspace switch

reloadSavedProfiles writes results directly to shared state without checking that the response still matches the currently active workspace. If a user switches workspaces quickly, an older request can resolve last and overwrite the newer workspace’s profiles, leaving the menu showing the wrong accounts (and potentially attempting activation with IDs from a different workspace) until another refresh happens.

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