Skip to content

fix(opencode): retry stalled SSE streams#29837

Merged
rekram1-node merged 1 commit into
devfrom
fix/sse-chunk-timeout-retry
May 29, 2026
Merged

fix(opencode): retry stalled SSE streams#29837
rekram1-node merged 1 commit into
devfrom
fix/sse-chunk-timeout-retry

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Closes #20466

Summary

  • surface SSE chunkTimeout stalls as ProviderError.ResponseStreamError
  • reuse existing retryable stream-error classification for automatic session retries
  • cover stalled SSE responses with an integration regression test

Verification

  • bun test test/provider/header-timeout.test.ts test/session/retry.test.ts
  • bun typecheck

@rekram1-node rekram1-node merged commit c7e1fc5 into dev May 29, 2026
9 of 11 checks passed
@rekram1-node rekram1-node deleted the fix/sse-chunk-timeout-retry branch May 29, 2026 05:19
tranngoclai pushed a commit to tranngoclai/opencode that referenced this pull request May 30, 2026
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.

SSE timeout errors are not retried when chunkTimeout is exceeded

1 participant