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).
This commit is contained in:
iamdoubz
2026-07-10 19:22:04 -05:00
parent 83babc99cd
commit a341afc52f
+5
View File
@@ -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",