You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Uncaught Exception: TypeError: Object has been destroyed (BrowserWindow) in desktop app #35501
The desktop app (OpenCode.app on macOS) throws an uncaught exception referencing a destroyed BrowserWindow object. Full stack trace:
Uncaught Exception:
TypeError: Object has been destroyed
at BrowserWindow. (file:///Applications/OpenCode.app/Contents/Resources/app.asar/out/main/index.js:1389:76)
at BrowserWindow.emit (node:events:509:28)
at WebContents. (node:electron/js2c/browser_init:2:18806)
at WebContents.emit (node:events:509:28)
at file:///Applications/OpenCode.app/Contents/Resources/app.asar/out/main/index.js:3468:11
at
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
This looks like an event listener on a BrowserWindow/WebContents firing after the window has already been destroyed (missing an isDestroyed() guard before accessing the window).
Plugins
No response
OpenCode version
v1.17.13
Steps to reproduce
Open OpenCode Desktop
[action that triggers it, e.g. close a window / quit the app]
Activity
github-actions commentedon Jul 6, 2026
This issue might be a duplicate of existing issues. Please check:
TypeError: Object has been destroyeduncaught exception from BrowserWindow/WebContents on macOS desktop app — identical stack trace pattern and root cause (missingisDestroyed()guard in event listener)christsx commentedon Jul 6, 2026
opencode-agent commentedon Jul 20, 2026
Fixed by #37406.