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(apps): silence GSD 404 toasts and always show GSD tab with init instructions

Adam Eivyab28a2819016
diff --git a/client/src/components/apps/AppDetailView.jsx b/client/src/components/apps/AppDetailView.jsx
index 01f1e2de6f..b42454b3c7 100644
--- a/client/src/components/apps/AppDetailView.jsx
+++ b/client/src/components/apps/AppDetailView.jsx
@@ -22,7 +22,6 @@ export default function AppDetailView() {
const [loading, setLoading] = useState(true);
const [notFound, setNotFound] = useState(false);
const [actionLoading, setActionLoading] = useState(null);
- const [hasGsd, setHasGsd] = useState(false);
const fetchApp = useCallback(async () => {
const data = await api.getApp(appId).catch(() => null);
@@ -39,14 +38,6 @@ export default function AppDetailView() {
fetchApp();
}, [fetchApp]);
- // Check if app has a GSD project (silent - no toast on 404)
- useEffect(() => {
- if (!appId) return;
- fetch(`/api/cos/gsd/projects/${appId}`).then(r => {
- setHasGsd(r.ok);
- }).catch(() => setHasGsd(false));
- }, [appId]);
-
// Real-time updates
useEffect(() => {
const handleAppsChanged = () => fetchApp();
@@ -72,9 +63,7 @@ export default function AppDetailView() {
setActionLoading(null);
};
- const visibleTabs = hasGsd
- ? APP_DETAIL_TABS
- : APP_DETAIL_TABS.filter(t => t.id !== 'gsd');
+ const visibleTabs = APP_DETAIL_TABS;
if (loading) {
return (
diff --git a/client/src/components/apps/tabs/GsdTab.jsx b/client/src/components/apps/tabs/GsdTab.jsx
index 6ca92c0718..5f16c3483b 100644
--- a/client/src/components/apps/tabs/GsdTab.jsx
+++ b/client/src/components/apps/tabs/GsdTab.jsx
@@ -13,12 +13,14 @@ export default function GsdTab({ appId }) {
const fetchProject = async () => {
setLoading(true);
- const data = await api.getGsdProject(appId).catch(() => null);
- if (!data) {
- setNotFound(true);
- } else {
+ // Use silent fetch to avoid toast errors on 404
+ const resp = await fetch(`/api/cos/gsd/projects/${appId}`).catch(() => null);
+ if (resp?.ok) {
+ const data = await resp.json().catch(() => null);
setProject(data);
- setNotFound(false);
+ setNotFound(!data);
+ } else {
+ setNotFound(true);
}
setLoading(false);
};
@@ -36,8 +38,13 @@ export default function GsdTab({ appId }) {
<div className="max-w-5xl">
<div className="bg-port-card border border-port-border rounded-lg p-8 text-center">
<Compass size={32} className="text-gray-600 mx-auto mb-3" />
- <p className="text-gray-400 mb-2">No GSD project found</p>
- <p className="text-xs text-gray-500">This app does not have a .planning/ directory</p>
+ <p className="text-gray-400 mb-2">No GSD project initialized</p>
+ <p className="text-sm text-gray-500 mb-4">
+ This app does not have a <code className="text-cyan-400">.planning/</code> directory yet.
+ </p>
+ <p className="text-xs text-gray-500">
+ Run <code className="text-cyan-400">/gsd:new-project</code> in Claude Code from the app's repo to initialize GSD project tracking.
+ </p>
</div>
</div>
);