Skip to content

Commit d578a28

Browse files
runner: try --stop still asks approve, reject or keep
1 parent db42fca commit d578a28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎runner/scripts/try.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if (!finished) process.exit(1);
4040
console.log(`\n${(await runner.diff(sessionId)).stat}\n`);
4141

4242
let choice = flags.includes("--approve") ? "a" : flags.includes("--reject") ? "r" : "k";
43-
if (!flags.length && process.stdin.isTTY) {
43+
if (choice === "k" && process.stdin.isTTY) {
4444
const rl = createInterface({ input: process.stdin, output: process.stdout });
4545
choice = (await rl.question("approve, reject or keep? [a/r/k] ")).trim().toLowerCase()[0] ?? "k";
4646
rl.close();

0 commit comments

Comments
 (0)