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(provider): port upstream 5min OpenAI header timeout (anomalyco/opencode#37770) by devin-ai-integration[bot] · Pull Request #1477 · AltimateAI/altimate-code

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Oct 14, 2026 •
edited by cubic-dev-ai Bot
Loading

Uh oh!

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

Copy link
Copy Markdown

Issue for this PR

Closes #1475

Type of change

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

What does this PR do?

Ports upstream anomalyco/opencode#37770.

The built-in openai provider sets a 10s headerTimeout (OPENAI_HEADER_TIMEOUT_DEFAULT). With large prompts or high reasoning effort, OpenAI can take longer than 10s to send response headers, so healthy requests get aborted with Provider response headers timed out after 10000ms, then retried or failed. Upstream raised the default to 5 minutes. This PR does the same; the value now matches the 5min SSE chunk watchdog and the Altimate Base header timeout. Users can still set provider.openai.options.headerTimeout to override it, or false to disable it.

Relation to #1426: that PR adds a generic 5min DEFAULT_HEADER_TIMEOUT for providers that have none, but leaves OPENAI_HEADER_TIMEOUT_DEFAULT = 10_000. So OpenAI still gets the 10s abort there, and this PR doesn't duplicate it. The two touch neighbouring lines in provider.ts, so whichever merges second may need a trivial rebase.

How did you verify your code works?

  • Updated OpenAI API auth gets default headerTimeout to expect 300_000.
  • bun test test/provider/header-timeout.test.ts: 6 pass, 0 fail. That includes the existing abort, opt-in and disable-by-config tests.
  • bun run typecheck in packages/opencode: passes.
  • bun run script/upstream/analyze.ts --markers --base origin/main --strict: exit 0. The upstream remote couldn't be fetched here, so it used the pattern-based fallback.
  • bun script/check-tracker-leaks.ts: passes.

Screenshots / recordings

N/A, not a UI change.

Checklist

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

Written by Devin


Summary by cubic

Bumps the built-in openai provider's default header timeout from 10s to 5 minutes, porting anomalyco/opencode#37770 and closing #1475. Slow but healthy requests with large prompts or high reasoning effort were aborted with Provider response headers timed out after 10000ms before headers arrived; they now match the 5-minute SSE chunk watchdog and remain overridable via provider.openai.options.headerTimeout (or false to disable).

Written for commit bd0cb11. Summary will update on new commits.

View guided diff Turn on auto-fix

Sorry, something went wrong.

Uh oh!

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

All reactions
@devin-ai-integration
fix(provider): raise OpenAI default header timeout to 5 minutes (anom…
bd0cb11
…alyco/opencode#37770)
@devin-ai-integration
devin-ai-integration Bot requested a review from anandgupta42 October 14, 2026 16:52
@coderabbitai

coderabbitai Bot commented Oct 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5364a3ad-8dd5-4f22-accc-431dd085bfd8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

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

@devin-ai-integration devin-ai-integration Bot mentioned this pull request Oct 14, 2026
upstream: provider/security fixes not yet ported #1478
Open
29 of 90 tasks
@anandgupta42 anandgupta42 mentioned this pull request Nov 5, 2026
Provider stalls and timeouts: detect, show, retry and recover stalled model requests #1674
Open
6 tasks

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@anandgupta42 anandgupta42 Awaiting requested review from anandgupta42

At least 1 approving review is required to merge this pull request.

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.

OpenAI requests abort after 10s with 'Provider response headers timed out'

Uh oh!

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

0 participants

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.