fix: remove automatic addition of digest plugin and use config for enabled_meta_plugins
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -21,14 +21,9 @@ impl StatusService {
|
||||
data_path: PathBuf,
|
||||
db_path: PathBuf,
|
||||
) -> StatusInfo {
|
||||
// Determine which meta plugins would be enabled for a save operation
|
||||
let mut meta_plugin_types: Vec<MetaPluginType> = crate::modes::common::settings_meta_plugin_types(cmd, settings);
|
||||
// Get meta plugins directly from config
|
||||
let meta_plugin_types: Vec<MetaPluginType> = crate::modes::common::settings_meta_plugin_types(cmd, settings);
|
||||
|
||||
// Always add the Digest plugin if not present
|
||||
if !meta_plugin_types.contains(&MetaPluginType::Digest) {
|
||||
meta_plugin_types.push(MetaPluginType::Digest);
|
||||
}
|
||||
|
||||
// Determine which compression type would be enabled for a save operation
|
||||
let enabled_compression_type = if let Some(compression_name) = &settings.compression() {
|
||||
CompressionType::from_str(compression_name).ok()
|
||||
@@ -44,29 +39,6 @@ impl StatusService {
|
||||
status_info
|
||||
}
|
||||
|
||||
pub fn generate_supported_status(
|
||||
&self,
|
||||
data_path: PathBuf,
|
||||
db_path: PathBuf,
|
||||
) -> StatusInfo {
|
||||
// Get all meta plugin types that are supported
|
||||
let supported_meta_plugins: Vec<MetaPluginType> = MetaPluginType::iter()
|
||||
.filter(|mpt| {
|
||||
let plugin = crate::meta_plugin::get_meta_plugin((*mpt).clone(), None, None);
|
||||
plugin.is_supported()
|
||||
})
|
||||
.collect();
|
||||
|
||||
// Default to LZ4 compression for the API status endpoint
|
||||
let enabled_compression_type = Some(CompressionType::LZ4);
|
||||
|
||||
let mut status_info = generate_status_info(data_path, db_path, &supported_meta_plugins, enabled_compression_type);
|
||||
|
||||
// The options are now populated directly in generate_status_info
|
||||
// No need to modify them here
|
||||
|
||||
status_info
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for StatusService {
|
||||
|
||||
Reference in New Issue
Block a user