Skip to content

fix(core): retry acknowledged websocket read failures - #49183

Merged
nexxeln merged 1 commit into
anomalyco:v2from
dbpolito:retry-websocket-reads
Sep 16, 2026
Merged

nexxeln merged 1 commit into
anomalyco:v2from
dbpolito:retry-websocket-reads

Conversation

@dbpolito

@dbpolito dbpolito commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #48690

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

A provider acknowledgment marks a WebSocket request as accepted before assistant output necessarily starts. If the socket then closes with 1006, the retry policy rejects it, while partial-output continuation has not become eligible, so the session fails.

Allow accepted read failures through the existing retry policy. Before output, the runner retries with bounded backoff; after output, it continues from durable history. Explicit request rejections keep their existing handling.

How did you verify your code works?

  • added test cases

Screenshots / recordings

Not applicable (retry logic).

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@nexxeln
nexxeln merged commit ba753b3 into anomalyco:v2 Sep 16, 2026
11 of 12 checks passed
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants