From 4e859613f927940bc677b3dfbe87e0be93b5d5fe Mon Sep 17 00:00:00 2001 From: Bendt Date: Fri, 19 Dec 2025 16:01:44 -0500 Subject: [PATCH] Add IPC notifications to sync dashboard after sync completes --- src/cli/sync_dashboard.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cli/sync_dashboard.py b/src/cli/sync_dashboard.py index b258ad0..94d0a4c 100644 --- a/src/cli/sync_dashboard.py +++ b/src/cli/sync_dashboard.py @@ -1038,6 +1038,11 @@ async def run_dashboard_sync( # Schedule next sync dashboard.schedule_next_sync() + # Notify all running TUI apps to refresh their data + from src.utils.ipc import notify_all + + await notify_all({"source": "sync_dashboard_demo"}) + except Exception as e: tracker.error_task("archive", str(e)) @@ -1070,6 +1075,7 @@ async def run_dashboard_sync( ) from src.utils.calendar_utils import save_events_to_vdir, save_events_to_file from src.utils.notifications import notify_new_emails + from src.utils.ipc import notify_all config = dashboard._sync_config @@ -1372,6 +1378,9 @@ async def run_dashboard_sync( # Schedule next sync dashboard.schedule_next_sync() + # Notify all running TUI apps to refresh their data + await notify_all({"source": "sync_dashboard"}) + except Exception as e: # If we fail early (e.g., auth), log to the first pending task for task_id in [