← Back to Pull requests

Adding Touching Support #20989

Closed
unknown closed this pull request without merging on Nov 28, 2026 03:00 UTC
View on GitHub
unknown unknown commented on Nov 28, 2026 02:53 UTC
Author

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:

  • Enhanced Touch Support

  • - 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.

  • GitHub Actions Build Workflow

  • - 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 Click opens a hyperlink in the terminal.

  • Ctrl + Touch Tap now 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:

  • Automatic builds on pushes and pull requests.

  • Manual execution through workflow_dispatch.

  • Selectable output formats:

  • - raw: Raw application build output.
    - installer: Installable MSIX package and required installation files.
    - both: Both output formats.
  • Automated dependency restoration and MSBuild compilation.

  • Artifact packaging and publishing.
  • 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

  • Built self-signed versions of the modified application.

  • Tested the application on at least two separate devices.

  • Verified that the modified terminal supports normal usage on the tested devices.

  • Tested touch interaction functionality in practical usage.

  • Verified that no critical issues were encountered during testing.

  • Reviewed and modified the GitHub Actions build workflow.
  • 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

  • Closes #xxx

  • Tests added/passed

  • Documentation updated

  • - If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)
  • Diff: 579 lines (+434 / -145) across 7 files Reviewer: DHowett Review duration: 6m
    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
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 45% · Reviewer familiarity: 35%
    38%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 38.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 49.9% (MEDIUM) · Higher = larger blast radius
    49.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 38.7% · Lower = rushed or shallow review
    38.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 30.6% · Safe to merge
    30.6%