← Back to Pull requests

feat(web): recall sent chat prompts #469

Closed
unknown closed this pull request without merging on Nov 10, 2026 02:47 UTC
View on GitHub
unknown unknown commented on Nov 09, 2026 18:52 UTC
Author

改动

混合聊天输入框为空时按 ↑ 找回本会话已发送的文字,用 ↑ / ↓ 浏览。编辑后保留常规草稿行为,由用户发送。

用户故事 US-Q07。

T3 Code 设计参考

验证

ChatView 的 28 项浏览器测试、前端架构与文档门禁通过。验证了方向键找回、清空和草稿保护。

在文字开头按 ↑、末尾按 ↓ 浏览,回看时收起斜杠命令菜单。聊天浏览器用例覆盖长提示词的光标移动和斜杠命令回看。

界面证据

隔离实例使用同一组演示会话、假 Agent 与工作区文件。截图覆盖桌面、平板和手机 Chromium,含浅色和深色。触屏使用浏览器模拟。

| 视口 | 修改前 | 修改后 |
| --- | --- | --- |
| 桌面 1280 × 900 · 浅色 | !桌面 1280 × 900 · 浅色 修改前 | !桌面 1280 × 900 · 浅色 修改后 |
| 桌面 1280 × 900 · 深色 | !桌面 1280 × 900 · 深色 修改前 | !桌面 1280 × 900 · 深色 修改后 |
| 平板 768 × 800 · 浅色 | !平板 768 × 800 · 浅色 修改前 | !平板 768 × 800 · 浅色 修改后 |
| 平板 768 × 800 · 深色 | !平板 768 × 800 · 深色 修改前 | !平板 768 × 800 · 深色 修改后 |
| 手机 390 × 844 · 浅色 | !手机 390 × 844 · 浅色 修改前 | !手机 390 × 844 · 浅色 修改后 |
| 手机 390 × 844 · 深色 | !手机 390 × 844 · 深色 修改前 | !手机 390 × 844 · 深色 修改后 |

桌面 1280 × 900 浅色,使用相同演示数据。

!操作演示

Diff: 322 lines (+241 / -81) across 4 files Reviewer: mzdluo123 Review duration: 474m
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 322 lines diff across 4 files
0.42
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.346
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #469"
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: 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: 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: 16.6% · Safe to merge
16.6%