From a341afc52fd9e002dcc63b350b983289955dcef6 Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Fri, 10 Jul 2026 19:22:04 -0500 Subject: [PATCH] fix(commands): reindex search after generate_summary writes summary.json summary.json is sealed straight to disk, not through a store write, so the FTS index needs an explicit nudge to pick up newly generated summaries (FR-SEARCH-1). --- src-tauri/src/commands.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index c2cb860..600211d 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -2393,6 +2393,11 @@ pub async fn generate_summary( if let Ok(sealed) = crate::vault::seal(json.as_bytes()) { let _ = std::fs::write(meeting_dir(&meeting_id).join("summary.json"), sealed); } + // Summary lives only in summary.json (not a store write), so the search + // index needs an explicit nudge to pick it up (FR-SEARCH-1). + if let Err(e) = state.store.reindex_fts(&meeting_id).await { + tracing::warn!("failed to reindex search after summary generation: {e}"); + } let _ = app.emit( "llm://done",