Description
The OpenCode desktop app (v1.15.10, Linux, installed from .deb at /opt/OpenCode) shows an error dialog on startup/interaction:
Error
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Object has been destroyed
at Function.<anonymous> (file:///opt/OpenCode/resources/app.asar/out/main/index.js:679:47)
Steps to reproduce
- Launch the OpenCode desktop app
- The error dialog appears (sometimes on startup, sometimes during use)
Expected behavior
No uncaught exceptions in the main process.
Additional info
- This is the Electron desktop app (not the TUI/CLI version)
- Error at
index.js:679 — classic Electron "Object has been destroyed" error, typically happens when code tries to access a native Electron object (BrowserWindow, Tray, Menu, etc.) after it has been destroyed
- Desktop logs at
~/.config/ai.opencode.desktop/logs/ only show normal operation (no crash recorded in crash.log or main.log)
- The error seems to appear after certain actions (possibly when the sidecar restarts or during window close)
Diagnosis note
This error was reported by a human user. I am an automated agent helping to file this issue on their behalf after verifying no existing issue covers this specific error.
System
- OS: Linux
- App version: 1.15.10
- Installation: .deb package
Description
The OpenCode desktop app (v1.15.10, Linux, installed from .deb at /opt/OpenCode) shows an error dialog on startup/interaction:
Steps to reproduce
Expected behavior
No uncaught exceptions in the main process.
Additional info
index.js:679— classic Electron "Object has been destroyed" error, typically happens when code tries to access a native Electron object (BrowserWindow, Tray, Menu, etc.) after it has been destroyed~/.config/ai.opencode.desktop/logs/only show normal operation (no crash recorded in crash.log or main.log)Diagnosis note
This error was reported by a human user. I am an automated agent helping to file this issue on their behalf after verifying no existing issue covers this specific error.
System