Skip to content

Commit 3b890b0

Browse files
committed
fix(desktop): reset needsControllerReady after port-theft recovery restart
1 parent 65f8f8c commit 3b890b0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/desktop/main/services/launchd-bootstrap.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,9 @@ export async function bootstrapWithLaunchd(
785785
await launchd.installService(labels.controller, retryControllerPlist);
786786
await launchd.startService(labels.controller);
787787
await ensureRunning(labels.controller, "controller");
788+
// Controller was restarted — must wait for readiness again even if
789+
// it was previously healthy (attach path sets needsControllerReady=false).
790+
needsControllerReady = true;
788791
log(
789792
`[bootstrap] OpenClaw reassigned to port ${newPort}, controller restarted`,
790793
);

0 commit comments

Comments
 (0)