From 94f8b6c16d025c4d3cf857ec541c3931b1262dde Mon Sep 17 00:00:00 2001 From: nghequyettien Date: Mon, 27 Jul 2026 21:09:59 +0700 Subject: [PATCH] fix(miner): add blocked_own_open_pr to AttemptCliResult union The attempt-cli own-open-PR idempotency guard has constructed and emitted this outcome since #8808, but AttemptCliResult never declared it, so onResult consumers typed against the union silently lost the shape (existingPullRequestNumber included). --- packages/loopover-miner/lib/attempt-cli.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/loopover-miner/lib/attempt-cli.ts b/packages/loopover-miner/lib/attempt-cli.ts index 483ec9f80e..7410985ece 100644 --- a/packages/loopover-miner/lib/attempt-cli.ts +++ b/packages/loopover-miner/lib/attempt-cli.ts @@ -98,6 +98,7 @@ type CommonAttemptResultFields = { export type AttemptCliResult = | (CommonAttemptResultFields & { outcome: "dry_run" }) | (CommonAttemptResultFields & { outcome: "blocked_rejection_signaled"; reason: string }) + | (CommonAttemptResultFields & { outcome: "blocked_own_open_pr"; reason: string; existingPullRequestNumber: number }) | (CommonAttemptResultFields & { outcome: "blocked_worktree_preparation_failed"; reason: string }) | (CommonAttemptResultFields & { outcome: "blocked_infeasible";