Skip to content

Commit 0b0b7da

Browse files
committed
fix run notification handler type
1 parent accf9f7 commit 0b0b7da

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/cli-v3/src/entryPoints/managed-run-controller.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,15 @@ class ManagedRunController {
401401
this.socket.on("run:notify", async ({ version, run }) => {
402402
console.log("[ManagedRunController] Received run notification", { version, run });
403403

404+
if (!this.runFriendlyId) {
405+
logger.debug("[ManagedRunController] Ignoring notification, no local run ID", {
406+
runId: run.friendlyId,
407+
currentRunId: this.runFriendlyId,
408+
currentSnapshotId: this.snapshotFriendlyId,
409+
});
410+
return;
411+
}
412+
404413
if (run.friendlyId !== this.runFriendlyId) {
405414
console.log("[ManagedRunController] Ignoring notification for different run", {
406415
runId: run.friendlyId,

0 commit comments

Comments
 (0)