SSH disconnect makes commands prefix / suffix with 00~ and 01~
Discord username (optional)
No response
Describe the bug
When connected to a remote ssh server and the session disconnects "client_loop: send disconnect: Broken pipe" Further commands on the local machine are prefix / suffix with 00~ and 01~
To reproduce
Using macos
- ssh to ubuntu server
- reset network interface / router etc
- you are now disconnected from the remote server - see "client_loop: send disconnect: Broken pipe"
- try to ssh to same server ... or try any other command
- commands are prefixed with '00~' so always fail.
Expected behavior
No response
Screenshots
Operating system
MacOS
Operating system and version
14.3 (23D56)
Shell Version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
Current Warp version
v0.2024.01.16.16.31.stable_01
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?
No
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:b9d78064-c89e-4973-b153-5178a31ee54e
None
I'm also facing this same issue. I have to close that session and open a new one every time
I'm also facing this same issue. I have to close that session and open a new one every time
Yes me too. I usually just restart in a new tab. I have not worked out a way to recover from the issue in the same tab/session.
I have same issue
+1 also experiencing this issue
+1 here as well
I have same issue.
+1
+1
+1
I moved over to iterm2. This bug is too frustrating to continue use.
Same here. I am also having problems when I simply use exit to end a ssh connection. The CLI just stops working as a whole. It's really frustrating because I absolutely love Warp, but not enough to deal with all the bugs that arise when using ssh :(
+1. Looking forward to a fix.
Same here. I am also having problems when I simply use
exitto end a ssh connection. The CLI just stops working as a whole. It's really frustrating because I absolutely love Warp, but not enough to deal with all the bugs that arise when using ssh :(
There are an unfortunate number of confusing and worrying issues beyond these.
For example, when using 'glances' (popular python system monitor) with Warp, I get a 'segmentation fault'. I am not smart enought to know why Warp + SSH + python causes memory related problems on the remote host which do not exist with other terminal emulators.
But it worries me enough to forego using Warp ever again.
@dannyneira the same issue I've mentioned in #4645 Hopefully you find the time to investigate it 🙌🏼
I have same issue
+1, same issue
Hey all - I've figured out what's going wrong here, and should have a fix out in next week's release. :)
The issue occurs when you SSH from a shell that doesn't support the bracketed paste mode (e.g.: the macOS system bash, /bin/bash, as it's ~15 years old) into one that does (e.g.: a modern bash or zsh). The remote shell enables the bracketed paste mode when the line editor is active, and when the SSH connection is suddenly disconnected, nothing ever resets bracketed paste mode back to off. This causes Warp to send bracketed paste control sequences (\x1b[200~ and \x1b[201~) to the local shell, which doesn't understand them, leading to the odd 00~ and 01~ wrappers around commands.
That's great news. Thank you.
@vorporeal Yes, you're right.
After switching to zsh in my local terminal I don't have the issue any more. Thank you looking into this!
I wonder if upgrading bash using homebrew bash would also solve the problem.