anomalyco / anomalyco/opencode
Desktop NodeService aborts on Linux when closing app
@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
- Run OpenCode Desktop on Linux and let the local server start.
- Close the desktop window normally.
- Check
journalctlorcoredumpctlafter the app exits. - Observe the Electron
node.mojom.NodeServiceprocess terminating with signal 6/ABRT andsystemd-coredumpprocessing 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.