Improve plan review UX with enriched rows, TUI filters, and execute gate.

Make review-plan easier to act on: Chinese risk labels, relative paths,
verdict/next-step footer, optional identity/analysis enrichment, grouping,
spot-check sampling, and structure preview. Extend the TUI with filters,
duplicate-group reject, and quality context. Persist review_context on
plan operations and add --require-review for confirmed execute.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
windyboy
2026-05-21 09:27:12 +08:00
co-authored by Cursor
parent c9d22d5136
commit 5f0b531269
13 changed files with 1050 additions and 61 deletions
+4
View File
@@ -104,6 +104,10 @@ def test_review_plan_generates_csv_summary_and_preview(tmp_path):
assert "source:" in result.output
assert "destination:" in result.output
assert "reason:" in result.output
assert "Verdict: BLOCKED" in result.output
assert "需人工判断" in result.output or "样片路径" in result.output
assert "Next steps:" in result.output
assert "apply-review" in result.output
assert output_csv.exists()
with open(output_csv, "r", encoding="utf-8", newline="") as f: