Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix([issue-2993]): stamp imported packaging on synthesized redraw runs too
[._.]/ Adam Eivy3a731bf02f0a
diff --git a/server/services/sprites/importer.js b/server/services/sprites/importer.jsindex d028198796..7da0473623 100644--- a/server/services/sprites/importer.js+++ b/server/services/sprites/importer.js@@ -163,7 +163,7 @@ const ASSET_REF = /\.(png|gif|json)$/i;// excluded below — ~5× the bytes of the clip they were extracted from, and// re-derivation re-extracts them on demand. (The name itself lives in paths.js —// the importer, the postprocess, and the walk service all key on it.)-const SOURCE_CLIP_REF = new RegExp(`${RUN_DIR_MATCH.source}/generated/source-video\\.mp4$`);+const SOURCE_CLIP_REF = new RegExp(`${RUN_DIR_MATCH.source}/generated/${SOURCE_CLIP_NAME.replace('.', '\\.')}$`);const EXCLUDED_RUN_SEGMENTS = /(^|\/)(raw|frames|review)\//;// Free-text log fields in run records can contain path-looking strings that// were never assets — don't traverse them.diff --git a/server/services/sprites/walk.js b/server/services/sprites/walk.jsindex 61965c800a..4709b9e5d0 100644--- a/server/services/sprites/walk.js+++ b/server/services/sprites/walk.js@@ -439,6 +439,14 @@ async function loadRedrawRun(recordId, direction, entry) {// manifest (frames[] + alignment), and approve/trim resolve it as one. A// redraw manifest is a different schema, so it gets a distinct field.redrawManifest: manifestRel,+ // …which is also why the flag `normalizeRunAssetPaths` stamps off+ // `postprocessManifest` has to be set explicitly here: a synthesized redraw+ // run never passes through that normalizer, so without this it reads as+ // PortOS-owned once the frozen walk set is gone, and the client would offer a+ // Reopen the server refuses (a redraw entry names no run dir, so it has no+ // clip to re-derive from — this is the pioneer `east` shape).+ ...(isSourcePipelinePath(entry.runManifest) || isSourcePipelinePath(entry.runPath)+ ? { importedPackaging: true } : {}),stripPreview: {stripPath,frameCount,diff --git a/server/services/sprites/walk.test.js b/server/services/sprites/walk.test.jsindex e035151fca..c2431461ba 100644--- a/server/services/sprites/walk.test.js+++ b/server/services/sprites/walk.test.js@@ -1445,6 +1445,10 @@ describe('getWalkState', () => {status: 'approved',kind: 'imported-redraw-walk-cycle',redrawManifest: REDRAW_MANIFEST_REL,+ // A redraw entry names no run directory, so it has no clip to re-derive+ // from and the server refuses to reopen it. The flag is what still says+ // so once the frozen walk set — the client's other signal — is gone.+ importedPackaging: true,stripPreview: {stripPath: 'imagegen/v19/clean-alpha.png',frameCount: 12,