Tumbleweed: remote sudo broken when local GUI user logged in

I have found on latest Tumbleweed (20260527) that invoking sudo on remote SSH session is broken (timeouts), if there is same user logged in GUI session.

How to reproduce:

  • Login to GUI (tested with Xfce/X11)
  • Lock you GUI session with Win-L
  • login remotely via SSH to same machine
  • run any command on SSH session that invokes run0, for example:
sudo id

It will freeze, because it pops up Authentication prompt on locked GUI session(!) - so it is invisible because GUI is locked. So after a while we get just error on SSH session with sudo command:

Failed to start transient service unit: Connection timed out

It can be also found that run0 was invoked on sudo:

$ ps axf

...
   2702 pts/1    Ss     0:00  |   \_ -bash
   2721 pts/1    S+     0:00  |   |   \_ run0 --background= -- id
   2723 pts/1    Sl+    0:00  |   |       \_ /usr/bin/pkttyagent --notify-fd 6 --fallback
   2728 pts/1    S+     0:00  |   |       \_ /usr/bin/systemd-tty-ask-password-agent --watch

Another scenario: when you keep GUI session unlocked, entering sudo something on SSH session will trigger Authentication prompt on GUI Session which is wrong!

Anybody else encountering this problem?

Possibly related upstream issue: https://github.com/systemd/systemd/issues/40886

One important clarification (from above GitHub discussion): it occurs only inside tmux session

Revised steps to reproduce are:

  • Login to GUI (tested with Xfce/X11)
  • Lock your GUI session
  • login remotely via SSH to same machine
  • run tmux in your SSH session
  • run any command inside tmux session that invokes run0, for example: run0 id