Skip to content

Certificate verification errors bypass session retry #37884

Closed as not planned
Closed as not planned

Description

@storyicon

Description

When a provider request fails with unknown certificate verification error, the error is classified as UnknownError. It therefore bypasses the existing session retry policy and stops the turn, even when the failure is transient.

The certificate verification failure should enter the same retry path as other retryable transport errors. This issue is limited to retry classification; #36590 separately covers improving the user-facing error message.

Plugins

None

OpenCode version

1.18.3

Steps to reproduce

  1. Start a provider request.
  2. Trigger a transient connection failure that surfaces as unknown certificate verification error.
  3. Observe that the session stops instead of entering retry state.

Screenshot and/or share link

Not applicable

Operating System

macOS 26.4

Terminal

OpenCode TUI in zsh

Activity

  1. github-actions commented on Jul 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of or closely related to existing issues. Please check:

  2. github-actions commented on Sep 20, 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