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
[FEATURE]: Add close confirmation or minimize-to-tray support for Desktop app #27463
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Current behavior: Clicking the close button (X) in the Desktop app immediately terminates the application with no confirmation prompt. This means:
Accidental clicks cause immediate session loss
Long-running Agent tasks are interrupted without warning
No way to keep opencode running in the background while switching to other applications
Suggested improvements:
Option A — Close confirmation dialog:
Add a confirmation prompt before closing (e.g., a dialog asking the user to confirm closure). This prevents accidental closure.
Option B — Minimize to system tray:
When the user clicks close, minimize the application to the system tray instead of terminating it. This would allow:
Long-running Agent tasks to continue in the background
Users to quickly restore the window via the tray icon
A common pattern used by many desktop applications (Slack, Discord, VS Code, etc.)
Both options could coexist as a configurable preference in settings.
Environment:
OS: Windows 11 (Build 26200, 25H2)
opencode Desktop: v1.14.50
Reacted by fire0220, Fii-ve, LKai-Xu and Eugene-Wen
Same pain here. I frequently click the X on the Desktop app window by accident, especially when the window is positioned near the edge of the screen. This immediately kills all running tasks, and in some cases even causes the app to crash hard (not just the active session, but the entire process).
A minimize-to-tray behavior on close (or at minimum a confirmation dialog when tasks are running) would be a huge quality-of-life improvement. This is especially important for users who run long agent tasks and keep OpenCode in the background — one stray click wipes out potentially hours of work.
This has been requested multiple times (#18134, #18796), hope the team can prioritize it 🙏
+1 for this feature. I'm on Windows 10/11 and the app takes ~5 seconds to start. Accidentally clicking close loses my session every time. Minimize to tray would be very helpful.
Activity
github-actions commentedon May 14, 2026
This issue might be a duplicate of or related to an existing issue. Please check:
Lawyer3Y commentedon May 25, 2026
Same pain here. I frequently click the X on the Desktop app window by accident, especially when the window is positioned near the edge of the screen. This immediately kills all running tasks, and in some cases even causes the app to crash hard (not just the active session, but the entire process).
A minimize-to-tray behavior on close (or at minimum a confirmation dialog when tasks are running) would be a huge quality-of-life improvement. This is especially important for users who run long agent tasks and keep OpenCode in the background — one stray click wipes out potentially hours of work.
This has been requested multiple times (#18134, #18796), hope the team can prioritize it 🙏
Fii-ve commentedon Jun 30, 2026
+1 for this feature. I'm on Windows 10/11 and the app takes ~5 seconds to start. Accidentally clicking close loses my session every time. Minimize to tray would be very helpful.
feat(desktop): add close-to-tray behavior
feat(desktop): add close-to-tray behavior
github-actions commentedon Aug 30, 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.