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 — Provider timeouts (chunkTimeout/headerTimeout) are ignored for cloudflare-ai-gateway models · Issue #51545 · anomalyco/opencode

Provider timeouts (chunkTimeout/headerTimeout) are ignored for cloudflare-ai-gateway models #51545

New issue
Copy link
New issue
Copy link
Closed
#51549
Closed
Provider timeouts (chunkTimeout/headerTimeout) are ignored for cloudflare-ai-gateway models#51545
#51549
Copy link
Assignees
nexxeln

Description

@danlapid
danlapid
opened on Sep 26, 2026
Issue body actions

Description

headerTimeout, chunkTimeout and timeout provider options don't apply to cloudflare-ai-gateway models. The gateway loader in provider.ts ignores the SDK built by resolveSDK (getModel(_sdk, ...)), which is where the timeout fetch wrapper lives, and ai-gateway-provider calls the global fetch. A stream that stalls after headers is never aborted, so the session hangs instead of retrying on SSE read timed out.

We hit this running opencode github run in CI: the run hung until the job timeout killed it.

OpenCode version

1.18.32, and current dev

Steps to reproduce

  1. Configure {"provider":{"cloudflare-ai-gateway":{"options":{"chunkTimeout":10000}}}}.
  2. Use a cloudflare-ai-gateway/... model whose upstream sends headers and then stalls the SSE body.
  3. The request never times out.

Activity

  1. github-actions
    assigned
    nexxeln
    on Sep 26, 2026
  2. github-actions commented on Sep 26, 2026

    @github-actions
    github-actionsBot
    on Sep 26, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of an existing issue. Please check:

    • #46692: provider chunkTimeout and timeout options are ignored on the v2 packages/llm path, leaving stalled streams without a client-side timeout; this may overlap with the Cloudflare gateway path reported here.
  3. rekram1-node
    closed this as completedin #51549on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @nexxeln
    nexxeln

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — 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.