mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
Keep goals active on model capacity errors
This commit is contained in:
@@ -303,6 +303,9 @@ where
|
||||
};
|
||||
|
||||
let reason = match input.error {
|
||||
// Capacity retries do not consume the user's token budget, so
|
||||
// leave the goal active for the idle continuation.
|
||||
CodexErrorInfo::ServerOverloaded => return,
|
||||
CodexErrorInfo::UsageLimitExceeded => ActiveGoalStopReason::UsageLimit,
|
||||
// The turn has ended because the error was non-retryable or its
|
||||
// retries were exhausted. Block the goal to prevent automatic
|
||||
|
||||
Reference in New Issue
Block a user