Skip to content

Commit 5c8f3d8

Browse files
authored
Merge pull request #13 from japer-technology/copilot/fix-orphaned-processes-retry
Prevent orphaned pi processes on retry errors
2 parents 9cb31d2 + 3846f8f commit 5c8f3d8

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)