GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(opencode): default chunk timeout to five minutes by rekram1-node · Pull Request #46890 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Sep 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rekram1-node added 3 commits September 2, 2026 15:04
@rekram1-node
fix(opencode): default chunk timeout to five minutes
d01c9b5
@rekram1-node
fix(opencode): allow disabling chunk timeout
1fa915f
@rekram1-node
refactor(opencode): resolve chunk timeout at fetch setup
7427b0f
@rekram1-node
rekram1-node merged commit 4eb29a6 into dev Sep 2, 2026
8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the chunk-timeout branch September 2, 2026 20:33
@beatakouchnir beatakouchnir mentioned this pull request Sep 3, 2026
fix(provider): default a stream-idle timeout for openai-compatible providers #46741
Closed
3 of 6 tasks
@github-actions github-actions Bot mentioned this pull request Sep 7, 2026
Informe upstream (semanal) jaminsmoke/Jarvis#52
Open
logic10492 added a commit to coding-chimera/chimera that referenced this pull request Sep 17, 2026
@logic10492
feat(provider): default chunkTimeout to five minutes
c548422
Port upstream opencode 4eb29a64f0 (anomalyco/opencode#46890), user-approved
behavior change (triage §11 decision #14 / briefing D3): SSE chunk idle
timeout now defaults to 300_000 ms for every provider instead of never
timing out, so half-dead relay streams stop hanging indefinitely. Set
chunkTimeout: false to explicitly disable; the config schema widens to
Union(PositiveInt, Literal(false)) mirroring the existing headerTimeout
shape, and the schema description documents the new default.

The default is applied where the fetch wrapper is built (resolveSDK) and
is not written back into provider options. The fork-specific
getResponsesTransport path keeps passing the raw configured value
(no default), matching its pre-change semantics; upstream has no
counterpart surface. b04697366f (headerTimeout default generalized to
all providers) is NOT part of this commit: the fork's headerTimeout
default remains OpenAI-only (OPENAI_HEADER_TIMEOUT_DEFAULT).

Tests: default applied at fetch (signal spy), configured 50ms timeout
aborts a stalled SSE body, chunkTimeout:false accepted end-to-end and
disables the abort.

Upstream-Sha: 4eb29a64f0054672950acf789f2b09487ebfbb20
rossigee pushed a commit to rossigee/opencode that referenced this pull request Sep 18, 2026
@rekram1-node @rossigee
fix(opencode): default chunk timeout to five minutes (anomalyco#46890)
04e9817
rldona pushed a commit to plazoleta-dev/FlupCode that referenced this pull request Sep 24, 2026
@rekram1-node
fix(opencode): default chunk timeout to five minutes (anomalyco#46890)
cb6d71e
This was referenced Oct 2, 2026
SSE stream silently dropped mid-response hangs session/subagents forever — chunkTimeout has no default on the openai path #37580
Closed
"opencode run": zero-chunk provider stream stall never surfaces — no timeout, no retry, no exit (1.18.30) #48675
Closed
Tasks/Subagents with Codex / OpenAI are frequently getting stuck with no timeout/retry, which then hangs the session forever #11865
Closed
Ichinose-Kazuki pushed a commit to Ichinose-Kazuki/opencode that referenced this pull request Oct 7, 2026
@rekram1-node
fix(opencode): default chunk timeout to five minutes (anomalyco#46890)
a44c3a7
logic10492 added a commit to coding-chimera/chimera that referenced this pull request Oct 13, 2026
@logic10492
feat(provider): default chunkTimeout to five minutes
c3a77c1
Port upstream opencode 4eb29a64f0 (anomalyco/opencode#46890), user-approved
behavior change (triage §11 decision #14 / briefing D3): SSE chunk idle
timeout now defaults to 300_000 ms for every provider instead of never
timing out, so half-dead relay streams stop hanging indefinitely. Set
chunkTimeout: false to explicitly disable; the config schema widens to
Union(PositiveInt, Literal(false)) mirroring the existing headerTimeout
shape, and the schema description documents the new default.

The default is applied where the fetch wrapper is built (resolveSDK) and
is not written back into provider options. The fork-specific
getResponsesTransport path keeps passing the raw configured value
(no default), matching its pre-change semantics; upstream has no
counterpart surface. b04697366f (headerTimeout default generalized to
all providers) is NOT part of this commit: the fork's headerTimeout
default remains OpenAI-only (OPENAI_HEADER_TIMEOUT_DEFAULT).

Tests: default applied at fetch (signal spy), configured 50ms timeout
aborts a stalled SSE body, chunkTimeout:false accepted end-to-end and
disables the abort.

Upstream-Sha: 4eb29a64f0054672950acf789f2b09487ebfbb20
@devin-ai-integration devin-ai-integration Bot mentioned this pull request Oct 14, 2026
upstream: provider/security fixes not yet ported AltimateAI/altimate-code#1478
Open
29 of 90 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rekram1-node
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.