You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenCode repeatedly retries after a mid-tool provider disconnect #32286
If the provider connection closes after a streamed tool call has been delivered but before a clean message completion, OpenCode repeatedly retries the provider interaction instead of failing boundedly.
In the latest local verification run, OpenCode made 588 provider requests and saw 588 mid-stream connection closures before the reproducer timeout killed the process.
Plugins
None. The standalone reproducer sets OPENCODE_DISABLE_DEFAULT_PLUGINS=1.
OpenCode version
1.17.4
Steps to reproduce
Prerequisites: Docker, Python 3, and the GitHub CLI (gh) for the clone command below. The linked reproducer is self-contained and uses only Python standard-library modules plus Docker. It builds [email protected] from the public npm package, starts a local mock provider, and runs the CLI in an isolated workspace. The Docker run is limited to 2 CPUs and 4 GiB RAM by default.
The core symptom (provider disconnect causing unbounded retries) appears closely related to the retry-cap issues above. It may be worth confirming whether a fix to those would also address the post-tool-delivery disconnect case described here.
Activity
github-actions commentedon Jun 14, 2026
This issue might be a duplicate of existing issues. Please check:
The core symptom (provider disconnect causing unbounded retries) appears closely related to the retry-cap issues above. It may be worth confirming whether a fix to those would also address the post-tool-delivery disconnect case described here.
github-actions commentedon Aug 14, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.