Skip to content

fix: time out non-SSE streams - #39516

Draft
Davide95 wants to merge 1 commit into
anomalyco:devfrom
Davide95:stream-timeout
Draft

fix: time out non-SSE streams#39516
Davide95 wants to merge 1 commit into
anomalyco:devfrom
Davide95:stream-timeout

Conversation

@Davide95

@Davide95 Davide95 commented Jul 29, 2026

Copy link
Copy Markdown

Issue for this PR

Fixes #31122

Type of change

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

What does this PR do?

Makes the existing opt-in chunkTimeout wrap every streamed response body rather than only text/event-stream responses. This detects stalled EventStream and other non-SSE provider streams without reintroducing the global timeout that caused false positives for slow models.

How did you verify your code works?

  • Added tests to cover it
  • Tested locally, and the issue seems gone
  • I'll distribute it to some people that are having this issue, and I'll report if it will fix it for all of them here

Screenshots / recordings

N/A

Checklist

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

🤖 Generated with OpenCode (GPT-5)

🤖 Generated with [OpenCode](https://opencode.ai) (GPT-5)
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jul 29, 2026
@Davide95 Davide95 changed the title fix(provider): time out non-SSE streams fix: time out non-SSE streams Jul 29, 2026
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@Davide95

Copy link
Copy Markdown
Author

Quick update: a colleague of mine played with this patched version for a while, and he confirmed that the issue is resolved for him.

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.

OMO Harness Stream Consumer Deadlock: LLM stream hangs indefinitely

1 participant