-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SSH session hangs when remote CLI tool (e.g. gh auth login) attempts to open a browser #9290
Copy link
Copy link
Open
Labels
area:sshSSH and remote-session behavior, including tmux-related terminal flows.SSH and remote-session behavior, including tmux-related terminal flows.area:terminal-inputTerminal command-line input, cursor movement, key handling, and input editing.Terminal command-line input, cursor movement, key handling, and input editing.bugSomething isn't working.Something isn't working.needs-infoMore issue-specific reporter detail is needed before the problem can be confidently triaged.More issue-specific reporter detail is needed before the problem can be confidently triaged.os:macmacOS-specific behavior, regressions, or requests.macOS-specific behavior, regressions, or requests.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.The report suggests a plausible repro path, but some uncertainty remains.triagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.
Metadata
Metadata
Assignees
Labels
area:sshSSH and remote-session behavior, including tmux-related terminal flows.SSH and remote-session behavior, including tmux-related terminal flows.area:terminal-inputTerminal command-line input, cursor movement, key handling, and input editing.Terminal command-line input, cursor movement, key handling, and input editing.bugSomething isn't working.Something isn't working.needs-infoMore issue-specific reporter detail is needed before the problem can be confidently triaged.More issue-specific reporter detail is needed before the problem can be confidently triaged.os:macmacOS-specific behavior, regressions, or requests.macOS-specific behavior, regressions, or requests.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.The report suggests a plausible repro path, but some uncertainty remains.triagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.
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 machinerather 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
ssh user@remote-hostgh auth loginCtrl+Cis unresponsive.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:
At minimum,
Ctrl+Cand other interrupt signals should remain functional so the user can abort the hanging process without closing the entiresession.
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+Creliably interrupts theprocess 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+Cto abort the process.