Repository navigation
Description
The workflow
bb generates thread titles and metadata with helper inference (BB_INFERENCE, BB_INFERENCE_FALLBACK). A new thread shows "Generating title" before it starts, and with the default Codex service that step runs on the default tier. Codex models offer a Fast tier (their service_tiers list { id: "priority", name: "Fast" }), and I want helper inference to use it, because it sits on the path of every new thread.
What happens today
On bb 0.43.3 there is no setting for it:
- the server always sends
reasoningEffort: "none"and nothing else (inference.ts); experimental_aiInferenceCompleteInputSchemahas no tier field, so an AI service cannot receive one;- the Codex service builds the Responses request without
service_tier(chatgpt-client.ts).
Related: the default BB_INFERENCE_FALLBACK=codex/gpt-5.4-mini fails on a ChatGPT account with HTTP 400: The 'gpt-5.4-mini' model is not supported when using Codex with a ChatGPT account., so when the primary model times out (5 s) or returns 429 the title is lost after two attempts. Server log excerpt:
Thread metadata inference failed transiently; using fallback model {"errorCode":"timeout","fallbackModel":"codex/gpt-5.4-mini","model":"codex/gpt-5.6-luna","timeoutMs":5000}
Thread metadata inference failed {"attempts":2,"model":"codex/gpt-5.4-mini","errorMessage":"Codex inference request failed with HTTP 400: The 'gpt-5.4-mini' model is not supported when using Codex with a ChatGPT account."}
What you would expect
A managed setting BB_INFERENCE_SERVICE_TIER (fast | default), live-reloadable like the other AI-service settings, that reaches the AI service. For Codex, fast sends service_tier: "priority", the id Codex lists for Fast.
Prototype on my fork (small, 8 files): VKirill/bb@b1aa4b246.
packages/plugin-sdk/src/ai-services.ts: optionalserviceTier: z.enum(["fast", "default"])on the inference input.packages/config/src/bb-app-managed-config.ts:BB_INFERENCE_SERVICE_TIERkey.apps/server:config.inferenceServiceTier, applied from managed config, passed byinference.tswhenfast.plugins/provider-codex/src/ai/chatgpt-client.ts:service_tier: "priority"whenserviceTier === "fast", plus a test.
Checked against https://chatgpt.com/backend-api/codex/responses with a ChatGPT account: service_tier: "priority" returns 200; unknown values (flex, bogus) return 400 Unsupported service_tier. It runs on my server with BB_INFERENCE=codex/gpt-6-luna, BB_INFERENCE_FALLBACK=codex/gpt-5.6-luna, BB_INFERENCE_SERVICE_TIER=fast.
Open question: the stream's final event reported service_tier: "default" for both requests in my test, so it is not yet shown whether the backend honours priority for this helper endpoint on a ChatGPT plan. The request is accepted and validated either way.
Context and alternatives
- Separately, I'd suggest changing the default fallback away from
gpt-5.4-mini, or choosing it from the Codex model list, since it cannot work on ChatGPT accounts. - Workaround today: point
BB_INFERENCE/BB_INFERENCE_FALLBACKat models the account supports.
AGENT GENERATED
Activity
bb-slop-cop commentedon Sep 24, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied and verified: Type Feature, Priority Medium, Effort Medium; labels:
providers,provider-codex. All classification fields were previously unset.The primary request adds configurable helper-inference service tiers across configuration and provider interfaces. The reported fallback failure is a related defect claim. No report or pull request was created because the final Type is Feature, which this rule excludes from reproduction and fixes.