anomalyco / anomalyco/opencode
[Desktop] App exits on RDP disconnect (Wayland ozone platform)
@Brendonovich is already working on this.
Since Aug 31, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Desktop app exits when the RDP session disconnects. Setup: headless Ubuntu box (no physical display), GNOME Wayland, accessed via RDP (gnome-remote-desktop). Disconnect RDP → app is gone; reconnect → must restart it manually. Other Electron apps on the same session (e.g. Hermes) survive the disconnect.
Root cause as far as I can tell: the desktop app's renderer is launched with --ozone-platform=wayland (native Wayland surface). On RDP disconnect, gnome-remote-desktop destroys the virtual display (Meta-0), the Wayland surface becomes invalid, the Chromium renderer crashes, and systemd closes the app scope.
Workaround that works for me: launch with --ozone-platform=x11 (XWayland path) — app survives RDP disconnects.
Plugins
None
OpenCode version
1.18.25
Steps to reproduce
- Headless Ubuntu machine, GNOME Wayland, no physical monitor
- Connect via RDP (gnome-remote-desktop)
- Start OpenCode Desktop
- Disconnect the RDP session
- Reconnect — the app is gone
Screenshot and/or share link
N/A (no display to screenshot; process just exits)
Operating System
Ubuntu 26.04 LTS, GNOME Wayland, gnome-remote-desktop 50.2-0ubuntu0.1
Terminal
N/A (desktop app)
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.