Skip to content

Use Account Pooler credentials for Codex AI helpers #5690

Description

@ariofrio

Summary

Codex Voice, thread titles, and commit messages bypass Account Pooler and require a separate login on BB's primary machine. Let these helpers use pool-owned credentials and refresh handling, as pooled agents do.

Versions and environment

Observed 2026-10-16 on npm-installed BB 0.46.2-ariofrio.9 (fork build), builtin account-pool and provider-codex 0.1.0. The primary host runs Linux 6.18.55, Node 24.21.0, Codex CLI 0.163.0; the agent executes on macOS 26.5.1.

Workflow and current behavior

  1. Use a working pooled Codex session.
  2. Inspect bb pool status --json: Codex routing enabled and account ready.
  3. Run bb voice transcribe ./non-sensitive-recording.webm --json.

Observed Voice returned expired-token HTTP 401 wrapped in HTTP 502 while pooled agents worked. Installed-bundle tests also confirmed text completion goes directly upstream with local credentials.

Verified workaround

In the original thread, an authenticated POST to the pool's /v1/audio/transcriptions returned HTTP 404: plugin "account-pool" has no POST route for "/v1/audio/transcriptions".

A user-authorized direct ChatGPT request using that pool account's unexpired OAuth credential transcribed the same recording (3,798 characters). The credential stayed in memory; audio and transcript contents remain private. This proves account-level acceptance, bypassing the missing route. Evidence: @thread:thr_jqwrr7qjer, event 7792 and terminal term_u7jwn88b9n.

Requested behavior

  • Route text helpers through the existing pool Responses capability; add explicit transcription support. Reuse pool-owned account selection and coordinated refresh.
  • Map multipart audio to the correct upstream endpoint: ChatGPT /backend-api/transcribe, outside the pool's existing Codex upstream base.
  • Make availability reflect each operation, including parent pools. Keep direct-login mode explicit about its host.
  • Verify pool-only authentication, expired/rejected credentials, cancellation, and remote-host behavior. Expose configuration consistently through UI, SDK, and CLI.

Related reports and validation limits

Companion bug: expired credentials reported ready. Refreshing that login can restore direct helpers; this request removes their separate host-login requirement.

#4484 covers custom-provider/command auth; #3323 covers broader helper-provider support. This request integrates Codex helpers with Account Pooler; Voice additionally needs a new route. Targeted open/closed searches on 2026-10-16 and 2026-10-17 found no exact report.

Inspected upstream: 6a639cf. Native pooled transcription remains unsupported; direct acceptance is verified only for this account/recording. Text integration was checked offline, not end to end. Live logins, routing, and configuration were unchanged.

Investigation: @thread:thr_4wnubgxk72; original failure: @thread:thr_jqwrr7qjer.

Written by Codex

AGENT GENERATED

Activity

  1. added
    providers
    provider-codex
    on Oct 17, 2026
  2. bb-slop-cop commented on Oct 17, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied missing classification: Type: Feature · Priority: Medium · Effort: High.
    Labels: providers, provider-codex. No existing classifications were replaced.

    This adds pooled authentication support to helper operations, including a new transcription capability. Medium priority reflects the separate-login workaround; High effort reflects cross-plugin credential routing, refresh coordination, and operation-specific availability.

    No reproduction report or pull request: the final Type is Feature, so this rule skips bug reproduction and fixes.

  3. trotterdylan commented on Oct 24, 2026

    @trotterdylan

    Adding a case where pooled credentials alone would not be enough: a server with no primary host at all.

    Setup. bb 0.46.0 (npm) running alone in a Kubernetes pod with no local host daemon; one remote Linux machine connected; account-pool and provider-codex 0.1.0; Codex signed in through Account Pooler and pooled Codex threads working on the remote machine.

    Observed. bb settings ai-services:

    voice  Automatic (nothing ready)
    codex  Codex  plugin provider-codex  [thread-title, commit-message, voice]  Automatic #2  not ready: No primary machine is connected
    

    bb settings show reports "primaryHostId": null. Voice input in the app fails with Codex: No primary machine is connected.

    Cause, from the code. The Codex AI service requires a primary host before it does anything and sends the audio to that host's daemon over RPC:

    async function primaryHostId(): Promise<string | null> {
    return (await bb.sdk.system.config()).primaryHostId;
    }
    async function requirePrimaryHostId(): Promise<string> {
    const hostId = await primaryHostId();
    if (hostId === null) {
    throw new Error("No primary machine is connected");
    }
    return hostId;
    . A fix that keeps the host RPC and only swaps in pool credentials would still fail here at that check.

    Ruled out. Signing in to Codex through the Providers page (goes to the pool, not a host). Installing Codex on the remote machine (it is not and cannot be the primary host).

    Ask. When routing helpers through the pool, let them run from the server process without a primary host, or fall back to any connected machine, as #5161 did for gh credential forwarding.

    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

    provider-codexproviders

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions