From 45d3ee3bfb984f48d87cfc7d39b26b04862fc093 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 27 Aug 2025 16:03:44 -0300 Subject: [PATCH] feat: simplify meta plugin outputs display to show key or key->value Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/modes/status.rs | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/modes/status.rs b/src/modes/status.rs index c719d45..4e4442c 100644 --- a/src/modes/status.rs +++ b/src/modes/status.rs @@ -188,10 +188,24 @@ fn build_config_table(settings: &config::Settings) -> Table { let outputs_str = if actual_plugin.outputs().is_empty() { "{}".to_string() } else { - serde_yaml::to_string(actual_plugin.outputs()) - .unwrap_or_else(|_| "Unable to serialize outputs".to_string()) - .trim() - .to_string() + let mut output_pairs = Vec::new(); + for (key, value) in actual_plugin.outputs() { + // Convert serde_yaml::Value to string for comparison + let value_str = match value { + serde_yaml::Value::String(s) => s.clone(), + _ => value.to_string(), + }; + if key == &value_str { + output_pairs.push(key.clone()); + } else { + output_pairs.push(format!("{}->{}", key, value_str)); + } + } + if output_pairs.is_empty() { + "{}".to_string() + } else { + output_pairs.join(", ") + } }; config_table.add_row(Row::new(vec![ Cell::new(" Outputs"),