Seed explicit empty partial and complete captures for UI review

This commit is contained in:
2026-10-19 00:00:12 +01:00
parent 087e0cb5b5
commit 51881cb4b3
@@ -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)
}