assistant_settings: Disable "Suggest Edits" in the assistant2
feature flag (#27802)
This PR disables the "Suggest Edits" feature when in the `assistant2` feature flag. This functionality has been superseded by the new Agent Panel. We can remove the feature outright once the Agent Panel is generally available. Release Notes: - N/A
This commit is contained in:
parent
d517a212dc
commit
ddc102c7e0
1 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,7 @@ use std::sync::Arc;
|
|||
use ::open_ai::Model as OpenAiModel;
|
||||
use anthropic::Model as AnthropicModel;
|
||||
use deepseek::Model as DeepseekModel;
|
||||
use feature_flags::FeatureFlagAppExt;
|
||||
use feature_flags::{Assistant2FeatureFlag, FeatureFlagAppExt};
|
||||
use gpui::{App, Pixels};
|
||||
use indexmap::IndexMap;
|
||||
use language_model::{CloudModel, LanguageModel};
|
||||
|
@ -88,6 +88,10 @@ pub struct AssistantSettings {
|
|||
|
||||
impl AssistantSettings {
|
||||
pub fn are_live_diffs_enabled(&self, cx: &App) -> bool {
|
||||
if cx.has_flag::<Assistant2FeatureFlag>() {
|
||||
return false;
|
||||
}
|
||||
|
||||
cx.is_staff() || self.enable_experimental_live_diffs
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue