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:
@@ -195,7 +195,7 @@ pub async fn run_sync(
|
|||||||
docs_bar_clone.set_position(processed as u64);
|
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;
|
result.documents_regenerated = docs_result.regenerated;
|
||||||
docs_bar.finish_and_clear();
|
docs_bar.finish_and_clear();
|
||||||
spinner.finish_and_clear();
|
spinner.finish_and_clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user