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
bug: treat transient certificate verification errors as retryable #41544
When OpenCode encounters an "unknown certificate verification error", it aborts immediately and causes the current task to lose progress. This typically happens during network transitions, such as switching VPNs or connecting to public Wi-Fi networks where a captive portal (like captive.apple.com) intercepts traffic with an untrusted or invalid TLS certificate.
Instead of crashing or aborting the entire session, this should be treated as a retryable network error, keeping the session alive so the user can retry once the connection stabilizes.
Plugins
None
OpenCode version
latest
Steps to reproduce
Start an OpenCode session and begin a task
Switch VPNs or connect to a public Wi-Fi with a captive portal
Let OpenCode trigger a network request during the transition
Observe the "unknown certificate verification error" and instant abort
Expected behavior
OpenCode should pause, preserve the current session and unsaved work, and retry the request once a valid connection is restored.
Actual behavior
It aborts immediately, wiping the current progress.
Activity
github-actions commentedon Aug 10, 2026
This issue might be a duplicate of existing issues. Please check:
unknown certificate verification erroris classified asUnknownErrorand bypasses the retry policy, causing session abort on transient network failuresPlease review these issues, especially #37884 which appears to cover the same root cause and requested fix.
github-actions commentedon Oct 11, 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.