(bug) Codex shows a provider 401 after a key rotation as a normal reply
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
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
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
- Start a Codex-harness agent session on a Daytona sandbox, using a vault provider key.
- Replace the vault key with a value the provider rejects (a decoy).
- 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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Agenta-AI/agenta
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Agenta-AI/agenta#7468 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
(bug) The Stop button disappears for a moment before an approval card showsForse già presa @rishu685 l’ha presa 5 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Agenta-AI/agenta#7446 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
Agenta-AI/agenta#7441 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Agenta-AI/agenta#7426 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
No CI job runs the mobile app's unit testsForse già presa @Mahaboob-Ashraf l’ha presa 4 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Agenta-AI/agenta#7326 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Agenta-AI/agenta
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
db-ux-design-system/core-web#8461 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Cannot run an integration on windows when power shell is selected as the default profile terminalApertaPriority/Blocker Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
wso2/product-integrator#2767 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
severity:low
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno