fix: warn on preset save when plugin not found (#16929)

* fix: warn on preset save when plugin not found

* refactor: build the unsaved-changes save config in one place

* Fixes clang-tidy

---------

Co-authored-by: Lam Wei Lun <weilun.lam@gmail.com>
This commit is contained in:
Ian ChuaandLam Wei Lun authored and GitHub committed 2026-10-28 13:02:05 +08:00
1 parent 3322f6101c
commit 3a0517831f
15 files changed
+411 -66

No files matched your search

+1 -1
View File
@@ -372,7 +372,7 @@ bool prune_stale_plugin_overrides(DynamicConfig& config, const std::string& over
// Capability names currently referenced by a plugin-backed option's value(s) — e.g.
// slicing_pipeline_plugin's ConfigOptionStrings entries name SlicingPipeline capabilities
// directly, the same raw values save_plugin_collection() resolves into the "plugins" manifest.
// directly, the same raw values ConfigBase::collect_plugin_manifest() resolves into the manifest.
std::set<std::pair<PluginCapabilityType, std::string>> referenced;
const ConfigDef* def = config.def();
for (const std::string& opt_key : config.keys()) {