← Back to Pull requests

feat(source-control): T3's pull requests panel and thread details rows (W35, D1281–D1283) #240

Open
unknown opened this pull request with 321 lines diff across 4 files
View on GitHub
unknown unknown commented on Oct 23, 2026 11:00 UTC
Author

W35, first slice: T3's right panel of a thread's pull requests and its pull request rows in the thread details panel.

Decisions

  • D1281 — the pull requests panel (app.panel jhin.source-control.pull-requests-panel, route panel pull-requests, its own chunk): rows by chain with T3's glyphs, tooltips, the "Actions for #N" menu (Copy link, Open, Watch for changes / Stop watching, Unlink from thread, also on right click), the empty state and the footer.

  • D1282 — ways in: client command pull-requests.show ("Show linked pull requests", in the palette) and the card's badge of a stack or several links (T3's opensList).

  • D1283 — the thread details panel's pull request rows (chat.thread.details jhin.source-control.pull-requests): the current one, "Show N more" / "Show less", "Stop watching #N", T3's tooltip.
  • What is left (author, diff stat, review decision, speed actions, the details rows' Merge/Ready/Fix/Resolve, proactive opening, T3's tab strip) is in source-control.md's Deferred list.

    Also: the thread details row styles move from plugins/chat/lineage.tsx to apps/web/src/lib/thread-details-styles.ts (lineage re-exports them), and pullRequestListLines joins lib/pull-request.ts (the badge's tooltip uses it too).

    Evidence

    $ vp test run apps/web/test/source-control.test.ts apps/web/test/thread-lineage.test.ts apps/web/test/lineage-list.browser.test.tsx apps/web/test/source-control.browser.test.tsx apps/web/test/pull-requests-panel.browser.test.tsx apps/web/test/orchestration-view.test.ts
     Test Files  6 passed (6)
          Tests  100 passed (100)
    
    $ vp run --filter @jhin/web typecheck     # clean
    $ npx knip --no-config-hints              # clean
    
    $ vp run --filter @jhin/web build
    dist/assets/pull-request-rows-CktimzmU.js       7.66 kB │ gzip:   3.22 kB
    dist/assets/pull-requests-panel-CK5ieds0.js    14.28 kB │ gzip:   5.98 kB
    dist/assets/index-5nxLxIaP.js                 434.24 kB │ gzip: 136.79 kB   (entry, under D440's 500 kB)
    
    $ npx playwright test tests/git-actions.spec.ts -g "D1281"
      1 passed (50.3s)
    

    The E2E clicks the stack's badge on the card, which opens the panel, opens a row's menu, then stops the watch from the thread details rows:

    !Pull requests panel

    !Thread details rows

    🤖 Generated with Claude Code

    Diff: 321 lines (+240 / -81) across 4 files Reviewer: claude[bot] Review duration: 8m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 321 lines diff across 4 files
    0.42
    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 #240"
    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: 41.9% (MEDIUM) · Higher = larger blast radius
    41.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: 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: 22.4% · Safe to merge
    22.4%
    Repository