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: address round 10 review — null-safe status merge, separate error handling

Adam Eivyfc30efc0648b
diff --git a/client/src/components/apps/tabs/UpdateTab.jsx b/client/src/components/apps/tabs/UpdateTab.jsx
index af45b2a105..cebdc5ab9b 100644
--- a/client/src/components/apps/tabs/UpdateTab.jsx
+++ b/client/src/components/apps/tabs/UpdateTab.jsx
@@ -129,7 +129,7 @@ export default function UpdateTab() {
const handleCheck = async () => {
setChecking(true);
const result = await api.checkForUpdate().catch(() => null);
- if (result) setStatus(prev => ({ ...prev, ...result }));
+ if (result) setStatus(prev => ({ ...(prev ?? {}), ...result }));
setChecking(false);
};
diff --git a/server/index.js b/server/index.js
index cbb297a629..541fee735f 100644
--- a/server/index.js
+++ b/server/index.js
@@ -281,10 +281,11 @@ readFile(updateMarkerPath, 'utf-8').then(raw => {
}
console.log(`✅ Update to v${marker.version} completed at ${marker.completedAt}`);
return recordUpdateResult({ version: marker.version, success: true, completedAt: marker.completedAt, log: '' })
- .then(() => unlink(updateMarkerPath))
+ .then(() => unlink(updateMarkerPath).catch(unlinkErr => {
+ if (unlinkErr?.code !== 'ENOENT') console.error(`❌ Failed to remove update marker: ${unlinkErr.message}`);
+ }))
.catch(recordErr => {
console.error(`❌ Failed to record update result: ${recordErr.message}`);
- // Still remove marker to avoid reprocessing on next startup
return unlink(updateMarkerPath).catch(unlinkErr => {
if (unlinkErr?.code !== 'ENOENT') console.error(`❌ Failed to remove update marker after record failure: ${unlinkErr.message}`);
});