Skip to content

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

fix: match the platform path separator in the Slotstream in-flight check

Adam Eivy8c73d2931e6c
diff --git a/server/services/slotstreamModelManager.js b/server/services/slotstreamModelManager.js
index c2bf1df4b6..b420d6f6ac 100644
--- a/server/services/slotstreamModelManager.js
+++ b/server/services/slotstreamModelManager.js
@@ -338,7 +338,10 @@ export function isSlotstreamDownloadInFlight(path) {
if (!path || inFlight.size === 0) return false;
const target = String(path);
for (const modelDir of inFlight.keys()) {
- if (target === modelDir || target.startsWith(`${modelDir}/`)) return true;
+ // `sep`, not `/`: the sweep hands us paths built with `join`, so on Windows
+ // a hardcoded slash would never match and the GC would be free to unlink a
+ // shard that is still transferring.
+ if (target === modelDir || target.startsWith(`${modelDir}${sep}`)) return true;
}
return false;
}