[WSL] Horizontal Scroll-bar displayed needlessly after resizing tmux session through SSH #8094

Open
opened 2026-01-31 01:20:38 +00:00 by claunia · 11 comments
Owner

Originally created by @munael on GitHub (May 12, 2020).

Note

I was directed to post WSL console issues here (link redirects from microsoft/console to microsoft/terminal). See: https://github.com/microsoft/WSL/issues/new?assignees=&labels=&template=bug_report.md&title=

Environment

Windows build number: 1909
Windows Terminal version (if applicable): WSL latest. But not WSL 2.

Any other software? No.

Steps to reproduce

Happens often, but not reliably.

  1. ssh to a remote machine
  2. Start a tmux session
  3. Resize the terminal window several times. Print lines. Switch sessions/windows. clear screen, and repeat. Etc.
  4. At some point you'll see this:
    image
    Then it goes away only by restarting the terminal.

Expected behavior

  • Scroll bar is displayed only when needed by non-wrapping content.

Actual behavior

At some point you'll see this:
image
Then it goes away only by restarting the terminal.

Originally created by @munael on GitHub (May 12, 2020). # Note I was directed to post WSL console issues here (link redirects from `microsoft/console` to `microsoft/terminal`). See: https://github.com/microsoft/WSL/issues/new?assignees=&labels=&template=bug_report.md&title= # Environment ```none Windows build number: 1909 Windows Terminal version (if applicable): WSL latest. But not WSL 2. Any other software? No. ``` # Steps to reproduce Happens often, but not reliably. 1. `ssh` to a remote machine 2. Start a `tmux` session 3. Resize the terminal window several times. Print lines. Switch sessions/windows. `clear` screen, and repeat. Etc. 4. At some point you'll see this: ![image](https://user-images.githubusercontent.com/5769148/81737682-c3415500-9498-11ea-8ecc-6ee4d81cf4c7.png) Then it goes away only by restarting the terminal. # Expected behavior * Scroll bar is displayed only when needed by non-wrapping content. # Actual behavior At some point you'll see this: ![image](https://user-images.githubusercontent.com/5769148/81737682-c3415500-9498-11ea-8ecc-6ee4d81cf4c7.png) Then it goes away only by restarting the terminal.
claunia added the Product-ConhostIssue-BugPriority-3Area-UserInterface labels 2026-01-31 01:20:38 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (May 13, 2020):

If you open the Properties page when you have a horizontal scrollbar, can you read out the Buffer and Screen size entries in the Layout tab?

@DHowett-MSFT commented on GitHub (May 13, 2020): If you open the Properties page when you have a horizontal scrollbar, can you read out the Buffer and Screen size entries in the Layout tab?
Author
Owner

@ghost commented on GitHub (May 17, 2020):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (May 17, 2020): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@munael commented on GitHub (May 18, 2020):

@DHowett , They're the same:

This's quite inconsistent. I got it just now and will leave the session running. So if you have more questions/experiments I can get on that while we still have it in memory.

Possibly relevant: Today it manifested when I resized the window and quickly switched virtual desktops.

@munael commented on GitHub (May 18, 2020): @DHowett , They're the same: ![](https://user-images.githubusercontent.com/5769148/82186188-bda99c00-98ea-11ea-857b-835e8a0b3425.png) This's quite inconsistent. I got it just now and will leave the session running. So if you have more questions/experiments I can get on that while we still have it in memory. **Possibly relevant**: Today it manifested when I resized the window and quickly switched virtual desktops.
Author
Owner

@DHowett commented on GitHub (May 18, 2020):

Thanks for the info! I’ll be able to look at it when I get to work in ~8 hours.

Would you mind capturing a dump file of the conhost.exe for this window using task manager? You can email it to me at the address on my GitHub profile. That’ll make sure we don’t lose this state 😄

@DHowett commented on GitHub (May 18, 2020): Thanks for the info! I’ll be able to look at it when I get to work in ~8 hours. Would you mind capturing a dump file of the `conhost.exe` for this window using task manager? You can email it to me at the address on my GitHub profile. That’ll make sure we don’t lose this state :smile:
Author
Owner

@munael commented on GitHub (May 18, 2020):

Shared 👍

Sadly (luckily?) I resized once after the dump and it just happened to correct itself. So that came in just the right time. Either that, or the dumping somehow jolted something back into place.

@munael commented on GitHub (May 18, 2020): Shared :+1: Sadly (luckily?) I resized once after the dump and it just happened to correct itself. So that came in just the right time. Either that, or the dumping somehow jolted something back into place.
Author
Owner

@DHowett commented on GitHub (May 18, 2020):

Thanks for the dumps! Triaged into Console Backlog @ P3. Terminal won't have this issue, as it doesn't have a horizontal scrollbar. :)

