fix: remove redundant default options merge and use effective_options directly
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -194,13 +194,7 @@ fn build_meta_plugins_configured_table(settings: &config::Settings) -> Option<Ta
|
|||||||
None,
|
None,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Merge in default options from the plugin implementation
|
// Use the effective_options which already includes both defaults and configured options
|
||||||
for (key, value) in default_plugin.options() {
|
|
||||||
if !options_to_serialize.contains_key(key) {
|
|
||||||
options_to_serialize.insert(key.clone(), value.clone());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let options_str = if effective_options.is_empty() {
|
let options_str = if effective_options.is_empty() {
|
||||||
"{}".to_string()
|
"{}".to_string()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user