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
Forbidden: upstream connect error or disconnect/reset before headers. reset reason: connection termination #9377
The core issue appears to be that when OpenCode encounters a connection error from a local model service, it either stops retrying or enters an infinite retry loop when asked to continue. This suggests a systematic problem with how retry logic and error recovery are handled for transient failures.
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Jan 19, 2026
This issue might be a duplicate of existing issues. Please check:
The core issue appears to be that when OpenCode encounters a connection error from a local model service, it either stops retrying or enters an infinite retry loop when asked to continue. This suggests a systematic problem with how retry logic and error recovery are handled for transient failures.
Feel free to ignore if none of these address your specific case.
passerhub commentedon Jan 31, 2026
Forbidden: upstream connect error or disconnect/reset before headers. reset reason: connection termination
这个错误出现在使用反向代理访问大模型的偶发错误,一旦发生,agent会停止工作,除非人工干预.特别是sub agent,不切换过去是很难发现的.
希望能把这个error归为类似502/504的错误,opencode可以持续重试,一般会成功的.
github-actions commentedon Apr 2, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.