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
- Configure Desktop with a local OpenAI-compatible provider such as Ollama.
- Set the provider timeout to
false or a value greater than 300000.
- Send a prompt/model request that takes more than 5 minutes before the first response.
- 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
Description
OpenCode Desktop can abort local OpenAI-compatible provider requests after exactly 5 minutes with:
Cannot connect to API: Headers Timeout ErrorThis happens even when the provider config sets
"timeout": falseor 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
falseor a value greater than300000.Headers Timeout Errorand retry while the provider is still computing.Screenshot and/or share link
N/A
Operating System
Windows 11
Terminal
N/A