Adjust modes masks (#9868)

This commit is contained in:
Ahmed Ibrahim authored and GitHub committed 2026-01-25 12:44:17 -08:00
1 parent dd2d68e69e
commit cb2bbe5cba
3 files changed
+47 -7

No files matched your search

+4 -2
View File
@@ -4662,8 +4662,10 @@ impl ChatWidget {
if !config.features.enabled(Feature::CollaborationModes) {
return None;
}
let kind = config.experimental_mode?;
let mut mask = collaboration_modes::mask_for_kind(models_manager, kind)?;
let mut mask = match config.experimental_mode {
Some(kind) => collaboration_modes::mask_for_kind(models_manager, kind)?,
None => collaboration_modes::default_mask(models_manager)?,
};
if let Some(model_override) = model_override {
mask.model = Some(model_override.to_string());
}