From b5ab46a74962b5571ff4c07c917951f86fdace11 Mon Sep 17 00:00:00 2001 From: ajaysi Date: Mon, 6 Apr 2026 15:02:21 +0530 Subject: [PATCH] Fix: Skip scheduler alerts in podcast-only mode Scheduler endpoints not available in podcast-only demo mode. --- frontend/src/hooks/useSchedulerTaskAlerts.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/hooks/useSchedulerTaskAlerts.ts b/frontend/src/hooks/useSchedulerTaskAlerts.ts index d8890a09..edcd589f 100644 --- a/frontend/src/hooks/useSchedulerTaskAlerts.ts +++ b/frontend/src/hooks/useSchedulerTaskAlerts.ts @@ -3,6 +3,7 @@ import { useAuth } from '@clerk/clerk-react'; import { showToastNotification } from '../utils/toastNotifications'; import { getTasksNeedingIntervention, TaskNeedingIntervention } from '../api/schedulerDashboard'; import { isBackendCooldownActive, logBackendCooldownSkipOnce } from '../api/client'; +import { isPodcastOnlyDemoMode } from '../utils/demoMode'; /** * Hook to poll for tasks needing intervention and show toast notifications @@ -19,6 +20,11 @@ export function useSchedulerTaskAlerts(options: { const shownTaskIdsRef = useRef>(new Set()); useEffect(() => { + // Skip scheduler alerts in podcast-only mode (endpoint not available) + if (isPodcastOnlyDemoMode()) { + return; + } + if (!enabled || !userId) { return; }