From 19848fd3791baf21b184e87ddd0b713adfa3c32b Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 27 Aug 2025 17:27:11 -0300 Subject: [PATCH] feat: add default options to meta plugins status table Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/meta_plugin/text.rs | 6 ++++++ src/modes/status.rs | 21 +++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/meta_plugin/text.rs b/src/meta_plugin/text.rs index 8bbf9fb..a1c1614 100644 --- a/src/meta_plugin/text.rs +++ b/src/meta_plugin/text.rs @@ -48,6 +48,12 @@ impl TextMetaPlugin { outputs, ); + // Set default text_detect_size option if not provided + if !base.options.contains_key("text_detect_size") { + base.options.insert("text_detect_size".to_string(), + serde_yaml::Value::Number(PIPESIZE.into())); + } + // Get text_detect_size (previously max_buffer_size) let max_buffer_size = base.options.get("text_detect_size") .or_else(|| base.options.get("max_buffer_size")) // Handle backward compatibility diff --git a/src/modes/status.rs b/src/modes/status.rs index cfcd6c1..f7513e5 100644 --- a/src/modes/status.rs +++ b/src/modes/status.rs @@ -182,23 +182,24 @@ fn build_meta_plugins_configured_table(settings: &config::Settings) -> Option