Skip to content

Codex thread titles: fallback model gpt-5.4-mini always 400s on ChatGPT-account logins, so rate-limited titles are lost #4318

Closed

Description

@brsbl

Summary

For Codex logins that use a ChatGPT account, the Codex AI service's fallback text model, gpt-5.4-mini, is always rejected. When the primary model (gpt-5.6-luna) is rate-limited, the fallback returns HTTP 400 and the new thread never gets an automatic title. It keeps showing the raw prompt (titleFallback). I expected either a fallback model that works for ChatGPT accounts, or no fallback attempt for those logins.

Versions and environment

  • Server: bb 0.43.5-nightly.35773768107.1 (npm bb-app, self-hosted on Linux, reached through bb Connect).
  • Primary host: macOS, codex-cli 0.156.1, Codex signed in with a ChatGPT account.
  • Code checked on main at 9781a2126aefd795ff096b7361bf60f8e962b761.

Steps to reproduce

  1. Sign Codex in with a ChatGPT account (not an API key) on the primary machine and leave the thread-title AI service on Codex.
  2. Create threads with prompts of 5 words or more until gpt-5.6-luna returns a rate limit (429 / rate_limit_exceeded). On a busy account this happens several times a day.
  3. Run bb thread show <id> --json on the new thread: title stays null.

Unverified on main: I did not rerun this against a main build. The deployed nightly predates #4228, but main still tries the same two models in the same order (see Evidence).

Expected vs actual

Actual server log for thr_x8ysmgwp8t:

{"level":30,...,"attempt":1,"errorCode":"ai_service_rate_limited","fallbackModel":"codex/gpt-5.4-mini","maxAttempts":2,"model":"codex/gpt-5.6-luna","reason":"transient-failure","threadId":"thr_x8ysmgwp8t","msg":"Thread metadata inference failed transiently; using fallback model"}
{"level":40,...,"attempts":2,"durationMs":2787,"maxAttempts":2,"model":"codex/gpt-5.4-mini","threadId":"thr_x8ysmgwp8t","errorCode":"ai_service_request_failed","errorMessage":"Codex inference request failed with HTTP 400: The 'gpt-5.4-mini' model is not supported when using Codex with a ChatGPT account.","errorName":"AiServiceCallError","errorStatus":502,"reason":"failed","msg":"Thread metadata inference failed"}

Expected: the retry succeeds, or is skipped when it cannot work, and a title is applied.

Evidence

What you ruled out

Suggested priority and effort

Medium priority, small effort. It hits every ChatGPT-account Codex user whenever luna is rate-limited. No work is lost, but threads stay untitled, and on main users have no workaround. Possible fixes: choose the fallback by auth mode (drop gpt-5.4-mini on the ChatGPT backend or swap in a model it accepts), retry luna after a short backoff on 429, or retry title generation later for threads left untitled.

Found in bb thread thr_x8ysmgwp8t.

AGENT GENERATED

Activity

  1. added
    providers
    provider-codex
    on Sep 25, 2026
  2. added a commit that references this issue on Sep 25, 2026
    3b31920
  3. added theissue type on Sep 25, 2026
  4. added
    no-repro
    on Sep 25, 2026
  5. bb-slop-cop commented on Sep 25, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    ALREADY FIXED · Root-cause confidence: high · Reproduction report

    Preserved classification: Bug · Priority Medium · Effort Low; labels: providers, provider-codex, no-repro (verified).

    The former retry list selected the rejected fallback; merged #4327 removes that selection. On trusted main 0baa605b3, two clean checkouts each passed eight tests, including retry cases for rate limits, service unavailability, and invalid responses. The second run bypassed the test cache. These checks use simulated host responses; live account model access was not tested.

    No new PR: the targeted fix is already merged in #4327.

    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

    no-reproprovider-codexproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions