I encountered this issue when using bat to view files. I am sure that I do not have this problem locally or in other shell tools.
This issue only occurs when there are 2 or more users on the terminal page.
I reproduced it consistently by opening the page again in the browser's incognito mode to simulate a second user.
Steps to reproduce:
-
Install bat
-
Create a basic JSON file
echo '{"a":"b"}' > /tmp/sshx-terminal-issue.json
- Use bat to view the file in the terminal
bat /tmp/sshx-terminal-issue.json
Here is a screenshot showing the issue. The shell environment is zsh, and the same issue occurs in bash.

I encountered this issue when using bat to view files. I am sure that I do not have this problem locally or in other shell tools.
This issue only occurs when there are 2 or more users on the terminal page.
I reproduced it consistently by opening the page again in the browser's incognito mode to simulate a second user.
Steps to reproduce:
Install bat
Create a basic JSON file
Here is a screenshot showing the issue. The shell environment is zsh, and the same issue occurs in bash.