Skip to content

Pooled Codex sessions can't be resumed outside bb: model provider bb-account-pool not found #6107

Open

Description

@bloodcarter

Problem

Codex threads routed through the Account Pooler are recorded with model_provider = "bb-account-pool" in their session files under ~/.codex/sessions. bb defines that provider only through launch-time -c overrides (provider-codex/dist/host.js, resolveAppServerLaunch), never in ~/.codex/config.toml.

Other Codex clients share the same session store, so the ChatGPT desktop app lists these chats. Opening one fails:

ChatGPT can't load config.toml, so this chat can't resume.
Fix config.toml: Model provider bb-account-pool not found. After saving the file, reopen the chat.

On one machine, all 31 pooled bb Codex sessions were affected; non-pooled sessions resume normally.

Reproduction

With the ChatGPT app's bundled Codex (codex-cli 0.163.0-alpha.11.1) and an unchanged config.toml, codex app-server returns this for a pooled bb session:

-> {"id":2,"method":"thread/resume","params":{"threadId":"<pooled bb thread>","modelProvider":"bb-account-pool"}}
<- {"code":-32600,"message":"failed to load configuration: Model provider `bb-account-pool` not found"}

Without modelProvider, the resume succeeds, so the app passes the saved provider.

Workaround

Defining the provider in ~/.codex/config.toml fixes it. bb's -c flags override every key when bb launches its own threads, and pooled routing still works:

[model_providers.bb-account-pool]
name = "OpenAI"
base_url = "https://chatgpt.com/backend-api/codex"
wire_api = "responses"
requires_openai_auth = true
supports_websockets = false

Suggested fix

Record a provider other Codex clients can resolve (for example route through openai_base_url with the built-in openai provider), or have the Account Pooler write a resolvable bb-account-pool entry to config.toml and document it.

Activity

  1. added theissue type on Oct 22, 2026
  2. added
    providers
    provider-codex
    confirmed-repro
    on Oct 22, 2026
  3. bb-slop-cop commented on Oct 22, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium. Labels: providers, provider-codex, confirmed-repro.
    • Report: Reproduction and root cause — REPRODUCED, high root-cause confidence.
    • Cause: pooled launches persist bb-account-pool in Codex session metadata, but define that provider only through process-local overrides. A clean client cannot resolve the saved identity.
    • Verification: reproduced with real Codex 0.159.0 in two clean checkouts of main at 9c3c56fa2; the built-in-provider resume control succeeds. All 15 relevant existing tests pass. On this version, omitting the provider also fails; the desktop dialog was not tested.
    • No PR: a complete repair for already-saved sessions needs persistent configuration/session changes or a compatibility product decision, outside the automatic simple-fix limits.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproprovider-codexproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions