← Back to Pull requests

Hover: restore scrolling for long content #331439

Closed
unknown closed this pull request without merging on Aug 28, 2026 22:01 UTC
View on GitHub
unknown unknown commented on Aug 18, 2026 08:32 UTC
Author

Fixes #215972
Fixes #316535
Fixes #319825
Fixes #324038
Fixes #325545
Fixes #327517

Summary

Long workbench hover content, including Source Control Graph commit details and Terminal environment information, could exceed the hover height without making the content node scrollable. The outer hover clipped the overflow, which made metadata and action rows unreachable.

HoverWidget.layout() clears the content node's previous maxHeight before recalculating the hover dimensions. The layout previously restored a height constraint only on the outer hover container, so the DomScrollableElement content kept its full height and did not expose an internal scroll range.

This change:

  • clears the outer hover's previous height constraint before measuring its natural layout;

  • reserves space for borders and fixed status, action, and hint rows;

  • constrains the scrollable content to the remaining available hover height;

  • preserves the existing vertical scrollbar padding behavior once content overflows; and

  • keeps short hover content non-scrollable.
  • The fix is implemented in the shared hover widget so all workbench hover consumers receive consistent overflow behavior.

    Verification

  • HoverService unit suite on current main with this change: 37 passing

  • Pre-commit hygiene: passed for both changed files

  • Manually verified with a 40-line commit body in Source Control Graph:

  • - content viewport: 400 px
    - content scroll height: 931 px
    - mouse-wheel input increased scrollTop from 0 to 50
    - metadata and the final commit-message lines are reachable through the hover scrollbar

    Screenshot

    Before

    <img width="1778" height="1246" alt="Source Control Graph hover before the fix" src="https://github.com/user-attachments/assets/be93cfc0-3fce-418a-815e-e221e278d7d7" />

    After

    <img width="1638" height="984" alt="Source Control Graph hover after the fix" src="https://github.com/user-attachments/assets/5f6533cb-6ac4-49ec-aa9b-02dd3d5c785f" />

    Diff: 248 lines (+186 / -62) across 3 files Reviewer: ktsoator Review duration: 15209m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 248 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #331439"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 38.9% (MEDIUM) · Higher = larger blast radius
    38.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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.4% · Safe to merge
    15.4%