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

address review: track all ecosystem config modifications in needsPatch

Adam Eivy09151f5bb77c
diff --git a/server/services/pm2.js b/server/services/pm2.js
index de88228452..ab6a524f98 100644
--- a/server/services/pm2.js
+++ b/server/services/pm2.js
@@ -475,14 +475,18 @@ async function startFromEcosystemWindows(cwd, ecosystemFile, processNames, pm2Ho
}
// Ensure windowsHide and restart safety on all apps
- app.windowsHide = true;
+ if (!app.windowsHide) {
+ app.windowsHide = true;
+ needsPatch = true;
+ }
if (app.autorestart !== false && !app.max_restarts) {
app.max_restarts = 10;
+ needsPatch = true;
}
}
if (!needsPatch) {
- // All scripts are .js files, no patching needed
+ // No modifications needed — use original config as-is
return spawnPm2StartEcosystem(cwd, ecosystemFile, processNames, pm2Home);
}