.tmux: The user in the status bar is stuck at root

The problem

I just pulled the latest commit from the master branch. Then I found that if I execute any sudo-prefixed command (such as sudo whoami), the user in the status bar will remain root!, even if I’ve returned to a standard user.

My setup

$ uname -a
Linux as-server 5.8.7-arch1-1 #1 SMP PREEMPT Sat, 05 Sep 2020 12:31:32 +0000 x86_64 GNU/Linux

$ tmux -V
tmux 3.1b

$ ssh -V
OpenSSH_8.3p1, OpenSSL 1.1.1g  21 Apr 2020

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 81 (40 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks! I’ll try the branch when the problem occur again and will let you know

It happened several times recently. Unfortunately, I still don’t know what specific steps are causing it. It’s really cunning… 😥

But anyway, I’ll still pay attention to it.

I just switched to gh-403. I’ll report back here if this problem happens again.

I pushed the gh-403 branch which may solve this issue.

Please keep me posted!

$ tmux show -gv status-interval
10

Ok, I’ll pay attention next time it happens.

Okay, I’ll pay attention. If I encounter it again, I’ll report back here.