Skip to content

SSH session hangs when remote CLI tool (e.g. gh auth login) attempts to open a browser #9290

@brujack

Description

@brujack

Describe the bug

When SSH'd into a remote machine from a Warp terminal session, running a CLI tool that triggers browser-based authentication (e.g. gh auth login, gcloud auth login) causes the terminal session to hang indefinitely. The tool attempts to open a browser on the remote machine
rather than passing the auth URL back to the local machine where a browser is available. The terminal never recovers and the only recourse is to
force-close the session from within Warp.

To reproduce

  1. Open a Warp terminal on your local machine.
  2. SSH into a remote machine: ssh user@remote-host
  3. Run a CLI tool that requires browser-based OAuth, e.g.: gh auth login
  4. The tool attempts to open a browser on the remote machine (where no browser/display is available).
  5. The terminal session hangs — keyboard input including Ctrl+C is unresponsive.
  6. The only way to recover is to hard-close the terminal session within Warp.

Expected behavior

The terminal session should remain responsive. Ideally Warp would detect that the process is attempting to open a browser on a remote host and
either:

  • Surface the auth URL in the local terminal so the user can open it manually, or
  • Forward the browser open request to the local machine.

At minimum, Ctrl+C and other interrupt signals should remain functional so the user can abort the hanging process without closing the entire
session.

Additional context

This is reproducible with any CLI tool that calls xdg-open, open, or equivalent to launch a browser for OAuth flows (e.g. gh auth login, gcloud auth login, az login). The hang appears to be related to the remote process blocking on a browser that never opens,
combined with Warp not propagating interrupt signals through the SSH connection in a way that unblocks the process.

Other terminals (e.g. iTerm2, Terminal.app) exhibit the same browser-launch failure on the remote side, but Ctrl+C reliably interrupts the
process and returns the prompt — the hard-hang requiring a force-close appears to be Warp-specific.

Operating system

macOS

Does this block you from using Warp daily?

Yes — any SSH workflow that involves remote auth (CI tokens, cloud CLI setup, GitHub CLI) requires switching to another terminal or
pre-authenticating before the SSH session.

Is this an issue only in Warp?

Partially — the browser-launch failure is inherent to SSH (no display on remote), but the unrecoverable hang requiring a force-close is specific
to Warp. Other terminals allow Ctrl+C to abort the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:sshSSH and remote-session behavior, including tmux-related terminal flows.area:terminal-inputTerminal command-line input, cursor movement, key handling, and input editing.bugSomething isn't working.needs-infoMore issue-specific reporter detail is needed before the problem can be confidently triaged.os:macmacOS-specific behavior, regressions, or requests.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.triagedIssue 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