Skip to content

fix(opencode): increase OpenAI header timeout - #37770

Merged
rekram1-node merged 1 commit into
devfrom
openai-header-timeout
Jul 19, 2026
Merged

fix(opencode): increase OpenAI header timeout#37770
rekram1-node merged 1 commit into
devfrom
openai-header-timeout

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • increase the default OpenAI response-header timeout from 10 seconds to 300 seconds
  • preserve the existing provider override and disable behavior
  • update the provider regression test for the new default

Fixes#29548

Testing

  • bun test test/provider/header-timeout.test.ts (6 passed)

Requested by: @rekram1-node (Aiden Cline via Slack)

@rekram1-node
rekram1-node merged commit 67caf89 into devJul 19, 2026
11 checks passed
@rekram1-node
rekram1-node deleted the openai-header-timeout branch July 19, 2026 15:41
Bkm016 pushed a commit to Bkm016/opencode that referenced this pull request Jul 20, 2026
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
avion23 pushed a commit to avion23/opencode that referenced this pull request Jul 20, 2026
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
tobocop2 pushed a commit to tobocop2/opencode that referenced this pull request Jul 29, 2026
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
3kaiu pushed a commit to 3kaiu/opencode-x that referenced this pull request Jul 31, 2026
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
banlanzs pushed a commit to banlanzs/opencode that referenced this pull request Aug 6, 2026
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
charlesverge pushed a commit to charlesverge/opencode that referenced this pull request Aug 11, 2026
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
androidand added a commit to androidand/opencode-skein that referenced this pull request Aug 14, 2026
Reconciles the 35/34 divergence between local dev and origin/dev. 53
conflict hunks: bun.lock regenerated rather than hand-merged,
fork/manifest.json reconciled last against what the source files actually
became, and 17 source hunks decided per hunk.
Most source hunks were ties — both sides made the same change (log.info ->
Effect.logInfo, LayerNode.make positional -> object form) and differed only
in wrapping. Resolved to whichever side matches prettier's 120-column
output.
The genuine divergences went to the fork, because upstream's half was the
same problem solved a different way and the fork's half is the completed
refactor:
- local/placement.ts: pick() returns a discriminated outcome and the Effect
caller logs (task.ts:254-268 logs all three outcomes). Upstream instead
logged in place via syncLog*.
- provider/provider.ts: discoverOpenAICompatibleModels returns
{ models, warnings }; the caller logs them at provider.ts:2114.
- The retired defaultLayer exports stay retired — the only remaining
references in the tree are two comments explaining the removal.
provider.ts's OPENAI_HEADER_TIMEOUT_DEFAULT keeps 300_000. That looks like
a fork value but is upstream's own (PR anomalyco#37770), already restored here by
30104df; origin/dev still carries the superseded 10_000.
Two defects came from git's *automatic* merges, not the conflicts — both
sides added the same lines at different offsets, so both copies survived:
duplicate fork script keys in package.json (bun warned) and a duplicate
ForkDistribution import in installation/index.ts (TS2300).
fork/manifest.json takes origin/dev's newer baseline (91df883, 2026-08-13)
and its _ownedRemoved_* notes; the owned/patched sets resolve to the local
side, which is a strict superset. util/sync-log.ts is registered as owned
but is now unused — see _ownedUnused_2026-08-14; it needs a decision, not a
silent deletion.
typecheck 30/30 clean, loop tests 149 pass / 0 fail.
Spark-Liang pushed a commit to Spark-Liang/opencode that referenced this pull request Aug 18, 2026
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAI provider headers timeout after 10000ms on 1.15.11; increasing headerTimeout fixes it

1 participant

@rekram1-node