Skip to content

Commit 3846f8f

Browse files
authored
Kill active pi process on retry errors
1 parent 9cb31d2 commit 3846f8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github-minimum-intelligence/lifecycle/local-chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ async function runTurn(
985985
return { thread: updated, reply, rawJsonl };
986986
} catch (err) {
987987
spinner?.stop();
988-
activePiProcess = null;
988+
cleanup();
989989
lastErr = err as Error;
990990
if (attempt < maxAttempts) {
991991
console.log(" " + c.yellow(`⟳ Retry ${attempt + 1}/${maxAttempts} after error: ${(err as Error).message}`));

0 commit comments

Comments
 (0)