← Back to Pull requests

fix(vscode): support reviewing question answers #2467

Open
unknown opened this pull request with 155 lines diff across 1 files
View on GitHub
unknown unknown commented on Jul 31, 2026 10:58 UTC
Author

Fixes #2350.

Summary

  • Keep AskUserQuestion selections on screen until explicit Next or Submit answers.

  • Preserve preset and multiple custom answers, per-question drafts, Back navigation, and the current upstream dialog behavior.

  • Block duplicate submissions and disable editing while the response is in flight.

  • Rebase onto current main and consolidate dialog assertions in the existing webview test suite.
  • Verification on current main

  • RED after rebase: the existing QuestionDialog tests exposed lost draft and submission behavior; the old React test path no longer resolved in the new Vitest project; its unique assertion now lives in the existing dialog suite.

  • GREEN: 20 focused tests; complete VS Code extension/webview suite 390/390 tests (22 files) under the normal user account.

  • VS Code extension and webview typechecks pass; production extension and webview builds pass; pre-commit oxlint checks pass.

  • Independent Codex high review found a missing visible label for a saved custom answer; fixed before push, focused tests rerun green.
  • AI assistance disclosure

    This patch and PR text were AI-assisted using OpenAI Codex. The contributor remains responsible for reviewing and understanding the submitted changes.

    Diff: 155 lines (+116 / -39) across 1 files Reviewer: ousamabenyounes Review duration: 176430m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.40) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 155 lines diff across 1 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%
    44%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.302
    Real PR Conversation Timeline
    1 comments
    "Review active on #2467"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.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.2% (MEDIUM) · Higher = larger blast radius
    40.2%
    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: 44.7% · Lower = rushed or shallow review
    44.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: 22.2% · Safe to merge
    22.2%