diff --git a/AppImage/components/notification-settings.tsx b/AppImage/components/notification-settings.tsx
index 70425bf5..4afbaae3 100644
--- a/AppImage/components/notification-settings.tsx
+++ b/AppImage/components/notification-settings.tsx
@@ -548,9 +548,9 @@ export function NotificationSettings() {
ai_language: cfg.ai_language,
ai_ollama_url: cfg.ai_ollama_url,
ai_openai_base_url: cfg.ai_openai_base_url,
- ai_prompt_mode: cfg.ai_prompt_mode || "default",
- ai_custom_prompt: cfg.ai_custom_prompt || "",
- ai_allow_suggestions: cfg.ai_allow_suggestions || "false",
+ ai_prompt_mode: cfg.ai_prompt_mode || "default",
+ ai_custom_prompt: cfg.ai_custom_prompt || "",
+ ai_allow_suggestions: String(cfg.ai_allow_suggestions === "true" || cfg.ai_allow_suggestions === true),
hostname: cfg.hostname,
webhook_secret: cfg.webhook_secret,
webhook_allowed_ips: cfg.webhook_allowed_ips,
@@ -1852,41 +1852,39 @@ export function NotificationSettings() {
{/* Experimental: AI Suggestions toggle */}
-
-
-
-
-
-
- AI Suggestions
- BETA
-
-
- Allow AI to add brief troubleshooting tips based on log context
-
+
+
+
+
+
+ AI Suggestions
+ BETA
+
+ Allow AI to add brief troubleshooting tips based on log context
+
-
+
)}
diff --git a/AppImage/scripts/health_persistence.py b/AppImage/scripts/health_persistence.py
index 64a1fd68..244a7625 100644
--- a/AppImage/scripts/health_persistence.py
+++ b/AppImage/scripts/health_persistence.py
@@ -1325,9 +1325,9 @@ class HealthPersistence:
print(f"[HealthPersistence] Error recording UNKNOWN persistent: {e}")
- # ──────��─────────────────────────────────────────────────────────
- # Disk Observations API
# ────────────────────────────────────────────────────────────────
+ # Disk Observations API
+ # ──────────────────────���─────────────────────────────────────────
def register_disk(self, device_name: str, serial: Optional[str] = None,
model: Optional[str] = None, size_bytes: Optional[int] = None):