You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] KNOWN_FAILURE_MODES §9 recommends a 5s chunkTimeout that causes "SSE read timed out" #521
chunkTimeout is the maximum gap between streamed chunks, so 5000 ms aborts any response
where the model pauses for more than 5 seconds (long reasoning, generating a large tool
call). OpenCode then shows Provider retry (attempt N): SSE read timed out. requestTimeout is not an OpenCode provider option; the actual key is timeout.
The section also doesn't mention the SSE read timed out message, which users do hit in the
sandbox even with the kit defaults (for example on long tool calls), so there is no
documented explanation or remedy for it.
What did you expect?
The section should reflect what the usai-provider kit already configures (timeout
600000 and chunkTimeout 120000 under provider.usai.options), explain the SSE read
timeout and its automatic retry, and show how to raise chunkTimeout per project.
Steps to reproduce
Copy the §9 example into a project's OpenCode provider options.
Ask the agent for a task with a long reasoning step or a large file write.
Activity
docs(failure-modes): correct sse timeout notice, defaults, and retry cap
docs(failure-modes): scope sse timeout message and retry cap by version