fix: reject dry-run dispatch as continuity receipt

This commit is contained in:
Eve
2026-04-24 14:17:29 +08:00
parent e6261fe2c0
commit 37f26727c5
2 changed files with 10 additions and 7 deletions

View File

@@ -355,12 +355,7 @@ function buildApprovedPlanContinuityInput(wrapperResult: any, autoChainPlanResul
? wrapperResult.replyClosureState
: (wrapperResult?.handoff?.mode === "button_path" ? "waiting_user" : "completed");
const dispatchReceipt = wrapperResult?.dispatchReceipt ?? (autoChainPlanResult?.dispatchMode && autoChainPlanResult.dispatchMode !== "no_dispatch"
? {
dispatchMode: autoChainPlanResult.dispatchMode,
derivedAction: autoChainPlanResult.derivedAction,
}
: null);
const dispatchReceipt = wrapperResult?.dispatchReceipt ?? null;
return {
planId: wrapperResult?.planId ?? "hook-preflight-approved-plan",