fix(sync): pass options.full through to generate-docs stage

The sync pipeline was hardcoding `false` for the `full` parameter when
calling run_generate_docs, so `lore sync --full` would re-ingest all
entities but then only regenerate documents for newly-dirtied ones.
Entities loaded before migration 007 (which introduced the dirty_sources
system) were never marked dirty and thus never got documents generated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Taylor Eernisse
2026-02-06 11:42:11 -05:00
parent 405e5370dc
commit 1c45725cba

View File

@@ -195,7 +195,7 @@ pub async fn run_sync(
docs_bar_clone.set_position(processed as u64);
}
});
let docs_result = run_generate_docs(config, false, None, Some(docs_cb))?;
let docs_result = run_generate_docs(config, options.full, None, Some(docs_cb))?;
result.documents_regenerated = docs_result.regenerated;
docs_bar.finish_and_clear();
spinner.finish_and_clear();