Open arthurgeek opened 10 months ago
I'm also experiencing this when opening new processes with wezterm start
Happening with wezterm connect <my-server>
as well.
@wez just another perspective on this - I think this could potentially be a security issue for some pea-brains like me who immediately start typing the ssh password after doing a wezterm ssh xx@xx
. I've ended up typing my ssh password in the source window multiple times because of this - the password is then visible in plain text in the GUI.
I understand that this is literally solving for the lowest common denominator of users but it is a potential issue nonetheless
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20240119-085337-05eadb7c
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
The command
wezterm ssh
spawns a new window and that window is focused only for the first time when the wezterm-gui is open. all subsequent commands the new window does not get focus.To Reproduce
Open wezterm gui and run:
see that the ssh connection works, and the newly spawned window receives focus. exit ssh then run again:
and see that this time the new window is open, but does not receive focus. this will happening every time a new
wezterm ssh
command runs unless you close gui and start it again.Configuration
here's the relevant parts of my wezterm config:
I have also tried with
ssh_backend = "Ssh2"
, but there was no difference. If I remove thegui-attached
callback, the window doesn't get focus not even in the first run. I also tried addingwindow:gui_window():focus()
but had the same behavior.Expected Behavior
to be able to connect to ssh and have the newly spawned window focused every time the command is run.
Logs
No response
Anything else?
No response