Skip to content

[FEATURE]: Add close confirmation or minimize-to-tray support for Desktop app #27463

Closed as not planned

Description

@Innerpeace1990

Feature hasn't been suggested before

  • 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

Activity

  1. github-actions commented on May 14, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of or related to an existing issue. Please check:

  2. Lawyer3Y commented on May 25, 2026

    @Lawyer3Y

    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 🙏

  3. Fii-ve commented on Jun 30, 2026

    @Fii-ve

    +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.

  4. github-actions commented on Aug 30, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions