mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 08:59:40 +02:00
chore: bump version to 0.1477
Location: Ko Samui Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user