Sometimes maximized conhost/cmd windows have the bottom line(s) off the bottom of the screen #14210

Open
opened 2026-01-31 04:03:52 +00:00 by claunia · 2 comments
Owner

Originally created by @jazzdelightsme on GitHub (Jun 11, 2021).

Windows Terminal version (or Windows build number)

10.0.22117.0

Other Software

No response

Steps to reproduce

I am TS'ed to my dev machine at work. I maximize a [traditional conhost] cmd window (running razzle, then pwsh+PSReadLine on top of that). I disconnect, then reconnect later, and the cmd window is still maximized as expected. But sometimes the active prompt is below the visible portion of the window, usually by several lines--I can't see what I am typing while I type it; but when I hit [enter] and the buffer scrolls up, then I can see what I just typed. If I restore the window then re-maximize it, the problem is gone. The rest of the window UI looks fine (like the scrollbar on the right); the problem is not the outer window becoming the wrong size.

What should I gather to help troubleshoot this? It only happens sometimes, and I can't repro on-demand. Is there some low-impact tracing I can leave on, or should I just gather dumps of the associated processes?

Expected Behavior

I expect that when I reconnect to my TS session, and type into my maximized cmd window, I can see the text I am typing, as I type it.

Actual Behavior

The text I am typing is happening below the bottom of the cmd window--if I press enter a few times, it gets scrolled up into the part of the buffer I can see.

Originally created by @jazzdelightsme on GitHub (Jun 11, 2021). ### Windows Terminal version (or Windows build number) 10.0.22117.0 ### Other Software _No response_ ### Steps to reproduce I am TS'ed to my dev machine at work. I maximize a [traditional conhost] cmd window (running razzle, then pwsh+PSReadLine on top of that). I disconnect, then reconnect later, and the cmd window is still maximized as expected. But *sometimes* the active prompt is below the visible portion of the window, usually by several lines--I can't see what I am typing while I type it; but when I hit [enter] and the buffer scrolls up, then I can see what I just typed. If I restore the window then re-maximize it, the problem is gone. The rest of the window UI looks fine (like the scrollbar on the right); the problem is not the outer window becoming the wrong size. What should I gather to help troubleshoot this? It only happens *sometimes*, and I can't repro on-demand. Is there some low-impact tracing I can leave on, or should I just gather dumps of the associated processes? ### Expected Behavior I expect that when I reconnect to my TS session, and type into my maximized cmd window, I can see the text I am typing, as I type it. ### Actual Behavior The text I am typing is happening below the bottom of the cmd window--if I press enter a few times, it gets scrolled up into the part of the buffer I can see.
claunia added the Help WantedProduct-ConhostIssue-BugPriority-3Area-Interaction labels 2026-01-31 04:03:52 +00:00
Author
Owner

@jazzdelightsme commented on GitHub (Jun 11, 2021):

The conhost window is on my primary monitor, with the taskbar on the bottom... it's almost like part of conhost thinks the window size is equal to the workarea of the monitor before the taskbar got placed there (but the window chrome is fine).

@jazzdelightsme commented on GitHub (Jun 11, 2021): The conhost window is on my primary monitor, with the taskbar on the bottom... it's almost like part of conhost thinks the window size is equal to the workarea of the monitor before the taskbar got placed there (but the window chrome is fine).
Author
Owner

@jazzdelightsme commented on GitHub (Jun 11, 2021):

On today's repro, I noticed that it repro'ed for multiple fullscreen'ed conhost windows on the same monitor... and then, after another disconnect/reconnect cycle, they fixed themselves! (without me restoring/re-maximizing or otherwise twiddling the window state) I think this is more [circumstantial] evidence in favor of a "desktop recalc" fiddling with the work area of the monitor, and conhost getting juked/out-of-sync with reality.

@ekoschik what do you think?

@jazzdelightsme commented on GitHub (Jun 11, 2021): On today's repro, I noticed that it repro'ed for multiple fullscreen'ed conhost windows on the same monitor... and then, after another disconnect/reconnect cycle, they fixed themselves! (without me restoring/re-maximizing or otherwise twiddling the window state) I think this is more [circumstantial] evidence in favor of a "desktop recalc" fiddling with the work area of the monitor, and conhost getting juked/out-of-sync with reality. @ekoschik what do you think?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14210