← Back to Pull requests

feat(web): step between commits in the diff panel #31505

Open
unknown opened this pull request with 317 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 05, 2026 14:28 UTC
Author

Reviewing a branch one commit at a time meant reopening the scope menu, entering the Commits submenu and picking the next row for every step.

When a commit is selected, the diff header now shows a compact ‹ sha⌄ › control. The arrows move to the older and newer commit in the branch list and disable at either end. The SHA opens the same commit list as the Commits submenu, so any commit is one click away. Both menus render from one shared list. The code host link for each commit stays on its row in that list.

On narrow panels the header keeps the commit subject visible by using the existing compact layout. Proposal #31564 follows #6924.

Browser verification

I compared main at 58a4e59962 with 0cec2d6844 in the web client on macOS. I opened a completed Replay thread on a feature branch three commits ahead of main, chose Diff → scope → Commits → Draft notes, and expanded notes.txt. On main, changing commits required reopening the scope menu. On the PR, Previous reached the oldest commit and disabled. Next stepped through the middle commit to the newest and disabled. The header dropdown returned directly to the middle commit. I checked both viewport sizes.

| Viewport | Before | After | Header menu | Recording |
| --- | --- | --- | --- | --- |
| 1280 × 800 | Before | After | Commit list | Watch |
| 700 × 800 | Before | After | Commit list | Watch |

!Selected middle commit with notes.txt expanded

vp run check:changed upstream/main passed, including all 14 DiffPanel browser tests.

Updated and verified with GPT-6.2-Astra in Codex.

Diff: 317 lines (+237 / -80) across 3 files Reviewer: sssilvar Review duration: 36056m
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.40) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 317 lines diff across 3 files
0.40
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
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.345
Shallow Review Depth shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #31505"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.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: 40.4% (MEDIUM) · Higher = larger blast radius
40.4%
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: 46.7% · Lower = rushed or shallow review
46.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: 21.5% · Safe to merge
21.5%