From ab3bbc7f71184b1b8875385fb10effd90179cb68 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Wed, 25 Feb 2026 22:31:03 +0100 Subject: [PATCH] Refresh timeline after clearing or deleting snapshots The sidebar refresh didn't trigger a timeline update, leaving stale markers visible until the next auto-capture or manual action. Co-Authored-By: Claude Opus 4.6 --- js/snapshot_manager.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/snapshot_manager.js b/js/snapshot_manager.js index 760d3eb..3ecde51 100644 --- a/js/snapshot_manager.js +++ b/js/snapshot_manager.js @@ -2308,6 +2308,9 @@ async function buildSidebar(el) { // db_deleteAllForWorkflow already toasts on error } await refresh(true); + if (timelineRefresh) { + timelineRefresh().catch(() => {}); + } }); footer.appendChild(clearBtn); @@ -2564,6 +2567,9 @@ async function buildSidebar(el) { await db_delete(rec.workflowKey, rec.id); pickerDirty = true; await refresh(); + if (timelineRefresh) { + timelineRefresh().catch(() => {}); + } }); const diffBtn = document.createElement("button");