anomalyco / anomalyco/opencode

[BUG] Desktop randomly marks running turn as interrupted (AbortError: Aborted, no retry, no UI error)

Open
#48,850 3 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Sep 13, 2026.

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

Description

Description

During normal Desktop usage on Windows, a running turn is randomly marked as "interrupted" even though I never pressed ESC or submitted anything. No error is shown in the UI — the turn just silently stops. Sending a new message right after works fine, and the session context is intact (no compaction/reset).

This matches the "Session Interrupted Without Retry" pattern described in #26180 (and #29589, which was deleted along with its author's account): a transient stream drop aborts the fiber, no retry happens, and the user sees a silently stopped turn.

Log evidence from ~/.local/share/opencode/log/opencode.log — two occurrences today on a live session, no user interrupt:

timestamp=2026-09-13T02:30:20.729Z level=ERROR run=312b5db8 message=process session.id=ses_f67e8f861ffet3LexvzrhZJB0V messageID=msg_09899f0f7001cZ4a7IFlBx4Fr0 error=Aborted stack="AbortError: Aborted
    at new DOMException (node:internal/per_context/domexception:76:18)
    at Array.<anonymous> (file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:489828:27)
    at ~effect/Effect/successCont (file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:7896:29)
    at ~effect/Effect/evaluate (file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:7909:25)
    at FiberImpl.runLoop (file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:7716:112)
    at FiberImpl.evaluate (file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:7686:26)
    at file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:7854:19
    at file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:6602:55
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"

timestamp=2026-09-13T15:23:00.426Z level=ERROR run=6096202d message=process session.id=ses_f67e8f861ffet3LexvzrhZJB0V messageID=msg_09b5d2f96001cqCcVOTuegoCGR error=Aborted stack="AbortError: Aborted
    at new DOMException (node:internal/per_context/domexception:76:18)
    at Array.<anonymous> (file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:489828:27)
    at Generator.next (<anonymous>)
    at ~effect/Effect/successCont (file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:7896:29)
    at ~effect/Effect/evaluate (file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:7909:25)
    at FiberImpl.runLoop (file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:7716:112)
    at FiberImpl.evaluate (file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:7686:26)
    at file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:7854:19
    at file:///C:/Users/<redacted>/AppData/Local/Programs/@opencode-aidesktop/resources/app.asar/out/main/chunks/node-BIz0dqH1.js:6602:55
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"

Expected: transient provider/network stream failures should be retried automatically, or at least surfaced as a visible recoverable error instead of a silent "interrupted" state.

Plugins

none

OpenCode version

1.18.30 (Desktop, Windows)

Steps to reproduce
  1. Start a session in OpenCode Desktop and give the agent a task
  2. Occasionally (randomly), the turn stops and shows as interrupted with no error in the UI
  3. No ESC pressed, no message submitted at that moment
  4. Sending a new message resumes work normally
Screenshot and/or share link
Image
Operating System

Windows 11

Terminal

N/A - OpenCode Desktop

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.