Can not restore normal session when accident disconnect remote server

Open
#3,230 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
aws, macos, zsh

Research direction

The report names no repository files or tests. Start by reproducing the SSH disconnect and reconnect sequence on macOS with zsh, then trace how Warp handles a dropped remote shell; done means the terminal returns to a usable local shell without requiring a new tab.

Written by the indexing model from the issue text.

Description

area:ssh bug ready-to-implement SSH triaged
Discord username (optional)

qiduo

Describe the bug

I'm using Wrap to connect to a remote server, i.e. AWS EC2. However, due to my unstable network, the connect would break sometimes. After a disconnect, the terminal show nothing, and I tried to reconnect to the server just type in ssh @ it was stuck, i have to reopen a new window or tab to reconnect to the server.

To reproduce
  1. Connect to a remote server via SSH: ssh <user>@<ip>
  2. change to root: sudo su
  3. edit a file: vi /tmp/hello.txt
  4. Disconnect the internet
  5. Type in ssh <user>@<ip> again, it would stuck and print a bunch of mess info of Bach_preexec initialization
Expected behavior

I believe it a very common problem while disconnect to a server due to network flipping, so it suppose to be back to the local Shell when disconnect happens. But i don't know why it not work with Wrap.

Screenshots
image
Operating system

MacOS

Operating system and version

13.4.0

Shell Version

zsh 5.9 (x86_64-apple-darwin22.0)

Current Warp version

v0.2023.06.13.08.03.stable_03

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

None

Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from warpdotdev/warp

All issues in warpdotdev/warp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.