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.55k stars 379 forks source link

SSH on one tab takes focus from other tabs #3265

Open garythung opened 1 year ago

garythung commented 1 year ago

Discord username (optional)

garythung

Describe the bug

Making an ssh connection will steal focus from other tabs/panes when the ssh successfully connects.

To reproduce

Multi tab experience

  1. Open Warp
  2. Open two tabs
  3. In tab 1, ssh into a server
  4. Quickly switch to tab 2
  5. After a couple of seconds, ssh is successful and the cursor loses focus on tab 2

For multi pane, this happens as well but it actually switches the focus over to the other pane.

  1. Open Warp
  2. CMD+D to open a split pane
  3. In pane 1, ssh into a server
  4. Quickly switch active pane to pane 2
  5. Focus will go back to pane 1 when ssh is successful

Expected behavior

I don't think activity in other tabs should interrupt current focus.

Screenshots

No response

Operating system

MacOS

Operating system and version

Ventura 13.4

Shell Version

No response

Current Warp version

v0.2023.06.20.08.04.stable_03

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:b8107fdf-ba31-488d-b103-d271c89cac3e

None

dannyneira commented 1 year ago

Thanks for letting us know @garythung Could you please provide a video of the issue, I can't quite reproduce this on my end by running sleep 10 ; ssh user@ip and then opening a new tab.

Also, assuming you are using zsh, check whether it’s something in your dotfiles by setting up clean configs: Run echo 'ZDOTDIR=/' > ~/.zshenv This forces Zsh to run with zero configs.

garythung commented 1 year ago

Here you go. Don't mind the black box that appears, I overlaid that because my machine prints out some private info upon ssh.

https://github.com/warpdotdev/Warp/assets/7055455/7d72ec85-b0e6-4531-a6de-4c339b1e2aa1

garythung commented 1 year ago

Here's the instance of the ssh stealing focus from another tab. See how the cursor stops blinking.

https://github.com/warpdotdev/Warp/assets/7055455/9d0a7d43-4ed6-46d6-8a32-ce7bb5777cad

garythung commented 1 year ago

In case it is due to my remote machine, I commented out the .bashrc on my remote machine and it still occurs.

Eazash commented 1 year ago

I've noticed that this bug seems to be gone on the current stable release (v0.2023.07.04.08.03.stable_02)

garythung commented 1 year ago

I just installed latest v0.2023.07.11.08.03.stable_00 and its still happening for me. Any bump on this?

garythung commented 1 year ago

Bump

camilovietnam commented 1 year ago

I have the same issue. I need to connect to multiple servers so I open a terminal, run the SSH command, then open a new tab and while I'm typing the command, the cursor will be taken from the active tab as soon as the ssh is connected in the other tab. I wish this didn't happen.

dougfarnes commented 1 year ago

Same issue here, thank you for reporting, am on v0.2023.08.22.08.03.stable_00 right now.

its-luca commented 1 year ago

I am on version v0.2023.09.26.08.09.stable_00 and have the same issue

Shankar1598 commented 9 months ago

This is still happening. In the latest release: v0.2024.02.13.08.02.stable_00. Very annoying, I am having to wait until the SSH fully finishes before switching focus to avoid this.

alzrck commented 4 months ago

still occurring in v0.2024.06.25.08.02.stable_01