fix(FN-6035): fail execute on missing prepared worktree

This commit is contained in:
gsxdsm
2026-06-08 22:05:45 -07:00
parent 8d3b869ec1
commit fc8086c480
2 changed files with 33 additions and 3 deletions

View File

@@ -319,7 +319,7 @@ export function createPrimitivePromptLikeHandler(
const prepared = await primitives.prepareWorktree(primitiveCtx, context.task);
if (prepared.outcome !== "success" || !prepared.data) {
return {
outcome: prepared.outcome,
outcome: prepared.outcome === "success" ? "failure" : prepared.outcome,
value: prepared.value ?? "prepare-worktree-failed",
contextPatch: prepared.contextPatch,
};