Scrollbar is not showing "marks" until first-scroll-event happens if the profile has shell-integration #23422

Closed
opened 2026-01-31 08:41:44 +00:00 by claunia · 2 comments
Owner

Originally created by @wadabum on GitHub (Jul 7, 2025).

Windows Terminal version

1.22.11141.0 + 1.23.11752.0 (preview)

Windows build number

10.0.19045.0

Other Software

cmd/powershell5/powershell7/bash WITH shell-integration configured

Steps to reproduce

have "autoMarkPrompts": true,
have "showMarksOnScrollbar": true,
have "scrollbarState": "always", (not relevant, problem exists in all states here!)
have the profile correctly configured as detailed on https://github.com/MicrosoftDocs/terminal/blob/main/TerminalDocs/tutorials/shell-integration.md
have the launch-size configured to not cause any scroll-events on startup

Expected Behavior

a scrollbar mark to show after opening a new tab and pressing enter once

Note that this does work correctly if the shell used does NOT emit shell-integration tags! (so when the terminals self inserted enter is the only tag)

Actual Behavior

marks do not show up until "the end of the screen" is reached (what forces a scroll)

Notable: manually forcing the redraw (by using the mousewheel) does make all the marks from the past show up
(and then it again wont work until end-of-screen is reached/reforced)
Interestingly pageUp/down or "clicking the arrows on the scrollbar" do NOT make it work, only the mousewheel

Image

Originally created by @wadabum on GitHub (Jul 7, 2025). ### Windows Terminal version 1.22.11141.0 + 1.23.11752.0 (preview) ### Windows build number 10.0.19045.0 ### Other Software cmd/powershell5/powershell7/bash **WITH** shell-integration configured ### Steps to reproduce have `"autoMarkPrompts": true,` have `"showMarksOnScrollbar": true,` have `"scrollbarState": "always",` (not relevant, problem exists in all states here!) have the profile correctly configured as detailed on https://github.com/MicrosoftDocs/terminal/blob/main/TerminalDocs/tutorials/shell-integration.md have the launch-size configured to not cause any scroll-events on startup ### Expected Behavior a scrollbar mark to show after opening a new tab and pressing enter once **Note that this does work correctly if the shell used does **NOT** emit shell-integration tags! (so when the terminals self inserted enter is the only tag)** ### Actual Behavior marks do not show up until "the end of the screen" is reached (what forces a scroll) Notable: manually forcing the redraw (by using the mousewheel) does make all the marks from the past show up (and then it again wont work until end-of-screen is reached/reforced) Interestingly pageUp/down or "clicking the arrows on the scrollbar" do NOT make it work, only the mousewheel ![Image](https://github.com/user-attachments/assets/a0cb3ffa-2eda-4d73-b512-cad2e628c5c5)
Author
Owner

@DHowett commented on GitHub (Jul 9, 2025):

Hey, I just ran into this myself! I'm marking it up for investigation. Thanks!

@DHowett commented on GitHub (Jul 9, 2025): Hey, I just ran into this myself! I'm marking it up for investigation. Thanks!
Author
Owner

@DHowett commented on GitHub (Jul 10, 2025):

(Resizing also makes them appear!)

@DHowett commented on GitHub (Jul 10, 2025): (Resizing also makes them appear!)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23422