Skip to content

Use GPT-6 Luna for Codex AI tasks with supported fallback - #4327

Merged
ymichael merged 3 commits into
mainfrom
bb/please-investigate-and-work-on-https-github-com-thr_75ek9e683k
Sep 25, 2026
Merged

ymichael merged 3 commits into
mainfrom
bb/please-investigate-and-work-on-https-github-com-thr_75ek9e683k

Conversation

@ymichael

@ymichael ymichael commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

On ChatGPT-account Codex logins, the AI service retried a rate-limited gpt-5.6-luna title request with gpt-5.4-mini. The ChatGPT Codex backend rejects that model with HTTP 400, leaving new threads untitled. This fixes #4318.

What changed

The Codex AI service now uses gpt-6-luna first and falls back to gpt-5.6-luna on retryable failures. The current Codex app-server advertises both models, and official OpenAI documentation lists GPT-6 Luna for the API-key Responses endpoint with the request's reasoning.effort: none. The change keeps the existing retry flow and wire contracts.

How you verified

  • Queried the current Codex app-server model/list and confirmed both models are present.
  • Checked the official OpenAI GPT-6 Luna model documentation for Responses API and reasoning.effort: none support.
  • With a ChatGPT login, ran 20 live title-shaped requests per model under the 5-second request limit. All 40 succeeded. GPT-6 Luna median/p90/max: 1.44/2.21/2.99 seconds; GPT-5.6 Luna: 1.28/1.73/2.37 seconds.
  • Ran 10 additional samples through the isolated BB title-service CLI path: all succeeded, median 1.27 seconds, max 1.55 seconds. The CLI does not report the responding model.
  • Injected a synthetic first-model rate limit after 0.5, 2, and 3 seconds, then called the 5.6 Luna fallback live through the service loop. All three completed inside 5 seconds. A real provider 429, API-key login, long-tail latency, and concurrent load were not measured. The fallback gets only the time remaining in the shared 5-second title-task deadline.
  • pnpm exec turbo run test --filter=bb-plugin-provider-codex (331 tests passed)
  • pnpm exec turbo run typecheck --filter=bb-plugin-provider-codex

Fixes #4318

AGENT GENERATED

@ymichael ymichael changed the title Fix Codex AI fallback for ChatGPT logins Use GPT-6 Luna for Codex AI tasks with supported fallback Sep 25, 2026
@ymichael
ymichael marked this pull request as ready for review September 25, 2026 05:14
@ymichael
ymichael merged commit 3b31920 into main Sep 25, 2026
18 checks passed
@ymichael
ymichael deleted the bb/please-investigate-and-work-on-https-github-com-thr_75ek9e683k branch September 25, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant