chore: bump version to 0.1477

Location: Ko Samui

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-02-04 07:24:32 +01:00
co-authored by Claude Opus 4.5
parent 99fa04df29
commit 8f0bbf33d6
27 changed files with 1098 additions and 448 deletions
+9 -6
View File
@@ -253,15 +253,18 @@ export class PlanOrchestrator {
return md;
}
cancel(): void {
async cancel(): Promise<void> {
this.cancelled = true;
// Stop all running sessions and await cleanup to prevent PTY process leaks
const stopPromises: Promise<void>[] = [];
for (const session of this.runningSessions) {
try {
session.stop();
} catch (err) {
console.error('[PlanOrchestrator] Failed to stop session during cancel:', err);
}
stopPromises.push(
session.stop().catch((err) => {
console.error('[PlanOrchestrator] Failed to stop session during cancel:', err);
})
);
}
await Promise.all(stopPromises);
this.runningSessions.clear();
}