Skip to content

Codex AI service reports ready with expired credentials #5689

Open

Description

@ariofrio

Summary

Codex reports ready: true with expired credentials for Voice, thread titles, and commit messages. These helpers read local credentials without refreshing them. This bug also occurs without Account Pooler.

Versions and environment

  • Observed 2026-10-16: npm-installed BB 0.46.2-ariofrio.9 (fork build); builtin provider-codex 0.1.0.
  • Primary host: Linux 6.18.55, Node 24.21.0, Codex CLI 0.163.0. Requesting machine: macOS 26.5.1.
  • Upstream inspected at 6a639cf; no full runtime reproduction on that revision.

Steps to reproduce

On an affected installation whose primary-host Codex credential has expired:

bb settings ai-services show --json
bb voice transcribe ./non-sensitive-recording.webm --json

Voice was automatic, with Codex the sole registered service. This reproduces the affected state; it is not a recipe for expiring a live login.

Expected vs actual

Expected: automatically refresh through the credential owner when refresh credentials remain valid, then complete the task. Otherwise report unavailable with recovery instructions naming the effective host. Known-expired credentials should not count as ready.

Actual: status reports ready: true; transcription returns:

HTTP 502: Codex: Codex transcription request failed with HTTP 401: Provided authentication token is expired. Please try signing in again.

Evidence

Related reports and validation limits

  • Companion request: use Account Pooler credentials for Codex AI helpers. Refreshing the host login can restore direct Voice; pooled support removes that separate login requirement.
  • #4484 concerns ignored custom-provider auth; this concerns an accepted expired credential and false readiness. #5016 concerns timeouts, not this HTTP 401.
  • Targeted open/closed issue and PR searches on 2026-10-16 and 2026-10-17 found no exact report.
  • The original thread later transcribed the same recording directly with an unexpired pool-owned credential, bypassing the missing pool route. Built-in recovery and end-to-end title/commit flows remain untested. Live Voice auth files were not inspected; logins/routing were unchanged. Audio and transcript contents remain private.

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

Written by Codex

AGENT GENERATED

Activity

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

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium. Added providers and provider-codex; no existing values replaced.
    • Report: Reproduction and root-cause report.
    • Verdict: REPRODUCED · root-cause confidence: high · reproduction label: confirmed-repro.
    • Root cause: The credential parser computes expiration, but the shared credential reader accepts expired tokens. Readiness equates a successful read with availability, while transcription and text completion send the expired credential without recovery.
    • Verification: The same readiness regression fails in two clean trusted-main checkouts; four controls pass in each, and 26 existing auth/client tests pass. Synthetic credentials and intercepted HTTP only; live refresh and end-to-end title/commit flows remain untested.
    • No PR: Authentication semantics and credential ownership are outside the permitted simple-fix scope.
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