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(shell): use managed apps list instead of scaffold directories for cd selector

Adam Eivy5a4d459236b1
diff --git a/client/src/pages/Shell.jsx b/client/src/pages/Shell.jsx
index a56cc85f90..881785c491 100644
--- a/client/src/pages/Shell.jsx
+++ b/client/src/pages/Shell.jsx
@@ -51,11 +51,16 @@ export default function Shell() {
}
}, []); // eslint-disable-line react-hooks/exhaustive-deps
- // Fetch app folders for the cd selector
+ // Fetch app folders from the managed apps list
useEffect(() => {
- fetch('/api/scaffold/directories')
+ fetch('/api/apps')
.then(res => res.ok ? res.json() : Promise.reject())
- .then(data => setAppFolders(data.directories || []))
+ .then(apps => setAppFolders(
+ (apps || [])
+ .filter(a => a.repoPath)
+ .map(a => ({ name: a.name, path: a.repoPath }))
+ .sort((a, b) => a.name.localeCompare(b.name))
+ ))
.catch(() => {});
}, []);