feat: display default options for digest and magic_file plugins

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 16:00:06 -03:00
parent 74ebb87823
commit 14c5f926a4
2 changed files with 7 additions and 0 deletions

View File

@@ -126,6 +126,8 @@ impl DigestMetaPlugin {
// Default to sha256 if no valid method is specified
if plugin.hasher.is_none() {
plugin.hasher = Some(Hasher::Sha256(Sha256::new()));
// Add the default method to options so it shows up in the status
plugin.options.insert("method".to_string(), serde_yaml::Value::String("sha256".to_string()));
}
plugin