codex - ✅(Solved) Fix Feature request: support multiple named accounts per app/connector [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20500Fetched 2026-05-01 05:42:28
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Please support connecting multiple separately authorized accounts for the same app/connector, with explicit account selection and hard privacy boundaries.

This is different from switching the active Codex/OpenAI account or profile. One Codex session may need to work with multiple accounts for the same external service: personal Gmail and work Gmail, multiple Slack workspaces, a client Google Drive and a company Google Drive, or personal and work Google Calendars.

Today, the app/connector model appears oriented around one active connection per provider. That creates two problems:

  • users have to disconnect/reconnect or switch context manually, which is slow and error-prone;
  • Codex/ChatGPT can become unsafe to use for connector workflows if it is unclear which mailbox, workspace, Drive, calendar, or tenant a tool call will read from or write to.

Error Message

  • users have to disconnect/reconnect or switch context manually, which is slow and error-prone;

Root Cause

This is a normal workflow for many users, not an edge case:

  • Search a personal Gmail account for a receipt, then a work Gmail account for a customer thread.
  • Use an internal Slack workspace and one or more client Slack workspaces.
  • Compare availability across personal and work Google Calendars.
  • Search a company Google Drive without also exposing personal Drive content.
  • Work with more than two accounts when consulting, freelancing, or managing multiple businesses.

The current documentation reinforces the single-selected-account limitation in a few places:

  • Slack is documented as one workspace at a time, requiring disconnect/reconnect to switch workspaces.
  • Google app access is tied to the Google account chosen during setup.
  • Google Drive setup warns users with multiple Google accounts to choose the work account and uses domain matching to prevent accidentally connecting the wrong account.

Those are useful safety controls, but the missing product capability is first-class support for multiple named connections at the same time.

PR fix notes

PR #20265: Refresh remote plugin cache on auth changes

Description (problem / solution / changelog)

Summary

  • Refresh the remote installed-plugin cache after login/logout instead of keying it by account or eagerly clearing it.
  • Reuse the existing single-flight remote installed refresh loop so newer queued auth refreshes replace older pending requests and the API result eventually overwrites or clears the cache.
  • Keep derived plugin/skills cache and MCP refresh side effects behind the existing effective-plugin-changed task when the refreshed installed state changes.
  • Leave clear_plugin_related_caches scoped to derived plugin/skills caches so share mutations do not drop remote installed plugins.

Tests

  • cargo fmt --all --manifest-path codex-rs/Cargo.toml (passes; stable rustfmt warns that imports_granularity = Item is nightly-only)
  • cargo test -p codex-core-plugins remote_installed_cache
  • cargo test -p codex-app-server skills_list_loads_remote_installed_plugin_skills_from_cache

Changed files

  • codex-rs/app-server/src/codex_message_processor.rs (modified, +61/-7)
  • codex-rs/core-plugins/src/manager.rs (modified, +0/-2)
RAW_BUFFERClick to expand / collapse

Summary

Please support connecting multiple separately authorized accounts for the same app/connector, with explicit account selection and hard privacy boundaries.

This is different from switching the active Codex/OpenAI account or profile. One Codex session may need to work with multiple accounts for the same external service: personal Gmail and work Gmail, multiple Slack workspaces, a client Google Drive and a company Google Drive, or personal and work Google Calendars.

Today, the app/connector model appears oriented around one active connection per provider. That creates two problems:

  • users have to disconnect/reconnect or switch context manually, which is slow and error-prone;
  • Codex/ChatGPT can become unsafe to use for connector workflows if it is unclear which mailbox, workspace, Drive, calendar, or tenant a tool call will read from or write to.

Why this matters

This is a normal workflow for many users, not an edge case:

  • Search a personal Gmail account for a receipt, then a work Gmail account for a customer thread.
  • Use an internal Slack workspace and one or more client Slack workspaces.
  • Compare availability across personal and work Google Calendars.
  • Search a company Google Drive without also exposing personal Drive content.
  • Work with more than two accounts when consulting, freelancing, or managing multiple businesses.

The current documentation reinforces the single-selected-account limitation in a few places:

  • Slack is documented as one workspace at a time, requiring disconnect/reconnect to switch workspaces.
  • Google app access is tied to the Google account chosen during setup.
  • Google Drive setup warns users with multiple Google accounts to choose the work account and uses domain matching to prevent accidentally connecting the wrong account.

Those are useful safety controls, but the missing product capability is first-class support for multiple named connections at the same time.

Proposed behavior

Codex/ChatGPT should allow multiple named app/connector connections per provider, for example:

  • Gmail - Personal
  • Gmail - Work
  • Slack - Internal
  • Slack - Client A
  • Google Drive - Company
  • Google Calendar - Personal

Expected behavior:

  • A user can connect more than one account/workspace for the same app/connector.
  • Each connected account has a clear user-visible label, such as email address, workspace name, organization name, or user-defined nickname.
  • Users can set defaults per connector, per thread, or per workspace, while still seeing which account is being used.
  • When a request is ambiguous, Codex/ChatGPT asks which connected account to use before reading data or taking action.
  • Prompts can target a named connection directly, e.g. "search Work Gmail" or "send this in Client A Slack".
  • Tool calls expose and enforce the selected connection identity instead of silently choosing among available accounts.
  • Search results, citations, and action confirmations show which account/workspace they came from.
  • Users can disconnect or refresh one connected account without disturbing other accounts for the same provider.

Privacy and safety requirements

Account boundaries should be explicit and enforceable:

  • Do not silently merge personal, work, and client data.
  • Cross-account search, summarization, or comparison should require an explicit user instruction.
  • Side-effecting actions such as sending email, posting Slack messages, editing Drive files, sharing documents, or changing calendar events should clearly confirm the selected account/workspace before execution.
  • If the requested account/workspace does not match the active connector identity, fail closed instead of falling back to another account.
  • Admin-managed accounts should be able to enforce domain, workspace, retention, audit, and policy restrictions.
  • Memory/context should not make information from one account implicitly safe to reuse in another account context.

Related and adjacent issues

This request is related to, but narrower than, general Codex account/profile switching:

It also generalizes several connector-specific problems:

Acceptance criteria

  • A user can connect at least two accounts for the same provider, such as two Gmail accounts or two Slack workspaces.
  • The UI clearly shows all connected accounts for a provider and which one is active for a given request.
  • Ambiguous connector requests prompt for account/workspace selection before any data access.
  • Connector/tool calls can target a specific named connection.
  • Connector results identify the source account/workspace.
  • External actions confirm the selected account/workspace before execution.
  • Data from different accounts is not combined unless the user explicitly asks for cross-account work.
  • Disconnecting or refreshing one account does not break other accounts for the same provider.
  • Enterprise/Business admins can restrict which domains/accounts/workspaces users may connect.

extent analysis

TL;DR

To support multiple authorized accounts for the same app/connector, the system needs to be modified to allow for explicit account selection and enforce hard privacy boundaries.

Guidance

  • Modify the app/connector model to support multiple named connections per provider, allowing users to connect more than one account/workspace for the same app/connector.
  • Implement a clear user-visible labeling system for connected accounts, such as email address, workspace name, or user-defined nickname.
  • Develop a mechanism for users to set defaults per connector, per thread, or per workspace, while still displaying which account is being used.
  • Introduce a prompt for account/workspace selection when a request is ambiguous, ensuring that the system does not silently choose among available accounts.

Example

No code snippet is provided as the issue description does not include specific technical details about the current implementation.

Notes

The proposed solution requires significant changes to the existing app/connector model and may involve updates to the user interface, authentication mechanisms, and data storage.

Recommendation

Apply a workaround by modifying the existing app/connector model to support multiple named connections per provider, as this will allow users to connect multiple accounts for the same external service while maintaining explicit account selection and hard privacy boundaries.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - ✅(Solved) Fix Feature request: support multiple named accounts per app/connector [1 pull requests, 1 comments, 2 participants]