Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't warpify subshell using toolbx #5490

Open
1 task done
devonkinghorn opened this issue Nov 18, 2024 · 0 comments
Open
1 task done

Can't warpify subshell using toolbx #5490

devonkinghorn opened this issue Nov 18, 2024 · 0 comments
Labels
Bugs Bugs, Hangs, Crash, and Freezes

Comments

@devonkinghorn
Copy link

Dupe Check

Describe the bug

I use the linux tool toolbx for development and warpify subshell just hangs 90% of the time

To reproduce

  1. in settings, detect that toolbox enter is a subshell
  2. run the command toolbox enter
  3. when prompted, hit ctrl i to warpify the subshell

from here it just hangs 80% of the time.

This is the output

devon@toolbx:~/dev$ [ -z $WARP_BOOTSTRAPPED ] && echo $0 | command -p grep -q zsh && unsetopt ZLE && eval 'export WARP_HONOR_PS1=0; setopt hist_ignore_space; unsetopt ZLE; WARP_IS_SUBSHELL=1; WARP_SESSION_ID="$(command -p date +%s)$RANDOM"; _hostname=$(command -pv hostname >/dev/null 2>&1 && command -p hostname 2>/dev/null || command -p uname -n); _user=$(command -pv whoami >/dev/null 2>&1 && command -p whoami 2>/dev/null || echo $USER); _msg=$(printf "{\"hook\": \"InitShell\", \"value\": {\"session_id\": $WARP_SESSION_ID, \"shell\": \"zsh\", \"user\": \"$_user\", \"hostname\": \"$_hostname\", \"is_subshell\": true}}" | command -p od -An -v -tx1 | command -p tr -d " \n"); printf '"'"'\x1b\x50\x24\x64%s\x9c'"'"' "$_msg"; unset _hostname _user _msg' || [ -z $WARP_BOOTSTRAPPED ] && echo $0 | command -p grep -q bash && eval 'export WARP_HONOR_PS1=0; command -p stty raw;unset PROMPT_COMMAND;HISTCONTROL=ignorespace;HISTIGNORE=" *";WARP_IS_SUBSHELL=1;WARP_SESSION_ID="$(command -p date +%s)$RANDOM";_hostname=$(command -pv hostname >/dev/null 2>&1 && command -p hostname 2>/dev/null || command -p uname -n);_user=$(command -pv whoami >/dev/null 2>&1 && command -p whoami 2>/dev/null || echo $USER);_msg=$(printf "{\"hook\": \"InitShell\", \"value\": {\"session_id\": $WARP_SESSION_ID, \"shell\": \"bash\", \"user\": \"$_user\", \"hostname\": \"$_hostname\", \"is_subshell\": true}}" | command -p od -An -v -tx1 | command -p tr -d " \n");printf '"'"'\x1b\x50\x24\x64%s\x9c'"'"' $_msg;unset _hostname _user _msg' || [ -z $WARP_BOOTSTRAPPED ] && [ $FISH_VERSION ] && eval 'export WARP_HONOR_PS1=0; set -g WARP_SESSION_ID (random);set _hostname (command -v hostname >/dev/null 2>&1 && command hostname 2>/dev/null || uname -n);set _user (command -v whoami >/dev/null 2>&1 && command whoami 2>/dev/null || echo $USER);set _msg (echo -n "{\"hook\": \"InitShell\", \"value\": {\"session_id\": $WARP_SESSION_ID, \"user\": \"$_user\", \"hostname\": \"$_hostname\", \"shell\": \"fish\", \"is_subshell\": true}}" | od -An -v -tx1 | command tr -d " \n");echo -n \u1b\u50\u24"d$_msg"\u9c;set -e _hostname _user _msg'
Starting shell...

Expected behavior

The shell shouldn't freeze.

Screenshots

No response

Operating system

Linux

Operating system and version

fedora silverblue 41 with ubuntu 24.10 toolbox

Shell Version

bash 5.2.32 on both

Current Warp version

v0.2024.11.12.08.02.stable_02

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 an issue only in Warp?

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

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

@devonkinghorn devonkinghorn added the Bugs Bugs, Hangs, Crash, and Freezes label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes
Projects
None yet
Development

No branches or pull requests

1 participant