Adding Touching Support #20989
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.50) × (1 − Review Confidence (0.39)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 579 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 45% · 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
Diff Size
diff_size
0.381
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #20989"
general
weight: 0.35
DHowett
Summary of the Pull Request
This pull request introduces enhanced touch interaction support for Windows Terminal and updates the GitHub Actions build workflow.
The changes include:
- Implements touch-based interaction with terminal content.
- Handles touch taps as left mouse button clicks.
- Supports long-press followed by dragging for text selection.
- Supports vertical touch dragging for scrolling terminal content.
- Handles horizontal dragging as text selection.
- Adds keyboard modifier support to the touch interaction response chain, allowing modifier-dependent mouse interactions to work with touch input.
- Updates
.github/workflows/build.yml.- Supports automated builds triggered by pushes, pull requests, and manual workflow dispatch.
- Provides selectable build artifact formats: RAW, Installer, and Both.
- Automates dependency restoration, compilation, packaging, and artifact publishing.
AI-assisted development disclosure:
AI tools were used in earlier development discussions and for technical exploration and troubleshooting. However, the subsequent implementation and additional modifications described in this pull request were independently developed by the author. AI assistance was also used to help prepare this pull request description.
References and Relevant Issues
No related issues are currently linked.
Detailed Description of the Pull Request / Additional comments
1. Touch Interaction Support
This change improves Windows Terminal usability on touch-enabled devices by extending the terminal's touch interaction handling.
Supported interactions include:
| Gesture | Behavior |
|---|---|
| Tap | Simulates a left mouse button click |
| Long press | Initiates text selection |
| Long press + drag | Selects terminal text |
| Vertical drag | Scrolls terminal content |
| Horizontal drag | Performs text selection |
Horizontal dragging currently prioritizes text selection over horizontal scrolling. This is a temporary implementation decision.
2. Keyboard Modifier Support for Touch Interactions
The touch interaction response chain has been extended to recognize and propagate keyboard modifier states.
This allows touch interactions to respect keyboard modifiers in the same way as their corresponding mouse interactions, preserving existing terminal interaction behaviors.
For example:
Ctrl + Left Clickopens a hyperlink in the terminal.Ctrl + Touch Tapnow provides the same behavior, allowing hyperlinks to be opened directly through touch input while holding Ctrl.This improvement makes touch interactions more consistent with existing mouse-based interactions and allows modifier-dependent functionality to work with touch input.
3. GitHub Actions Build Workflow
The existing build workflow has been modified at:
https://github.com/CaO-65536/terminal/blob/main/.github/workflows/build.yml
The workflow supports:
workflow_dispatch.-
raw: Raw application build output.-
installer: Installable MSIX package and required installation files.-
both: Both output formats.4. Development and AI Assistance
The implementation and subsequent modifications were independently developed by the author.
AI tools were used for earlier technical discussions, technical exploration, and troubleshooting. However, AI tools did not participate in the subsequent independent implementation work.
AI assistance was also used to help prepare this pull request description.
Validation Steps Performed
Testing results: The modified application has been tested on at least two devices using self-signed builds. No critical issues were observed, and the application meets normal usage requirements.
PR Checklist
- If checked, please file a pull request on our docs repo and link it here: #xxx