Skip to content

Respect error retry policy during local compaction - #60473

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/abe6cbba661f701b97f8b1ab83b1fe86979f03c0
Nov 10, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/abe6cbba661f701b97f8b1ab83b1fe86979f03c0

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Respect error retry policy during local compaction

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.

## 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
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/abe6cbba661f701b97f8b1ab83b1fe86979f03c0 branch from 8ed4c44 to d314771 Compare November 10, 2026 00:07
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-10T00:07:38.689533Z 8ed4c44 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit d314771 into main Nov 10, 2026
8 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/abe6cbba661f701b97f8b1ab83b1fe86979f03c0 branch November 10, 2026 00:07
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — d3147716 Deployed Nov 10, 2026 by rschwabco via Identify potential duplicates (all issues) #62481
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants