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([issue-705]): clear vault running state on backup:completed even if refetch fails

[._.]/ Adam Eivy07455e010384
diff --git a/client/src/hooks/useCityData.js b/client/src/hooks/useCityData.js
index 54270f096b..554185dda1 100644
--- a/client/src/hooks/useCityData.js
+++ b/client/src/hooks/useCityData.js
@@ -170,7 +170,12 @@ export const useCityData = () => {
// Backup vault landmark: mark in-flight on start (so the seal pulses blue), then
// refetch on completion to pick up the fresh lastRun/status and clear `running`.
const handleBackupStarted = () => setBackupStatus(prev => ({ ...(prev || {}), running: true }));
- const handleBackupCompleted = () => fetchBackup();
+ // Clear `running` optimistically so the seal stops pulsing blue even if the
+ // refetch fails, then pull authoritative lastRun/status from the server.
+ const handleBackupCompleted = () => {
+ setBackupStatus(prev => (prev?.running ? { ...prev, running: false } : prev));
+ fetchBackup();
+ };
socket.on('backup:started', handleBackupStarted);
socket.on('backup:completed', handleBackupCompleted);