Skip to content

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

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

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