Skip to content

Expose retryability advice for run failures - #6382

Merged
markstuart-oai merged 1 commit into
v1-alphafrom
codex/v1-retry-guidance
Dec 3, 2026
Merged

markstuart-oai merged 1 commit into
v1-alphafrom
codex/v1-retry-guidance

Conversation

@markstuart-oai

Copy link
Copy Markdown
Contributor

Summary

This pull request lets applications inspect retryability advice on RunError and RunRetrying. Recognized error codes and HTTP statuses produce a boolean, while missing, unknown, or conflicting evidence produces None. Automatic retry behavior remains unchanged. Applications remain responsible for deciding whether repeating a turn or tool call is safe.

Test plan

All 49 isolated tests in test_gateway_errors.py passed, covering scripted retry and HTTP failure metadata.

The full verification script ran on all five changes together. Formatting, lint, mypy for Linux and Windows, and Pyright passed. All 285 focused tests passed.

make tests reported 464 passes and five failures involving a command hook, sandbox file writes, and a subagent. The same five tests failed on unmodified v1-alpha. This workspace blocks user namespace mapping.

Issue number

None

Checks

  • I've added new tests, if relevant
  • I've run .agents/skills/code-change-verification/scripts/run.sh
  • I've confirmed all verification steps pass
  • If using Codex, I've run /review before submitting this PR

@markstuart-oai
markstuart-oai requested review from a team, rm-openai and seratch as code owners December 2, 2026 23:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T23:36:02.942182Z 1140506 PR opened
🔒 Security Review ✅ Completed 2026-12-02T23:36:48.773100Z 1140506 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.

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No actionable findings. Reviewed retryability classification, conflicting and unknown evidence, strict HTTP status handling, and preservation of application-owned retry policy.

Comprehensive static review with independent review. No candidate code or tests were run locally. Hosted CI has no failures observed; some checks are still running.

@markstuart-oai
markstuart-oai merged commit 192b463 into v1-alpha Dec 3, 2026
24 checks passed
@markstuart-oai
markstuart-oai deleted the codex/v1-retry-guidance branch December 3, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants