From 21edfbd633a0a6f6e2f8640734c591449dfa0545 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 27 Aug 2025 22:57:29 -0300 Subject: [PATCH] fix: replace null outputs with their keys Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/modes/generate_config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modes/generate_config.rs b/src/modes/generate_config.rs index 826e2c1..db30c24 100644 --- a/src/modes/generate_config.rs +++ b/src/modes/generate_config.rs @@ -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());