"sudo su -`" hangs in ssh session
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 65.1k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Description
Discord username (optional)
No response
Describe the bug
Recently i discovered that doing: sudo su - while in an ssh session on a remote host, the session just hangs. The only way to get out of it is to hit CTRL-D and you end up back at the command line that you sudo'ed from. This seems like a recent problem as I was able to do this a few weeks ago.
Note this is using Warp on a Mac connecting through ssh to a linux (centos) box.
I've also tried putting sudo and ssh in the blocklist for Subshells
To reproduce
- ssh user@remotehost
- sudo su -
things hang here
Expected behavior
Should end up in a root shell
Screenshots
No response
Operating system
MacOS
Operating system and version
14.1.1
Shell Version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Current Warp version
v0.2024.03.05.08.02.stable_01
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
About 2-4 weeks ago
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:b9d78064-c89e-4973-b153-5178a31ee54e
None
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the listed reproduction steps in a Warp SSH session and compare sudo su - with other terminals, where it reportedly works. Trace the shell-session handling involved in the hang; done means the command opens a root shell without requiring Ctrl-D.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100