mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
## Why Local compaction retried invalid requests and server overload errors without retry advice, and used local backoff even when the server supplied `Retry-After`. ## What changed Use `CodexErr::retry_delay` to decide whether and when to retry local compaction. Honor the original `Retry-After` deadline when present, while retaining the configured retry limit and context-window trimming behavior. ## Testing Add coverage verifying that manual local compaction does not retry invalid requests or overload responses without retry advice, but retries overload responses with `Retry-After`. GitOrigin-RevId: abe6cbba661f701b97f8b1ab83b1fe86979f03c0