feat: add default options to meta plugins status table

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 17:27:11 -03:00
parent b802c4f6f0
commit 19848fd379
2 changed files with 17 additions and 10 deletions

View File

@@ -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