anomalyco / anomalyco/opencode

Desktop NodeService aborts on Linux when closing app

Open
#42,097 0 comments 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Aug 12, 2026.

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

Description

Description

Closing OpenCode Desktop on Linux can abort the Electron node.mojom.NodeService utility process while local-server cleanup is still running. systemd-coredump then processes a multi-gigabyte core; in one reproduction it reached a 4.7 GB memory peak and failed with No space left on device.

The main process starts asynchronous sidecar cleanup in before-quit, but Electron continues quitting before that cleanup completes. The sidecar also calls process.exit(0) after reporting stopped, so its Electron utility host is not terminated and reaped by the parent.

Plugins

None

OpenCode version

Current dev desktop build

Steps to reproduce
  1. Run OpenCode Desktop on Linux and let the local server start.
  2. Close the desktop window normally.
  3. Check journalctl or coredumpctl after the app exits.
  4. Observe the Electron node.mojom.NodeService process terminating with signal 6/ABRT and systemd-coredump processing it.
Screenshot and/or share link

Not applicable. Relevant journal output:

Process (electron) terminated abnormally with signal 6/ABRT
Cannot store coredump: No space left on device
systemd-coredump: 4.7G memory peak
Operating System

Linux x86_64

Terminal

Desktop application

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.