warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.39k stars 373 forks source link

copying / pasting in a ssh session doesn't work as expected #4982

Open mircea-cm opened 5 months ago

mircea-cm commented 5 months ago

Dupe Check

Describe the bug

After I ssh into a server & sudo -iu myusername I can select text to copy it, but when clicking the paste button (middle click or Ctlr+shift+V) the pasted text it appears, but I cannot continue writing or press enter until I select the active panel again.

To reproduce

  1. ssh into a server
  2. sudo -iu some_username or sudo -i
  3. ls
  4. select a folder
  5. ls -al {paste here}
  6. Hit enter, or write something after pasting (it won't continue until I select the pane with my mouse)

Expected behavior

to work as it is before ssh (it works correctly if I don't ssh)

Screenshots

No response

Operating system

Linux

Operating system and version

Ubuntu 20.04.6 LTS

Shell Version

5.0.3(1)-release

Current Warp version

v0.2024.05.28.08.02.stable_00

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

it always reproduced

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

dannyneira commented 5 months ago

Hi @mircea-cm Sorry about this blocker. Warp has an SSH Wrapper that enables features (like the blocks, prompt, completions, etc.) on remote machines requiring the default prompt on the remote machine to be either bash or zsh.

As a workaround you can add command ssh to your Settings > Subshells > Added commands menu, then run command ssh <user@server> to connect to remote session, this will attempt to enable Warp features as a subshell.

You can also disable the SSH Wrapper by navigating to Settings > Features. Blocks will stop working but with it disabling, SSH should work as normal.

Related docs: https://docs.warp.dev/features/ssh https://docs.warp.dev/features/subshells

If those help, please let us know.