Skip to content

fix(opencode): preserve input authority across native HTTP retries - #208

Merged
vriesd merged 1 commit into
mainfrom
fix/native-http-retry
Oct 27, 2026
Merged

vriesd merged 1 commit into
mainfrom
fix/native-http-retry

Conversation

@vriesd

@vriesd vriesd commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

OpenCode can retry a rejected provider HTTP response, but Flow revoked the admitted input before that retry and then rejected the next context as stale. Keep the input pending until native retry or terminal evidence settles it, while denying tools from the rejected response.

The existing exact retry, revocation, supersession and late-response checks remain enforced. This independently reproduces the stale-context error seen during qualification; the original campaign's triggering HTTP response was not retained and remains unknown.

Proof: pinned Bun 1.4.0 root check passed 5,756 tests (27 skipped); 446 focused checks passed. Native OpenCode 2.1.4 with a loopback provider fails the new HTTP-503 regression on the original artifact and passes on this change, including both Flow tool calls across the retry (124 assertions). No external model requests or qualification budget were used.

Reviewed with sol-loop: 1 round with gpt-6.1-sol on high. Sol verdict: approved.

Created with gpt-6.1-sol in T3 Code through the Codex harness.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-10-27T23:39:54.447541Z d9d4fd0 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.

@vriesd
vriesd merged commit 3bd570f into main Oct 27, 2026
8 checks passed
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