From f17d5d8f6a05172d5caa37bd6075dfd460e80835 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 10 May 2026 12:30:07 +0000 Subject: [PATCH] fix(pipeline): persist inferred body assets at save so edges survive page reload --- .../assets/AssetGraph/AssetGraphDetailsPane.svelte | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/assets/AssetGraph/AssetGraphDetailsPane.svelte b/frontend/src/lib/components/assets/AssetGraph/AssetGraphDetailsPane.svelte index c35102582b..0407f215ff 100644 --- a/frontend/src/lib/components/assets/AssetGraph/AssetGraphDetailsPane.svelte +++ b/frontend/src/lib/components/assets/AssetGraph/AssetGraphDetailsPane.svelte @@ -355,7 +355,17 @@ is_template: false, tag: script.tag, kind: script.kind as Script['kind'] | undefined, - lock: undefined + lock: undefined, + // Inferred body assets — without this the backend's + // `clear_static_asset_usage` + reinsert at deploy time + // would write zero asset rows for the script (the spread + // `...script` doesn't carry inferAssets results, those + // live on `liveBodyAssets`). Result on a deployed script + // with a CREATE TABLE / writeS3File body: no edges from + // the script to its outputs in the asset graph until the + // user re-selects it client-side. Same shape the full + // /scripts/edit page sends. + assets: (liveBodyAssets ?? []) as any } }) sendUserToast(`Saved ${script.path}`)