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

handle a failed Undo request and fix a stale comment

[._.]/ Adam Eivy1b520870b7fc
diff --git a/client/src/hooks/useHealthWarningDismiss.jsx b/client/src/hooks/useHealthWarningDismiss.jsx
index 8feae4b950..116140bb89 100644
--- a/client/src/hooks/useHealthWarningDismiss.jsx
+++ b/client/src/hooks/useHealthWarningDismiss.jsx
@@ -24,7 +24,9 @@ export function useHealthWarningDismiss(refetchFn) {
<button
type="button"
onClick={() => {
- undismissHealthWarning(warning.type, { silent: true }).then(() => refetchFn());
+ undismissHealthWarning(warning.type, { silent: true })
+ .then(() => refetchFn())
+ .catch((err) => toast.error(err?.message || 'Failed to undo dismissal'));
toast.dismiss(t.id);
}}
className="inline-flex shrink-0 items-center gap-1 rounded border border-port-border px-2 py-0.5 text-[11px] text-port-accent hover:border-port-accent/40 hover:text-white"
diff --git a/server/lib/validation.js b/server/lib/validation.js
index d3586a50fd..a431333b90 100644
--- a/server/lib/validation.js
+++ b/server/lib/validation.js
@@ -1305,7 +1305,7 @@ export const databaseExportSchema = z.object({
});
// System health dashboard warnings — see server/routes/systemHealth.js. The
-// `type` enum mirrors every `warnings.push({ type: ... })` call site there;
+// `type` enum mirrors every `rawWarnings.push({ type: ... })` call site there;
// keep the two lists in sync.
export const SYSTEM_HEALTH_WARNING_TYPES = ['memory', 'cpu', 'disk', 'process', 'restarts', 'apps', 'database', 'forge'];
export const systemHealthWarningParamsSchema = z.object({ type: z.enum(SYSTEM_HEALTH_WARNING_TYPES) });