mirror of
https://github.com/openai/codex.git
synced 2026-11-03 00:21:31 +00:00
Better usage errors (#1941)
<img width="771" height="279" alt="image" src="https://github.com/user-attachments/assets/e56f967f-bcd7-49f7-8a94-3d88df68b65a" />
This commit is contained in:
1 parent
bc28b87c7b
commit
62ed5907f9
3 files changed
+39
-7
No files matched your search
@@ -1290,6 +1290,7 @@ async fn run_turn(
|
||||
Ok(output) => return Ok(output),
|
||||
Err(CodexErr::Interrupted) => return Err(CodexErr::Interrupted),
|
||||
Err(CodexErr::EnvVar(var)) => return Err(CodexErr::EnvVar(var)),
|
||||
Err(e @ (CodexErr::UsageLimitReached | CodexErr::UsageNotIncluded)) => return Err(e),
|
||||
Err(e) => {
|
||||
// Use the configured provider-specific stream retry budget.
|
||||
let max_retries = sess.client.get_provider().stream_max_retries();
|
||||
|
||||
Reference in new issue
Block a user