diff --git a/run/core/deployment-orchestrator.ts b/run/core/deployment-orchestrator.ts index 8cf27bd..2adbbbe 100644 --- a/run/core/deployment-orchestrator.ts +++ b/run/core/deployment-orchestrator.ts @@ -128,7 +128,7 @@ export class DeploymentOrchestrator { // Kill orphaned processes on expected ports (from manual starts, Claude Code sessions, etc.) if (this.environment === 'dev') { - await this.cleanupOrphanedPorts(deploymentOrder); + await this.cleanupOrphanedPorts(); } // Start each deployment in dependency order @@ -610,10 +610,9 @@ export class DeploymentOrchestrator { * 2. If still held, send SIGKILL and wait up to 2 seconds * 3. Log results and continue even if cleanup fails */ - private async cleanupOrphanedPorts(_deploymentOrder: string[]): Promise { - // For group deployments (like _platform), the deploymentOrder may only contain - // the group itself which has no services. We need to check ALL deployments - // in the registry to find orphaned processes on any expected port. + private async cleanupOrphanedPorts(): Promise { + // Check ALL deployments in the registry for orphaned processes on expected ports. + // This handles group deployments (like _platform) which have no direct services. const allDeployments = this.deploymentRegistry.getAll(); const orphanedPorts: Array<{ port: number; pid: number; serviceId: string }> = [];