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: show error toast on non-self-build failures, only show success toast on self-build socket hangup

Adam Eivy1126d7660479
diff --git a/client/src/components/apps/AppDetailView.jsx b/client/src/components/apps/AppDetailView.jsx
index 34ab0f4ca1..2b9a1ffaed 100644
--- a/client/src/components/apps/AppDetailView.jsx
+++ b/client/src/components/apps/AppDetailView.jsx
@@ -74,11 +74,16 @@ export default function AppDetailView() {
const handleBuild = async () => {
setBuildLoading(true);
const isSelfBuild = appId === api.PORTOS_APP_ID;
- const result = await api.buildApp(appId).catch(() => null);
+ const result = await api.buildApp(appId).catch(err => {
+ // Self-build may cause a socket hangup as the server restarts — that's expected
+ if (isSelfBuild) return { selfBuildTriggered: true };
+ toast.error(`Build failed: ${err.message}`);
+ return null;
+ });
setBuildLoading(false);
if (result?.success) {
toast.success(`${app.name} production build complete`);
- } else if (isSelfBuild) {
+ } else if (result?.selfBuildTriggered) {
toast.success(`${app.name} build triggered — server may restart`);
}
};