Skip to content

fix(inference): surface Codex nested 400 diagnostics - #1228

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-9498-surface-codex-nested-error-messages-instead-of-bad-request
Sep 29, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-9498-surface-codex-nested-error-messages-instead-of-bad-request

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Codex fatal HTTP 400s whose classified message is empty or "Bad Request" now show the nested ChatGPT error text on the transcript.
  • Category stays fatal. Usage-limit and credential-404 handling is unchanged.
  • Non-Codex providers and 400s that already carry a real diagnostic are unchanged.

Verification

  • bun run check passes (lint, typecheck, dead-exports, build, guarded test suite 7568 pass / 0 fail, seed 424242)
  • Targeted tests: bun test ./src/auth/codex/usage-limit-error.test.ts ./src/inference-gateway-error.test.ts ./src/inference-error-message.test.ts (93 pass)

Fixes CL-9498

The harness classifies Codex HTTP 400s as fatal with statusText
"Bad Request" while the real diagnostic sits on nested detail.error.
Lift that copy for known Codex providers without reclassifying.
@linear-code

linear-code Bot commented Sep 29, 2026

Copy link
Copy Markdown

CL-9498

@TheGreatAxios
TheGreatAxios merged commit 995ec36 into main Sep 29, 2026
13 checks passed
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.

1 participant