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(backup): surface degraded DB-dump toast despite warning severity; flag degraded in dashboard widget

Adam Eivyf07c916d3553
diff --git a/client/src/components/BackupWidget.jsx b/client/src/components/BackupWidget.jsx
index e6313767ff..7a3b438b8c 100644
--- a/client/src/components/BackupWidget.jsx
+++ b/client/src/components/BackupWidget.jsx
@@ -23,6 +23,8 @@ import { equalByKeys, equalListByKeys } from '../lib/compareHelpers';
function computeHealth(status) {
if (!status || status.status === 'error') return 'critical';
+ // 'degraded' = files backed up but the DB dump failed — surface as a warning.
+ if (status.status === 'degraded') return 'warning';
if (status.status === 'never') return 'warning';
if (status.status === 'running') return 'healthy';
if (!status.lastRun) return 'warning';
diff --git a/client/src/hooks/useErrorNotifications.js b/client/src/hooks/useErrorNotifications.js
index a65451a0d8..a227e9063e 100644
--- a/client/src/hooks/useErrorNotifications.js
+++ b/client/src/hooks/useErrorNotifications.js
@@ -20,6 +20,16 @@ export function useErrorNotifications() {
socket.emit('errors:subscribe');
const handleError = (error) => {
+ // A degraded DB backup is warning-severity (the file backup succeeded)
+ // but MUST still surface — its whole point is "find out the day it
+ // breaks," including on unattended scheduled runs. Handle it before the
+ // blanket warning-drop below.
+ if (error.code === 'BACKUP_DB_DUMP_FAILED') {
+ toast.error(error.message, { duration: 8000, icon: '💾' });
+ console.warn(`[${error.code}] ${error.message}`, error.context);
+ return;
+ }
+
// `severity: 'warning'` routes (e.g. speculative GET /api/media-jobs/:id
// 404s for jobs past the 24h archive TTL) opt out of toast + console
// surfacing entirely — the network-tab 404 is sufficient signal.