Skip to content

bug: treat transient certificate verification errors as retryable #41544

Closed as not planned

Description

@cucumber-sp

Description

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

  1. Start an OpenCode session and begin a task
  2. Switch VPNs or connect to a public Wi-Fi with a captive portal
  3. Let OpenCode trigger a network request during the transition
  4. 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.

Screenshot and/or share link

Not available

Operating System

macOS

Terminal

Not specified

Activity

  1. github-actions commented on Aug 10, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please review these issues, especially #37884 which appears to cover the same root cause and requested fix.

  2. github-actions commented on Oct 11, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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