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: keep real self-build failures visible when silencing the build toast (#2669)

[._.]/ Adam Eivy1635a1778d7b
diff --git a/client/src/components/apps/AppDetailView.jsx b/client/src/components/apps/AppDetailView.jsx
index bc8e9cbdcf..44ebc37208 100644
--- a/client/src/components/apps/AppDetailView.jsx
+++ b/client/src/components/apps/AppDetailView.jsx
@@ -108,8 +108,13 @@ export default function AppDetailView() {
setBuildLoading(true);
const isSelfBuild = appId === api.PORTOS_APP_ID;
const result = await api.buildApp(appId, { silent: true }).catch(err => {
- // Self-build may cause a socket hangup as the server restarts — that's expected
- if (isSelfBuild) return { selfBuildTriggered: true };
+ // Self-build may cause a socket hangup as the server restarts — that's
+ // expected, so treat it as "triggered" rather than a failure. Narrow to
+ // transport failures only: request() stamps `status` on an HTTP error but
+ // throws a bare "Server unreachable" Error for a hangup. Without that
+ // check a real 500 (BUILD_FAILED with the compiler output) on the self
+ // app would be reported as a green "build triggered" and never surface.
+ if (isSelfBuild && !err.status) return { selfBuildTriggered: true };
toast.error(`Build failed: ${err.message}`);
return null;
});