@DHowett commented on GitHub (May 18, 2020): Thanks for the dumps! Triaged into Console Backlog @ P3. Terminal won't have this issue, as it doesn't have a horizontal scrollbar. :)
Author
Owner

@peschue commented on GitHub (Sep 29, 2020):

Thank you for working on this! My tmux status bar is always hidden by the horizontal scroll bar, so I cannot use WSL shell maximized with tmux. It will be great when this is fixed! :) 👍

@peschue commented on GitHub (Sep 29, 2020): Thank you for working on this! My tmux status bar is always hidden by the horizontal scroll bar, so I cannot use WSL shell maximized with tmux. It will be great when this is fixed! :) 👍
Author
Owner

@zadjii-msft commented on GitHub (Sep 29, 2020):

@peschue Which ssh are you using? ssh.exe that ships with Windows? ssh from a WSL distro? Or some other ssh? And which version of ssh?

@zadjii-msft commented on GitHub (Sep 29, 2020): @peschue Which `ssh` are you using? `ssh.exe` that ships with Windows? `ssh` from a WSL distro? Or some other `ssh`? And which version of `ssh`?
Author
Owner

@peschue commented on GitHub (Oct 1, 2020):

Oh, actually I have this issue already when I open the WSL console and start tmux. No ssh necessary.

Open WSL console -> start tmux (configured with status bar) -> maximize window -> tmux status bar is covered by horizontal scroll bar. Maybe this is a separate issue then?

@peschue commented on GitHub (Oct 1, 2020): Oh, actually I have this issue already when I open the WSL console and start tmux. No ssh necessary. Open WSL console -> start tmux (configured with status bar) -> maximize window -> tmux status bar is covered by horizontal scroll bar. Maybe this is a separate issue then?
Author
Owner

@DHowett commented on GitHub (Nov 20, 2020):

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.572]
Your Distribution version: Ubuntu 20.04 LTS
Whether the issue is on WSL 2 and/or WSL 1: Linux version 4.4.0-19041-Microsoft (Microsoft@Microsoft.com)
(gcc version 5.4.0 (GCC) ) #488-Microsoft Mon Sep 01 13:43:00 PST 2020

Steps to reproduce

Open Ubuntu from task bar, snap Ubuntu/WSL to right side so it covers half of screen (issue seems less prevalent when snapped to left side, and it doesn't seem to matter if there is a window covering the other half or if it's clear to desktop). Open vim or emacs from the command line. Resize WSL window by dragging the center edge. Greyed out uninteractable horizontal scroll bar should appear and persist for the rest of the session, covering part of the displayed content in the window.

Expected behavior

Horizontal scroll bar appears and is interactable only when really needed (which seems like never in my experience) and does not cover content at bottom of window. If it does appear, it will disappear when it is no longer needed (window is fullscreened, etc.).

Actual behavior

Uninteractable\greyed out horizontal scrollbar appears and covers content at bottom of screen, even when no scrollbar is needed. Scrollbar persists even when window is resized or fullscreened. In general, this wouldn't but such a big deal, but it covers the Emacs minibuffer almost completely.

from #8340 (@ghbrown)

@DHowett commented on GitHub (Nov 20, 2020): > # Environment > ``` > Windows build number: Microsoft Windows [Version 10.0.19041.572] > Your Distribution version: Ubuntu 20.04 LTS > Whether the issue is on WSL 2 and/or WSL 1: Linux version 4.4.0-19041-Microsoft (Microsoft@Microsoft.com) > (gcc version 5.4.0 (GCC) ) #488-Microsoft Mon Sep 01 13:43:00 PST 2020 > ``` > > # Steps to reproduce > Open Ubuntu from task bar, snap Ubuntu/WSL to right side so it covers half of screen (issue seems less prevalent when snapped to left side, and it doesn't seem to matter if there is a window covering the other half or if it's clear to desktop). Open vim or emacs from the command line. Resize WSL window by dragging the center edge. Greyed out uninteractable horizontal scroll bar should appear and persist for the rest of the session, covering part of the displayed content in the window. > > # Expected behavior > Horizontal scroll bar appears and is interactable only when really needed (which seems like never in my experience) and does not cover content at bottom of window. If it does appear, it will disappear when it is no longer needed (window is fullscreened, etc.). > > # Actual behavior > Uninteractable\greyed out horizontal scrollbar appears and covers content at bottom of screen, even when no scrollbar is needed. Scrollbar persists even when window is resized or fullscreened. In general, this wouldn't but such a big deal, but it covers the Emacs minibuffer almost completely. from #8340 (@ghbrown)
Author
Owner

@willbicks commented on GitHub (May 4, 2025):

Can confirm this issue remains with WSL2 under Windows 10 22H2 build 19045.5737.

@willbicks commented on GitHub (May 4, 2025): Can confirm this issue remains with WSL2 under Windows 10 22H2 build 19045.5737.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8094