Skip to content

opencode-cli sidecar process not terminated when opencode electron desktop is closed #17068

@xpaksi

Description

@xpaksi

Description

When closing the OpenCode Electron window, the opencode-cli sidecar process is not terminated. Re-launching the app spawns a new opencode-cli instance, causing multiple processes.

SIGTERM via Ctrl+C (when running the binary directly) correctly stops both the Electron window and the sidecar — but simply closing the Electron window does not, regardless of how the app was launched. Somehow running the binary directly, have faster startup time.

I can confirm this also happen in Opencode Electron Desktop on MacOS running on Macbook Air M2.

Plugins

I don't have any installed plugins

OpenCode version

1.2.24

Steps to reproduce

  1. Open the OpenCode Electron Desktop
  2. Close the Opencode Electron Desktop
  3. See the process list, in my case i'm using btop. opencode-cli process still running.
  4. Open the OpenCode Electron Desktop again. It will spawn another opencode-cli process.
  5. I have to kill it manually in order to kill the opencode-cli process

Screenshot and/or share link

Image

Operating System

ArchLinux x86_64

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

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