fix: verify branch follower reuse plan consumption

This commit is contained in:
Codex
2026-07-04 07:06:32 +00:00
parent c987ded378
commit 4e8c572e10
2 changed files with 305 additions and 10 deletions
+2 -3
View File
@@ -43,11 +43,10 @@ export async function runBranchFollowerGate(registry: BranchFollowerRegistry, fo
timedOut: command.timedOut,
elapsedMs: Date.now() - startedAt,
parseError: parsed === null ? "stdout-json-parse-failed" : null,
stdoutTail: ok ? "" : redactText(tailText(command.stdout, 1600)),
stdoutTail: parsed === null ? redactText(tailText(command.stdout, 1600)) : "",
stderrTail: ok ? "" : redactText(tailText(command.stderr, 1200)),
},
parsedDownstreamCliOutput: false,
next: { gate: `bun scripts/cli.ts cicd branch-follower gate --follower ${follower.id} --gate ${options.gate} --json` },
};
}
@@ -63,7 +62,7 @@ function gateJobManifest(registry: BranchFollowerRegistry, follower: FollowerSpe
"tmpdir=$(mktemp -d)",
"cleanup() { rm -rf \"$tmpdir\"; }",
"trap cleanup EXIT INT TERM",
nativeCicdScriptLoadShell(["branch-follower-gate.sh", "branch-follower-gate.mjs", "reuse-config-summary.mjs"]),
nativeCicdScriptLoadShell(["branch-follower-gate.sh", "branch-follower-gate.mjs", "reuse-config-summary.mjs", "plan-artifacts.mjs"]),
"\"$tmpdir/branch-follower-gate.sh\"",
].join("\n");
return {