From 51881cb4b3271eb1d48c9024f299ffe5ab3d207d Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Mon, 19 Oct 2026 00:00:12 +0100 Subject: [PATCH] Seed explicit empty partial and complete captures for UI review --- internal/server/ready_attention_fixture_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/server/ready_attention_fixture_test.go b/internal/server/ready_attention_fixture_test.go index 1a003158..35874083 100644 --- a/internal/server/ready_attention_fixture_test.go +++ b/internal/server/ready_attention_fixture_test.go @@ -51,6 +51,16 @@ func TestExportReadyAttentionReviewFixture(t *testing.T) { if status == "failed" { outcome = "error" } + capture := &protocol.StageFileChanges{Status: "complete", Files: []protocol.FileChange{}} + if status == "failed" { + capture.Status, capture.Skipped, capture.Diagnostic = "partial", 2, "Controlled partial fixture: files skipped." + } + if err := store.BeginStep(ctx, id, 1, "gate", map[string]any{"prompt": "Controlled fixture step"}); err != nil { + t.Fatal(err) + } + if err := store.FinishStep(ctx, id, protocol.RunStep{Sequence: 1, Stage: "gate", Status: "completed", Outcome: outcome, FileChanges: capture}); err != nil { + t.Fatal(err) + } if err := store.FinishRun(ctx, id, status, outcome, "Controlled fixture", nil); err != nil { t.Fatal(err) }