Skip to content

Desktop hits 5-minute Headers Timeout Error with slow local providers #26602

Description

@osamahaltassan

Description

OpenCode Desktop can abort local OpenAI-compatible provider requests after exactly 5 minutes with:

Cannot connect to API: Headers Timeout Error

This happens even when the provider config sets "timeout": false or a much larger timeout. The provider is still working, but OpenCode disconnects and then retries.

This is reproducible with Ollama on CPU when a large prompt takes longer than 300 seconds before response headers or the first streamed token.

Plugins

None

OpenCode version

Current Desktop / dev branch

Steps to reproduce

  1. Configure Desktop with a local OpenAI-compatible provider such as Ollama.
  2. Set the provider timeout to false or a value greater than 300000.
  3. Send a prompt/model request that takes more than 5 minutes before the first response.
  4. Observe Desktop fail with Headers Timeout Error and retry while the provider is still computing.

Screenshot and/or share link

N/A

Operating System

Windows 11

Terminal

N/A

Activity

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

Metadata

Metadata

Assignees

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