fix: convert outputs to serde_yaml::Value type

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-27 15:54:17 -03:00
parent a402ef413d
commit b23ec5604b

View File

@@ -154,10 +154,16 @@ fn build_config_table(settings: &config::Settings) -> Table {
]));
// Get the actual plugin with user-provided options to see the merged result
// Convert outputs from HashMap<String, String> to HashMap<String, serde_yaml::Value>
let outputs_converted: std::collections::HashMap<String, serde_yaml::Value> = plugin_config.outputs
.iter()
.map(|(k, v)| (k.clone(), serde_yaml::Value::String(v.clone())))
.collect();
let actual_plugin = get_meta_plugin(
meta_plugin_type,
Some(plugin_config.options.clone()),
Some(plugin_config.outputs.clone()),
Some(outputs_converted),
);
// Show the merged options