Skip to content

Runs repeatedly aborted by Provider finish_reason: network_error — no auto-retry, long sessions die mid-task #44540

Closed as not planned

Description

@williambicknell

(Prepared 23 Aug 2026 from local logs at ~/.local/share/opencode/log/opencode.log)


Title: Runs repeatedly aborted by Provider finish_reason: network_error — no auto-retry, long sessions die mid-task

Version: OpenCode.app 1.18.21, macOS Sequoia (Apple Silicon)

Provider / model: opencode / x-preview-f-free

What happened

On 23 Aug 2026, long-running agentic sessions kept dying mid-task with:

ERROR message=process error="Provider finish_reason: network_error"
stack="ProviderResponseStreamError: Provider finish_reason: network_error
    at Object.toLLMEvents (...node-4c_8o6aE.js:448336:36)"

18 occurrences across 4 distinct sessions between 09:47 and 20:07 UTC. One session
("Felloh - Dolphin booking payment link via Playwright", ses_fd0defd6dffehQvpBJ243vQIrh)
was hit 9 times over ~1 hour and became effectively unusable — every retry died the same way,
and I eventually had to reconstruct its compaction summary by hand into a markdown handoff file.

The local network was fine throughout (browsing, git, npm all working normally, other apps unaffected),
and the failures span 10+ hours, so this looks like upstream/stream handling rather than my connectivity.

Expected behaviour

A transient mid-stream failure should be retried automatically (a few attempts with backoff)
before surfacing an error to the user — ideally resuming from the last received chunk so the
run survives instead of aborting.

Actual behaviour

The run aborts immediately; the user must manually re-send, and repeated occurrences make
long sessions unworkable and risk losing compaction state.

Repro / evidence

  • Log: ~/.local/share/opencode/log/opencode.log, search finish_reason: network_error
  • Example line:
timestamp=2026-08-23T19:45:14.162Z level=ERROR run=a1cbc31f message=process \
session.id=ses_fd0defd6dffehQvpBJ243vQIrh messageID=msg_03025e3ed001Hp4jTAR47EqoD0 \
error="Provider finish_reason: network_error"
  • Happy to attach the full log if useful.

Activity

  1. github-actions commented on Aug 23, 2026

    @github-actions
    Contributor

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

    Additionally, your feature request for auto-retry with backoff is tracked in:

  2. Tarquinen commented on Oct 20, 2026

    @Tarquinen
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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