Shared node changes rebuild the flows whose published copy uses them, not their drafts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
2026-10-14 23:34:47 +02:00
co-authored by Claude Opus 5.5
parent f8d14be8e6
commit 1735a3651e
3 changed files with 35 additions and 4 deletions
+2 -1
View File
@@ -837,7 +837,8 @@ class FlowController:
async def reload_lib_users(self, ref: str) -> list[str]:
"""Rebuild the flows running a shared node whose source has changed."""
flows = sorted({usage.split(".", 1)[0] for usage in self.store.usages(ref)})
usages = self.store.usages(ref, draft=False)
flows = sorted({usage.split(".", 1)[0] for usage in usages})
for flow in flows:
await self.reload_flow(flow)
return flows