Include workflow_id in all execution WebSocket messages (CORE-198) (#13684)

This commit is contained in:
Christian Byrne
2026-05-14 15:11:34 -07:00
committed by GitHub
parent 7a063e83a7
commit 4f6018982d
7 changed files with 398 additions and 21 deletions

View File

@@ -275,7 +275,11 @@ class PromptServer():
await self.send("status", {"status": self.get_queue_info(), "sid": sid}, sid)
# On reconnect if we are the currently executing client send the current node
if self.client_id == sid and self.last_node_id is not None:
await self.send("executing", { "node": self.last_node_id }, sid)
await self.send("executing", {
"node": self.last_node_id,
"prompt_id": getattr(self, "last_prompt_id", None),
"workflow_id": getattr(self, "last_workflow_id", None),
}, sid)
# Flag to track if we've received the first message
first_message = True