Skip to content

[FEATURE]: Desktop: Close button should minimize to system tray instead of exiting #18134

Closed as not planned

Description

@kofzjs

Feature Request

  • System: Windows 11
  • Software: OpenCode Desktop

Problem

Currently, clicking the close button (X) on OpenCode Desktop exits the application completely. Many users expect it to minimize to system tray instead, similar to how other applications like Slack, Discord, or Steam work.

Expected Behavior

  • Close button should minimize to system tray
  • The application should continue running in the background
  • Users can restore the window from the system tray icon
  • A separate 'Quit' option should be available in the menu to fully exit

Use Case

This is a common workflow for users who want OpenCode to stay running in the background while working in other applications, so they can quickly switch back when needed.

Activity

  1. github-actions commented on Mar 18, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Feature request titles must start with [FEATURE]: (e.g. [FEATURE]: Desktop: Close button should minimize to system tray instead of exiting)
    • Feature requests require a verification checkbox confirming you have searched for existing issues

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. kofzjs commented on Mar 18, 2026

    @kofzjs
    Author
    Image Image
  3. changed the title [-]Desktop: Close button should minimize to system tray instead of exiting[/-] [+][FEATURE]: Desktop: Close button should minimize to system tray instead of exiting[/+] on Mar 18, 2026
  4. github-actions commented on Mar 18, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now looks good — the title has been fixed with the [FEATURE]: prefix and the content clearly explains the problem and use case. The label has been removed and the issue is now compliant.

  5. Ryker0716 commented on Mar 22, 2026

    @Ryker0716

    +1 macOS needs this feature too

    Use case:

    • Long-running AI tasks (e.g., deep research, code generation)
    • Want to keep OpenCode running in background while switching to other apps
    • Avoid reloading context every time the app restarts

    macOS-specific needs:

    • Wish the close button would minimize to Menu Bar or Dock
    • Similar to Spotlight, Alfred, or Raycast's background running experience
    • Right-click menu bar icon to quickly "Quit" or "Show Window"

    macOS users are already used to this background-running pattern (like the apps above), which is important for productivity tools.

    Looking forward to this feature! 🙏

  6. removed
    webRelates to opencode on web / desktop
    on May 3, 2026
  7. jingbof commented on Jun 1, 2026

    @jingbof
    win.on("close", (e) => {  
      if (process.platform === "darwin") {  
        e.preventDefault()  
        win.hide()  
      }  
    })
  8. fangfuzha commented on Jun 7, 2026

    @fangfuzha

    need

  9. github-actions commented on Aug 7, 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.

  10. added a commit that references this issue on Aug 10, 2026
    079f17a
  11. shafiqimtiaz commented on Aug 11, 2026

    @shafiqimtiaz

    Need for linux

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