Skip to content

fix(agent): recover timeout and rate-limited runs - #4952

Merged
asim merged 2 commits into
masterfrom
codex/4935-transient-run-recovery
Sep 21, 2026
Merged

asim merged 2 commits into
masterfrom
codex/4935-transient-run-recovery

Conversation

@asim

@asim asim commented Sep 21, 2026

Copy link
Copy Markdown
Member

Timeout and rate-limit failures currently make checkpointed runs terminal, preventing recovery after a restart.

Allow Resume, ResumeStreamAsk and ResumePending to recover these runs using the original run ID, saved input and completed tool results. Canceled and expired runs remain terminal. Document fresh contexts, backoff and configurable timeouts.

Validation: targeted fake-provider regression tests cover both statuses across all three resume paths after recreating the agent, and assert completed tools are not repeated. Repository build and golangci-lint pass. Full tests run in CI; the local full-suite attempt was previously blocked by automatic approval review because an existing test makes an external Atlas request.

Closes #4935

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-21T07:03:56.390660Z 446b718 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 446b718dbd

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/website/content/en/docs/guides/debugging-agents.md
@asim
asim merged commit a3f567b into master Sep 21, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] agent: 30s default timeouts mark a run terminal forever, with no recovery

1 participant