Pause output while the user holds the scrollbar thumb #20926
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.39) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 258 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Real PR Conversation Timeline
1 comments
"Review active on #20926"
general
weight: 0.35
DHowett
Summary of the Pull Request
Holding the scrollbar thumb now holds the text. With a full scrollback (9001 rows by default), every new line evicts the oldest row, so once the view reaches the top of the buffer the text under a held thumb keeps moving. During a flood that takes well under a second. While the thumb is held, ControlCore stops reading connection output and the program blocks on its writes through normal pipe backpressure, like conhost does in mark mode. Releasing the thumb resumes it.
Stacked on #20784.
References and Relevant Issues
#20784
Detailed Description of the Pull Request / Additional comments
TermControl pauses on
ThumbTrackand resumes onEndScroll. Losing pointer capture ends the drag withEndScrolltoo. The connection's reader thread waits before it takes the terminal lock, so the UI thread never waits on it. Close, connection swaps and Detach (tear-out) all resume, and a 30 s failsafe resumes on its own if a release is ever missed. Output raised on the UI thread itself (e.g. EchoConnection) is never blocked. Only the thumb pauses output; scrolling up with the wheel doesn't.AI disclosure: developed with GitHub Copilot (an AI coding agent) at my direction, including the tests and this description.
Validation Steps Performed
.\build\scripts\Run-Tests.ps1 -MatchPattern 'Control.Unit.Tests.dll' -Platform ARM64 -Configuration Debug: 33/33 passed, including 2 new tests: output written from another thread isn't applied until resume, and Close releases a paused writer. The Close test fails without the resume in_closeConnection. Checked by hand in Terminal Dev (ARM64 Debug) with a continuous output flood and the default 9001-row scrollback: holding the thumb holds the text, and output picks up again on release.PR Checklist
- If checked, please file a pull request on our docs repo and link it here: #xxx