Skip to content

Make macOS window close hide sessions instead of terminating them #10237

@creeveliu

Description

@creeveliu

Problem

On macOS, users often expect closing a window with Cmd-W or the red close button to dismiss the window without necessarily ending the underlying terminal session. In Warp today, closing the window can terminate the active session, which makes it easy to lose long-running commands or session context when the user only intended to get the window out of the way.

Proposed behavior

  • Cmd-W should hide the current Warp window instead of closing the underlying session.
  • The Close Window menu action and native red close button should follow the same behavior.
  • Clicking the Dock icon should restore an existing hidden Warp window before creating a new one.
  • Existing macOS behavior for quit_on_last_window_closed should be preserved when enabled.

Why this helps

This makes Warp behave more like a persistent workspace on macOS: users can dismiss windows quickly while keeping their terminal sessions alive, then return to them from the Dock.

Related PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:window-tabs-panesWindow, tab, pane, and workspace layout management.enhancementNew feature or request.os:macmacOS-specific behavior, regressions, or requests.repro:highThe report includes enough evidence that the issue appears highly reproducible.triage-reviewedtriagedIssue has received an initial automated triage pass.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions