Apparent regression in warpifying SSH sessions.
Pre-submit Checks
- [x] I have searched Warp SSH issues and there are no duplicates
- [x] I have searched Warp known issues page and my issue is not there
- [ ] I have included the logs (optional, but helps expedite the bug fix). Log gathering intructions
Include shell output
The more important issue is that starting yesterday, Warp started prompting me before each `ssh` session asking me whether I'd like to Warpify the SSH session. I always want to warpify the SSH session, that is why I use Warp. I SSH into hundreds of different Linux machines for work, and I cannot change the settings or add the automatic-warpify commands to `.bashrc` since these are shared machines. It adds significant time to my work, to the point where I would rather not use Warp anymore. Additionally, sometimes when I try to Warpify on certain machines, I see the error below:
ssh hostname@machine-name
Last login: Fri Mar 7 00:56:32 2025 from
, #_
~\_ ####_ Amazon Linux 2
~~ \_#####\
~~ \###| AL2 End of Life is 2025-06-30.
~~ \#/ ___
~~ V~' '->
~~~ / A newer version of Amazon Linux is available!
~~._. _/
_/ _/ Amazon Linux 2023, GA and supported until 2028-03-15.
_/m/' https://aws.amazon.com/linux/amazon-linux-2023/
98 package(s) needed for security, out of 118 available
Run "sudo yum update" to apply all updates.
[ ~]$ [ -z $WARP_BOOTSTRAPPED ] && printf "\\e]9278;f;{\"hook\": \"InitSsh\", \"value\": { \"shell\": \"%s\", \"uname\": \"%s\" }}\\a" $([ $FISH_VERSION ] && echo "fish" || { echo $0 | command -p grep -q zsh && echo "zsh"; } || { echo $0 | command -p grep -q bash && echo "bash"; } || echo "unknown") $(uname);
[ ~]$ _find() { command -v "$1" >/dev/null 2>&1;};_log() { _msg=$(printf "{\"hook\": \"$1\", \"value\": $2}" | command -p od -An -v -tx1 | command -p tr -d " \n");printf '\033\120\044\144%s\234' "$_msg";};_err() { _log RemoteWarpificationIsUnavailable "$1";};_system_details() { OS=$(uname);if [ "$OS" = "Darwin" ]; then if _find brew; then PKG="homebrew";fi;elif [ "$OS" = "Linux" ]; then if _find pacman; then PKG="pacman";elif _find zypper; then PKG="zypper";elif _find dnf; then PKG="dnf";elif _find yum && _find yumdownloader; then PKG="yum";elif _find apt; then PKG="apt";fi;fi;RA="no_root_access";if command -v sudo >/dev/null && { sudo -vn && sudo -ln; } 2>&1 | grep -E 'may run|a password' > /dev/null; then RA="can_run_sudo";elif [ "$(id -u)" -eq 0 ] && [ "$(whoami)" = "root" ]; then RA="is_root";fi;printf '%s' "{\"os\": \"$OS\", \"pkg\": \"$PKG\", \"shell\": \"$(basename $SHELL)\", \"root_access\": \"$RA\"}";};_check_tmux() { if _find $HOME/.warp/tmux/execute_tmux.sh; then _log SshTmuxInstaller "\"warp\"";TMUX="$HOME/.warp/tmux/execute_tmux.sh";elif _find tmux; then TMUX="tmux";_log SshTmuxInstaller "\"user\"";fi;if [ $TMUX ]; then VER=$(command $TMUX -V 2>/dev/null | awk '{print $2}');if [ -z "$VER" ]; then _err "\"TmuxFailed\"";elif [ "$(printf '%s\n' "$VER" "2.9" | sort -V | tail -n1)" = "2.9" ]; then _err "{\"UnsupportedTmuxVersion\": $(_system_details)}";else return 0;fi;else _err "{\"TmuxNotInstalled\": $(_system_details)}";fi;return 1;};_check_tmux && command $TMUX -CC && exit;
protocol version mismatch (client 8, server 7)
%exit
I see something in the changelog about using tmux for Warpify. Not every Linux machine has tmux installed, so this causes errors. Is there any way I can roll back to an older Warp version to avoid this issue? Thanks for your support!
Screenshots, videos, and logs
No response
Operating system (OS)
Linux
Operating system and version
Mostly Ubuntu 22 or Ubuntu 20, but it varies
Warp Version
v0.2025.03.05.08.02.stable_02
Warp Internal (ignore) - linear-label:7a739baa-09c3-499e-a0c9-a1a16c090597
None
Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e
None
Hi! Thanks for the bug report!
We'll have a fix for the protocol version mismatch (client 8, server 7) error in next Thursday's release. Regarding being prompted for warpification every time -- we'll look into potential fixes there!
Also coming in next Thursday's release is a toggle to go back to the old ssh wrapper. In the meantime, you can also force-enable the old behavior by running defaults write dev.warp.Warp-Stable SshTmuxWrapperOverride false and then restarting Warp.
Ok, thank you, this is very helpful, now I can Warpify by default like I used to (after adding the default). I'm not sure I quite understand the advantage of the Tmux wrapper, but even when it would work (only on select machines, and the inconsistently) I would see this terminal output:
669 _find() { command -v "$1" >/dev/null 2>&1;};_log() { _msg=$(printf "{\"hook\": \"$1\", \"value\": $2}" | command -p od -An -v -tx1 | command -p tr -d " \n");printf '\033\120\044\144%s\234' "$_msg";};_err() { _log RemoteWarpificationIsUnavailable "$1";};_system_details() { OS=$(uname);if [ "$OS" = "Darwin" ]; then if _find brew; then PKG="homebrew";fi;elif [ "$OS" = "Linux" ]; then if _find pacman; then PKG="pacman";elif _find zypper; then PKG="zypper";elif _find dnf; then PKG="dnf";elif _find yum && _find yumdownloader; then PKG="yum";elif _find apt; then PKG="apt";fi;fi;RA="no_root_access";if command -v sudo >/dev/null && { sudo -vn && sudo -ln; } 2>&1 | grep -E 'may run|a password' > /dev/null; then RA="can_run_sudo";elif [ "$(id -u)" -eq 0 ] && [ "$(whoami)" = "root" ]; then RA="is_root";fi;printf '%s' "{\"os\": \"$OS\", \"pkg\": \"$PKG\", \"shell\": \"$(basename $SHELL)\", \"root_access\": \"$RA\"}";};_check_tmux() { if _find $HOME/.warp/tmux/execute_tmux.sh; then _log SshTmuxInstaller "\"warp\"";TMUX="$HOME/.warp/tmux/execute_tmux.sh";elif _find tmux; then TMUX="tmux";_log SshTmuxInstaller "\"user\"";fi;if [ $TMUX ]; then VER=$(command $TMUX -V 2>/dev/null | awk '{print $2}');if [ -z "$VER" ]; then _err "\"TmuxFailed\"";elif [ "$(printf '%s\n' "$VER" "2.9" | sort -V | tail -n1)" = "2.9" ]; then _err "{\"UnsupportedTmuxVersion\": $(_system_details)}";else return 0;fi;else _err "{\"TmuxNotInstalled\": $(_system_details)}";fi;return 1;};_check_tmux && command $TMUX -CC && exit;
670 [ -z $WARP_BOOTSTRAPPED ] && printf "\\e]9278;f;{\"hook\": \"InitSubshell\", \"value\": { \"shell\": \"%s\", \"uname\": \"%s\" }}\\a" $([ $FISH_VERSION ] && echo "fish" || { echo $0 | command -p grep -q zsh && echo "zsh"; } || { echo $0 | command -p grep -q bash && echo "bash"; } || echo "unknown") $(uname)
which seems like undesired user experience for this to be visible/necessary to warpify? Anyway the problem for me is fixed and I really appreciate the help!
Hey @ddfisher, is there a solution for this on Windows? My coworker is experiencing the same issue.
TL;DR for Windows → SSH-into-Linux where auto-Warpify silently never activates: the culprit was the DCS terminator in the ~/.bashrc bootstrap line.
The snippet from the docs / older setups ends with \x9c:
printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "bash"}}\x9c'
\x9c is the single-byte (8-bit C1) form of ST. Over a UTF-8 SSH stream that lone 0x9C byte isn't valid UTF-8, so via the Windows client it gets mangled and the DCS string is never terminated → Warp never sees the hook → no warpify. (Matches the garbled-output reports here.)
Switching to the 7-bit ASCII terminator ESC \ (\x1b\x5c) fixed it instantly — which is what Warp's own internal bootstrap template already uses:
# Auto-Warpify
[[ "$-" == *i* ]] && printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "bash", "uname": "Linux" }}\x1b\x5c'
(The [[ "$-" == *i* ]] && guard also prevents the sequence leaking into non-interactive sessions like scp.)
Might be worth updating the docs snippet to use \x1b\x5c instead of \x9c.