Skip to content

Terminal keeps scrolling up when typing, leaving a mostly blank panel. #274816

Open

Description

I have a keypress mapped to the workbench.action.toggleMaximizedPanel when in terminalFocus, so that my terminal will vertically fill VS Code so that I can see all the terminal output. Unfortunately VS Code thwarts my efforts, because as soon as I start typing, it scrolls the terminal content up, leaving about 2/3 of the bottom half of the terminal as blank space!

I'll use my mouse scroll back to the terminal history so that I can see what the terminal output was before. The cursor will still be visible at the bottom of the panel. I'll happily start to type, looking at the previous terminal history at the top of the panel. But as soon as I press a key, VS Code scrolls everything up, hiding the history again.

This happens for no reason, as the cursor is visible in the panel, and even has blank space below it. There is no reason to scroll the terminal up under these conditions. It's very irritating and gets in the way of productivity.

Version: 1.105.1 (user setup)
Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

Activity

  1. meganrogge commented on Nov 3, 2025

    @meganrogge
    Collaborator

    I'm not sure what you mean. Maybe a gif would help?

  2. added
    info-needed
    on Nov 3, 2025
  3. garretwilson commented on Nov 3, 2025

    @garretwilson
    Author

    Here is my terminal panel, filling the application vertically because I used the workbench.action.toggleMaximizedPanel command:

    +-----+
    |.....|
    |.....|
    |.....|
    |.....|
    |.....|
    |.....|
    |.....|
    |.....|
    |.....|
    +-----+
    

    Note the ..., indicating text. I can see the terminal history of the commands I've entered and their output. As soon as I type any key, VS Code scrolls the history up for no reason, leaving me with this.

    +-----+
    |.....|
    |.....|
    |.....|
    |     |
    |     |
    |     |
    |     |
    |     |
    |     |
    +-----+
    

    I can no longer see my history. So I scroll it back down:

    +-----+
    |.....|
    |.....|
    |.....|
    |.....|
    |.....|
    |.....|
    |.....|
    |.....|
    |.....|
    +-----+
    

    But as soon as I type another key, VS Code scrolls it back up again:

    +-----+
    |.....|
    |.....|
    |.....|
    |     |
    |     |
    |     |
    |     |
    |     |
    |     |
    +-----+
    
  4. meganrogge commented on Nov 3, 2025

    @meganrogge
    Collaborator

    I cannot reproduce, so will need a gif.

  5. garretwilson commented on Nov 3, 2025

    @garretwilson
    Author

    I don't have my GIF-maker handy. Why don't you post a GIF of your not reproducing it, and I'll tell you how your steps to reproduce it do not match.

  6. meganrogge commented on Nov 3, 2025

    @meganrogge
    Collaborator
  7. garretwilson commented on Nov 5, 2025

    @garretwilson
    Author

    I cannot reproduce …

    I've found an easy way for you to reproduce this with step-by-step instructions. It happens with commands that produce a lot of output when the terminal panel is maximized. It would appear that VS Code incorrectly "remembers" the small size of the terminal before it was maximized.

    Follow these steps.

    1. Open a directory/workspace.
    2. Open the terminal. Ensure that the terminal is in non-maximized mode (i.e. at the bottom of the screen) and in Bash.
    3. Execute this Bash command: seq 1 1000
    4. Invoke the VS Code command workbench.action.toggleMaximizedPanel (View: Toggle Maximized Panel). The panel will suddenly look like this:
      +-----+
      |.....|
      |.....|
      |.....|
      |     |
      |     |
      |     |
      |     |
      |     |
      |     |
      +-----+
      
    5. Already you can suspect there might be a problem, because there was no need to have added all that blank space. Now scroll the history back so that you can see the earlier numbers it printed:
      +-----+
      |.....|
      |.....|
      |.....|
      |.....|
      |.....|
      |.....|
      |.....|
      |.....|
      |.....|
      +-----+
      
    6. Now type any key on the keyboard. (x will do nicely.) VS Code will scroll the history back up, leaving a huge amount of blank space:
      +-----+
      |.....|
      |.....|
      |.....|
      |     |
      |     |
      |     |
      |     |
      |     |
      |     |
      +-----+
      

    You should have reproduced the issue at this point.

    (This especially gets in the way on a large monitor. Please don't try to reproduce this on a 1024 x 768 monitor, for example.)

  8. added
    terminal
    and removed
    info-needed
    on Nov 5, 2025
  9. garretwilson commented on Dec 1, 2025

    @garretwilson
    Author

    Can you provide an update on this? I have provided simple, detailed steps for reproducing. Can you at least acknowledge the issue and provide an indication of when it could be addressed? Feedback to a paying customer would be welcome here. Thank you.

  10. meganrogge commented on Dec 1, 2025

    @meganrogge
    Collaborator

    Cannot reproduce, thus closing.

    demo.mov
  11. 6 remaining items

  12. garretwilson commented on Dec 1, 2025

    @garretwilson
    Author

    Megan Rogge (@meganrogge) , in your illustration of the steps you took, I see that when you use View: Toggle Maximized Panel in Step 4, you get a maximized panel but the contents still fill the screen vertically. That is where the behavior is differing.

    See this screen shot of what happens when I maximize the panel. (Part of the terminal prompt line has been snipped out for sharing here; that is not related to this bug.)

    Image

    You'll see that as soon as I maximize the terminal, it moves up all the history. It almost seems as if it doesn't realize that the vertical height has changed. That would explain why it keeps shifting things up as soon as I type a character, even after I manually scroll the history back down.

  13. added
    bug
    terminal-shell-pwsh
    confirmed
    and removed on Dec 8, 2025
  14. garretwilson commented on Jan 20, 2026

    @garretwilson
    Author

    Anthony Kim (@anthonykim1) can you confirm this is getting attention and priority? This really gets in the way, especially because the effective viewport is very small when a very small terminal is maximized.

  15. garretwilson commented on Feb 6, 2026

    @garretwilson
    Author

    Anthony Kim (@anthonykim1) could you please provide an update on this bug? Thank you.

  16. matt-condon commented on Mar 24, 2026

    @matt-condon

    I have the same problem and it makes it very annoying to use CLI tools in the integrated terminal

  17. RagingFlames commented on Aug 10, 2026

    @RagingFlames

    I have this exact problem across multiple computers and operating systems.

  18. AndrewStopchenko-SO commented on Aug 10, 2026

    @AndrewStopchenko-SO

    Same problem with same steps to reproduce. Bash terminal (Git for Windows).

    I have just reproduced this with VSCode v1.132.0 (stable) on a no-extensions Profile, with the Powershell (7.6.4):

    • Resize the bottom panel where the Terminal resides so that the height of the terminal (minimized state) shows 10 rows (while resized, it shows a hint with {cols}x{rows}).
    • run ipconfig or some other command that produces more than 10 rows of output.
    • run the "View: Toggle Maximized Panel" command (go to maximized state) - either via the Command Panel, or via a keyboard shortcut.
      • at this step, the height of the Terminal changes to 56 rows in my case.
      • the existing output jumps upwards, showing exactly 10 rows of the output (as it was in minimized state), with the input prompt underneath those.
      • as correctly stated, we can scroll up manually to see more of the scrollback history, but, as soon as anything is typed, the input prompt line jumps back to the [10visibleRowsBeforeResize + 1] row again.
    Image
  19. pkoch-aiml commented on Aug 26, 2026

    @pkoch-aiml

    I am also still experiencing this bug. This should be treated as a foundational break in the terminal's functionality; the impairment it causes while using the terminal is enormous.

  20. megangodwin commented on Sep 30, 2026

    @megangodwin

    I am also experiencing this bug and finding it makes the terminal worthless. I'm encountering the issue using pwsh terminal. I've tried changing the Sticky scroll settings because that's very much what it looks like based on the setting's description, but there's no change in behaviour enabled or disabled. I don't find that you need a maximised terminal window for this, either.

  21. garretwilson commented on Sep 30, 2026

    @garretwilson
    Author

    Anthony Kim (@anthonykim1) could you please provide an update on this bug? Thank you.

    Calling Anthony Kim (@anthonykim1) … can you give us a status update on this ticket? I'm not sure any of these comments have been getting through to you, as it's been over half a year with still no reply from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugconfirmedterminal-shell-git-bashterminal-shell-pwsh

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions