You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Terminal keeps scrolling up when typing, leaving a mostly blank panel. #274816
bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberterminal-shell-git-bashAn issue in the terminal specific to git bash on Windows, including shell integrationterminal-shell-pwshAn issue in the terminal specific to PowerShell, including shell integration
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.
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'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.
Open a directory/workspace.
Open the terminal. Ensure that the terminal is in non-maximized mode (i.e. at the bottom of the screen) and in Bash.
Execute this Bash command: seq 1 1000
Invoke the VS Code command workbench.action.toggleMaximizedPanel (View: Toggle Maximized Panel). The panel will suddenly look like this:
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:
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.
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.)
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.
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.
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.
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.
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.
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.
bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberterminal-shell-git-bashAn issue in the terminal specific to git bash on Windows, including shell integrationterminal-shell-pwshAn issue in the terminal specific to PowerShell, including shell integration
Activity
meganrogge commentedon Nov 3, 2025
I'm not sure what you mean. Maybe a gif would help?
garretwilson commentedon Nov 3, 2025
Here is my terminal panel, filling the application vertically because I used the
workbench.action.toggleMaximizedPanelcommand: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:
meganrogge commentedon Nov 3, 2025
I cannot reproduce, so will need a gif.
garretwilson commentedon Nov 3, 2025
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.
meganrogge commentedon Nov 3, 2025
https://gifcap.dev/
garretwilson commentedon Nov 5, 2025
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.
seq 1 1000workbench.action.toggleMaximizedPanel(View: Toggle Maximized Panel). The panel will suddenly look like this:xwill 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.)
garretwilson commentedon Dec 1, 2025
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.
meganrogge commentedon Dec 1, 2025
Cannot reproduce, thus closing.
demo.mov
6 remaining items
garretwilson commentedon Dec 1, 2025
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.)
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.
garretwilson commentedon Jan 20, 2026
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.
garretwilson commentedon Feb 6, 2026
Anthony Kim (@anthonykim1) could you please provide an update on this bug? Thank you.
matt-condon commentedon Mar 24, 2026
I have the same problem and it makes it very annoying to use CLI tools in the integrated terminal
RagingFlames commentedon Aug 10, 2026
I have this exact problem across multiple computers and operating systems.
AndrewStopchenko-SO commentedon Aug 10, 2026
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):{cols}x{rows}).ipconfigor some other command that produces more than 10 rows of output."View: Toggle Maximized Panel"command (go to maximized state) - either via the Command Panel, or via a keyboard shortcut.[10visibleRowsBeforeResize + 1]row again.pkoch-aiml commentedon Aug 26, 2026
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.
megangodwin commentedon Sep 30, 2026
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.
garretwilson commentedon Sep 30, 2026
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.