← Back to Pull requests

feat(chat): a sent message's file and skill chips, and a mentioned file beside the thread (W38, D1341–D1342) #242

Open
unknown opened this pull request with 284 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 23, 2026 11:01 UTC
Author

W38, slice 1 (docs/plans/t3-roadmap.md round 4): the chips of a sent message and a mentioned file's preview beside the thread, as T3 Code eb7b35ac shows them.

Decisions

  • D1341 — a user message shows the composer's file links ([name](path)) as T3's mention chip (Pierre icon, basename, path tooltip, "Preview <path>"), and a $name of one of the thread agent's skills as T3's skill chip (only shows, as T3's SkillInlineText). Unknown $names, code and links stay text. Skills are asked from agents.commands only while a message names one.

  • D1342 — a mentioned file opens in T3's right-hand file panel instead of D1003's dialog: app.panel jhin.chat.file-panel, route panel file with the path as its section (so it survives a reload). T3's file tab with "Close <name>", breadcrumbs (project, folders), D854's preview actions, the 1 MB notice, failure with "Try again". A lazy chunk of its own (D440). "View instructions" of a skill keeps the dialog.
  • What T3's file panel has beyond this (tabs, editing, explorer, "Open in", file chips in agent messages) is in t3-parity.md's Deferred list.

    Evidence

    !sent message chips and the file panel

    $ vp test run apps/web/test/composer-trigger.test.ts
     Test Files  1 passed (1)
          Tests  24 passed (24)
    
    $ vp test run --project browser apps/web/test/message-chips.browser.test.tsx apps/web/test/prompt-editor.browser.test.tsx
     Test Files  2 passed (2)
          Tests  43 passed (43)
    
    $ npx playwright test tests/composer.spec.ts -g "chips"
    [1/2] tests/composer.spec.ts:342:1 › shows T3's chips with their details: a file's preview and a skill's instructions
    [2/2] tests/composer.spec.ts:396:1 › shows a sent message's file and skill chips, and its file beside the thread
      2 passed (30.1s)
    
    $ vp run --filter @jhin/web typecheck   # clean
    $ vp check <changed files>              # 0 errors
    $ npx knip --no-config-hints            # clean
    $ vp run --filter @jhin/web build
    dist/assets/index-CinEbJpg.js   435.31 kB   (entry, D440 budget 500 kB)
    dist/assets/file-panel-vPjO3Tse.js         (the panel's own chunk)
    

    🤖 Generated with Claude Code

    Diff: 284 lines (+213 / -71) across 3 files Reviewer: claude[bot] Review duration: 8m
    All Vouch review confidence checks passed
    Residual risk 0.21 = 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 · 284 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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.338
    Real PR Conversation Timeline
    1 comments
    "Review active on #242"
    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: 39.7% (MEDIUM) · Higher = larger blast radius
    39.7%
    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.2% · Safe to merge
    21.2%
    Repository