fix: handle serde_yaml Value::Tagged variant

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 16:29:08 -03:00
parent 7f9b5e3423
commit c381e3aa38

View File

@@ -202,6 +202,9 @@ fn build_config_table(settings: &config::Settings) -> Table {
serde_yaml::Value::Mapping(_) => { serde_yaml::Value::Mapping(_) => {
serde_yaml::to_string(value).unwrap_or_else(|_| "{}".to_string()) serde_yaml::to_string(value).unwrap_or_else(|_| "{}".to_string())
} }
serde_yaml::Value::Tagged(_) => {
serde_yaml::to_string(value).unwrap_or_else(|_| "tagged".to_string())
}
}; };
// Trim any extra whitespace from the serialized values // Trim any extra whitespace from the serialized values
let value_str = value_str.trim().to_string(); let value_str = value_str.trim().to_string();