terminal lost scrollbar after an unexcepted close of ssh/tmux #19757

Open
opened 2026-01-31 06:52:46 +00:00 by claunia · 0 comments
Owner

Originally created by @clor09 on GitHub (Apr 24, 2023).

Windows Terminal version

1.16.10262.0

Windows build number

10.0.22621.0

Other Software

OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
tmux 3.1c

Steps to reproduce

  1. open a new terminal tab
  2. run some commands(eg. ps) to get long output. the scrollbar appears, and you can see history output just by scroll up
  3. ssh to a remote machine(linux better~)
  4. start tmux on remote machine. do something, like split a pane, run some commands but keep the tmux session open
  5. switch to another tab, in pwsh do kill -name ssh , (make sure this is the ssh process you have made above)
  6. switch back to the previous tab, the ssh process get killed, but the scroll bar does not come back, you can no longer scroll up to see the history. run ps to make a long output, and still, you cant see the full output by scroll up any more

Expected Behavior

if the remote session lost by any means, terminal should recover to a normal status, and the history need to be seen (both before and after the ssh/tmux(crashed or normal quit))

Actual Behavior

output before the ssh/tmux session "lost", after the ssh/tmux session crashed terminal was left in a bad status. long output can no longer be seen by scroll up

Originally created by @clor09 on GitHub (Apr 24, 2023). ### Windows Terminal version 1.16.10262.0 ### Windows build number 10.0.22621.0 ### Other Software OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3 tmux 3.1c ### Steps to reproduce 1. open a new terminal tab 2. run some commands(eg. ps) to get long output. the scrollbar appears, and you can see history output just by scroll up 3. ssh to a remote machine(linux better~) 4. start tmux on remote machine. do something, like split a pane, run some commands but keep the tmux session open 5. switch to another tab, in pwsh do `kill -name ssh` , (make sure this is the ssh process you have made above) 6. switch back to the previous tab, the ssh process get killed, but the scroll bar does not come back, you can no longer scroll up to see the history. run `ps` to make a long output, and still, you cant see the full output by scroll up any more ### Expected Behavior if the remote session lost by any means, terminal should recover to a normal status, and the history need to be seen (both before and after the ssh/tmux(crashed or normal quit)) ### Actual Behavior output before the ssh/tmux session "lost", after the ssh/tmux session crashed terminal was left in a bad status. long output can no longer be seen by scroll up
claunia added the Issue-QuestionNeeds-TriageResolution-Answered labels 2026-01-31 06:52:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19757