Skip to content

All requests "terminated" #31334

@K8rvin

Description

@K8rvin

Description

OpenCode version OpenCode Desktop v1.16.2
Operating System Windows 11 Pro 25H2
Terminal OpenCode Desktop Client (Electron)

Steps to reproduce

  1. Launch the OpenCode Desktop client.
  2. Select project
  3. Select any available model from the dropdown.
  4. Send a standard prompt (e.g., "Hello, how are you?").
  5. Observe the error "terminated" in 30-60 seconds.

Additional Context

  • Which model: I tried with multiple models, but the terminated error occurs regardless of the selected model.
  • Recent changes: "I recently updated the OpenCode app and changed my network"
  • Observations: Looking closely at the attached logs, there is a TimeoutError when trying to fetch models.dev, followed by an undici terminated error. It seems like a network connectivity issue, a strict timeout, or a dropped TCP connection from the desktop client side. My general internet connection is otherwise stable.

I have a GO subscription. Today, in the OpenCode desktop client, I'm getting a "terminated" error for all requests to any model. I'm attaching the logs.

opencode-debug-20260608T083649.zip

ERROR 2026-06-08T08:29:33 +10411ms service=default cause={"_id":"Cause","failures":[{"_tag":"Fail","error":{"_tag":"TimeoutError","~effect/Cause/TimeoutError":"~effect/Cause/TimeoutError"}}]} Failed to fetch models.dev
ERROR 2026-06-08T08:30:58 +84319ms service=session.processor session.id=ses_159e0320cffeve7Roku88CQtVC messageID=msg_ea65a2395001QfBicalx61h9GY error=terminated stack=TypeError: terminated
at Fetch.onAborted (node:internal/deps/undici/undici:13602:53)
at Fetch.emit (node:events:508:28)
at Fetch.terminate (node:internal/deps/undici/undici:12732:14)
at Object.onError (node:internal/deps/undici/undici:13728:38)
at Request.onError (node:internal/deps/undici/undici:3073:31)
at Object.errorRequest (node:internal/deps/undici/undici:1932:17)
at TLSSocket.onHttpSocketClose (node:internal/deps/undici/undici:7726:14)
at TLSSocket.emit (node:events:520:35)
at node:net:346:12
at TCP.done (node:internal/tls/wrap:671:7) process

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions