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
Bug: opencode-desktop window does not appear on KDE Plasma Wayland when launched from terminal #24530
The opencode-desktop GUI window never appears when the app is launched from a terminal emulator
(Konsole) on KDE Plasma 6 with a Wayland session. The backend sidecar spawns successfully and logs
show the app initializing, but no window is ever displayed.
Steps to Reproduce
Run KDE Plasma 6 on Wayland (tested with KWin + AMD GPU)
Open Konsole (or any terminal inheriting the full KDE session environment)
Run opencode-desktop
Observe: sidecar spawns, logs show "Initializing app" + "Spawning sidecar", but no window appears
Expected Behavior
A GUI window should open.
Actual Behavior
No window appears. The process runs (sidecar is active), but the Tauri/WebKitGTK window is never
shown. No errors are printed to stdout/stderr.
Root Cause
The XAUTHORITY environment variable is set in KDE Plasma sessions (pointing to /run/user/1000/xauth_*). When this variable is present, the app (or one of its subcomponents —
likely WebKitWebProcess or libX11-based internals) successfully authenticates with XWayland and
creates the window under X11. The X11 window is never composited/shown by KWin Wayland, making it
invisible.
Note: setting GDK_BACKEND=wayland alone does not fix the issue, because it only affects the
GDK rendering layer. Other components (WebKitGTK subprocess, clipboard, etc.) can still connect
to X11 via libX11 directly as long as XAUTHORITY is present.
Workaround
env --unset=XAUTHORITY opencode-desktop
Suggested Fix
Unset XAUTHORITY in the Tauri app startup code before window creation:
// In src-tauri/src/lib.rs, before window creation:
std::env::remove_var("XAUTHORITY");
Environment
OS: EndeavourOS (package: opencode-desktop-bin from AUR)
Desktop: KDE Plasma 6, Wayland session
GPU: AMD Radeon RX 7800 XT (Navi 32)
Display server: KWin Wayland + XWayland
webkit2gtk version: webkit2gtk-4.1
Plugins
No response
OpenCode version
v1.14.25
Steps to reproduce
Run KDE Plasma 6 on Wayland with XWayland active
Open Konsole — XAUTHORITY is set automatically in the KDE session environment
Run opencode-desktop
Observe: process starts, sidecar spawns (opencode-cli --serve), but no window ever appears
Confirm XAUTHORITY is the culprit: (unset XAUTHORITY && opencode-desktop) — window appears correctly
Confirm GDK_BACKEND=wayland alone does NOT fix it: (GDK_BACKEND=wayland opencode-desktop) — window still does not appear
Activity
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.