anomalyco / anomalyco/opencode

bug: treat transient certificate verification errors as retryable

Open
#41,544 1 comment 1 reaction 1 assignee View on GitHub

@jlongster is already working on this.

Since Aug 10, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.