Skip to content

Retry transient local provider connection failures (ECONNREFUSED) in session loop #15851

Closed as not planned

Description

@pkellyuk

Describe the bug\nWhen using local OpenAI-compatible providers (for example llama.cpp), transient connection failures like ECONNREFUSED can appear during long-running sessions.\n\nThese failures are currently treated as non-retryable in some paths, so the session stops instead of recovering automatically.\n\n### Steps to reproduce\n1. Configure a local provider endpoint (for example http://127.0.0.1:8080/v1).\n2. Start a long session and trigger intermittent local server availability/connectivity interruptions.\n3. Observe that some connection failures abort the turn instead of retrying.\n\n### Expected behavior\nTransient local connectivity errors should be marked retryable so the existing session retry loop can recover automatically.\n\n### Additional context\nThis especially affects local/self-hosted flows where temporary restarts and socket hiccups are expected.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 3, 2026
  2. assigned and unassigned on Apr 26, 2026
  3. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 3, 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