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: fix watch glob, cursor style, temp file race, drive range

Adam Eivycb9110ad2e7c
diff --git a/client/src/components/FolderPicker.jsx b/client/src/components/FolderPicker.jsx
index 8f934164bc..3ec118d981 100644
--- a/client/src/components/FolderPicker.jsx
+++ b/client/src/components/FolderPicker.jsx
@@ -211,7 +211,7 @@ export default function FolderPicker({ value, onChange }) {
type="button"
onClick={handleSelect}
disabled={!currentPath || loading || !!error}
- className="flex items-center gap-2 px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white rounded-lg transition-colors disabled:opacity-50"
+ className="flex items-center gap-2 px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
>
<Check size={18} />
Select This Folder
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
index 158d1421e8..41f9180eb1 100644
--- a/ecosystem.config.cjs
+++ b/ecosystem.config.cjs
@@ -38,7 +38,7 @@ module.exports = {
HOST: '0.0.0.0'
},
watch: ['server'],
- ignore_watch: ['node_modules', '*.test.js'],
+ ignore_watch: ['node_modules', '**/*.test.js'],
max_memory_restart: '500M'
},
{
diff --git a/server/routes/scaffold.js b/server/routes/scaffold.js
index 270cfabaac..41404b67ac 100644
--- a/server/routes/scaffold.js
+++ b/server/routes/scaffold.js
@@ -58,8 +58,9 @@ router.get('/directories', asyncHandler(async (req, res) => {
// On Windows, include available drive letters so users can navigate between drives
let drives = null;
if (platform() === 'win32') {
+ // Only check common drive letters (C-Z) to avoid slow floppy/network drives (A-B)
drives = [];
- for (let i = 65; i <= 90; i++) {
+ for (let i = 67; i <= 90; i++) {
const letter = String.fromCharCode(i);
const drivePath = `${letter}:${sep}`;
try { if (existsSync(drivePath)) drives.push(drivePath); } catch { /* skip inaccessible drives */ }
diff --git a/server/services/pm2.js b/server/services/pm2.js
index 109562f72a..de88228452 100644
--- a/server/services/pm2.js
+++ b/server/services/pm2.js
@@ -499,7 +499,9 @@ async function startFromEcosystemWindows(cwd, ecosystemFile, processNames, pm2Ho
console.log(`🔧 Patched ${ecosystemFile} for Windows → ${tempFile}`);
return await spawnPm2StartEcosystem(cwd, tempFile, processNames, pm2Home);
} finally {
- // Await cleanup so the temp file isn't removed while PM2 may still be reading it
+ // spawnPm2StartEcosystem resolves on child 'close' (PM2 CLI has exited, config already loaded).
+ // Small delay as extra safety before removing the temp file.
+ await new Promise(r => setTimeout(r, 500));
await unlink(tempPath).catch(() => {});
}
}