Skip to content

fix(opencode): default chunk timeout to five minutes - #46890

Merged
rekram1-node merged 3 commits into
devfrom
chunk-timeout
Sep 2, 2026
Merged

fix(opencode): default chunk timeout to five minutes#46890
rekram1-node merged 3 commits into
devfrom
chunk-timeout

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Sets the default timeout between streamed SSE response chunks to five minutes (300,000 ms). Stalled requests are aborted and retried using the existing retry policy. This limits inactivity between chunks, not the total response duration.

To disable it for a provider, set chunkTimeout to false in your project's opencode.json or global ~/.config/opencode/opencode.json:

{
  "provider": {
    "anthropic": {
      "options": {
        "chunkTimeout": false
      }
    }
  }
}

Replace anthropic with your provider. To change the timeout instead, use a positive number of milliseconds, such as "chunkTimeout": 600000 for ten minutes. Omit the setting to use the five-minute default.

@rekram1-node
rekram1-node merged commit 4eb29a6 into dev Sep 2, 2026
8 checks passed
@rekram1-node
rekram1-node deleted the chunk-timeout branch September 2, 2026 20:33
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.

1 participant