Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

(bug) Codex shows a provider 401 after a key rotation as a normal reply

Aperta
#7,288 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, testing

Direzione di ricerca

Start by reading the Codex adapter’s handling of provider output and the earlier analysis in issue #6022; the payload does not name source files or tests. Reproduce the key rotation in the Codex-harness flow and compare its behavior with the other harnesses. Done means provider authentication failures produce an error frame rather than a normal reply, with a replay test covering the failure.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug report services

When a provider key is rotated to a key the provider rejects, a Codex agent turn does not fail. It finishes with finish=stop and the 401 error text appears as the normal assistant reply. This is the same behavior as #6022, which is closed, but it still happens on v0.121.7.

Reproduction

  1. Start a Codex-harness agent session on a Daytona sandbox, using a vault provider key.
  2. Replace the vault key with a value the provider rejects (a decoy).
  3. Send another turn.

Result: HTTP 200, finish=stop, no error frame. The reply text is Incorrect API key ... invalid_api_key. The rotation itself is detected correctly: the runner picks up the new key, and the old key is refused. The same check on the other harnesses passes.

Seen in the v0.121.7 release QA on staging (the release gate X2 rotate cell, two runs).

Impact

A user with a revoked key sees the agent "answer" with a 401 text. Anything that reads error frames (retry, monitoring, the gate) treats the turn as a success.

Proposed fix

Detect the provider authentication failure in the Codex adapter output and emit an error frame with a clear message ("the provider rejected your key"), as the other harnesses do. Add a replay test for it. Please check #6022 for the earlier analysis; reopen it if it fits better.

Lingua principale
TypeScript
Stelle
4.8k
Fork
690
Merge medio
19h 50m
PR unite (30g)
419

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Agenta-AI/agenta

Tutte le issue di Agenta-AI/agenta

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.