fix: replace null outputs with their keys

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 22:57:29 -03:00
parent 3cc0fd3b22
commit 21edfbd633

View File

@@ -163,8 +163,8 @@ fn convert_outputs_to_string_map(
for (key, value) in outputs {
match value {
serde_yaml::Value::Null => {
// For null, we want to output "null" as a string
result.insert(key.clone(), "null".to_string());
// For null, use the key as the value
result.insert(key.clone(), key.clone());
}
serde_yaml::Value::String(s) => {
result.insert(key.clone(), s.clone());