The Terminal loses lines of history #14898

Open
opened 2026-01-31 04:22:44 +00:00 by claunia · 0 comments
Owner

Originally created by @TishSerg on GitHub (Aug 18, 2021).

Windows Terminal version (or Windows build number)

1.9.1942.0 (@ Microsoft Windows [Version 10.0.19043.1165])

Other Software

No response

Steps to reproduce

Finally, I caught a simple reproducible manifestation of this annoying bug, and finally, I'm opening this issue here. That freaks me out for a long time.

  1. Open new Windows PowerShell tab
  2. Enter command: wsl --help
  3. Copy all the text to one of the sides of your favorite diff application
  4. Enter command: wsl --list
  5. Enter command: wsl --list --verbose
  6. Copy the same text to another side of your favorite diff application
  7. See the Terminal have lost a couple of lines

I did some investigation for you, msft guys. Here are some discovered facts:

  • The lost lines are the same every time if the Terminal viewport has the same height.
    If you change viewport height, then a different couple of lines will be lost (but still with 2 preserved lines between them). Example for viewport of ~35 lines height (maybe ±few, I counted manually):
    image

  • After reading this post I decided to test if the Legacy Command-line tab has the same issue. So: it doesn't. The legacy cmd tab works as expected.

  • How about an Ubuntu tab? The same as the Legacy cmd tab. Doesn't lose lines.

Further investigation is yours, msft guys. Have nice bug hunting ;)

P.S. Looks like after these discoveries I going to use the Legacy Command-line tab more ¯_(ツ)_/¯

Expected Behavior

The scrollback doesn't lose random lines of text

Actual Behavior

Some lines are lost from scrollback buffer history

Originally created by @TishSerg on GitHub (Aug 18, 2021). ### Windows Terminal version (or Windows build number) 1.9.1942.0 (@ Microsoft Windows [Version 10.0.19043.1165]) ### Other Software _No response_ ### Steps to reproduce Finally, I caught a simple reproducible manifestation of this annoying bug, and finally, I'm opening this issue here. That freaks me out for a long time. 1. Open new Windows PowerShell tab 2. Enter command: `wsl --help` 3. Copy all the text to one of the sides of your favorite [diff application](https://editor.mergely.com/) 4. Enter command: `wsl --list` 5. Enter command: `wsl --list --verbose` 6. Copy the same text to another side of your favorite [diff application](https://editor.mergely.com/) 7. See the Terminal have lost a couple of lines I did some investigation for you, msft guys. Here are some discovered facts: - The lost lines are the same every time if the Terminal **viewport has the same height**. If you change viewport height, then a different couple of lines will be lost (but still with 2 preserved lines between them). Example for viewport of ~35 lines height (maybe ±few, I counted manually): ![image](https://user-images.githubusercontent.com/11420785/129905496-505063d0-8a41-4f84-9f10-6657a41bcdd5.png) - After reading [this post](https://github.com/microsoft/terminal/issues/3490#issuecomment-577744137) I decided to test if the Legacy Command-line tab has the same issue. So: **it doesn't**. The legacy cmd tab works as expected. - How about an Ubuntu tab? The same as the Legacy cmd tab. Doesn't lose lines. Further investigation is yours, msft guys. Have nice bug hunting ;) P.S. Looks like after these discoveries I going to use the Legacy Command-line tab more ¯\_(ツ)_/¯ ### Expected Behavior The scrollback doesn't lose random lines of text ### Actual Behavior Some lines are lost from scrollback buffer history
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 04:22:44 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14898