Add streaming-edit-file-tool feature flag (#49997)

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner
2026-02-24 17:45:29 +01:00
committed by GitHub
parent d25a85013a
commit 3ae4f4e95d
2 changed files with 14 additions and 2 deletions
+4 -2
View File
@@ -8,7 +8,9 @@ use crate::{
};
use acp_thread::{MentionUri, UserMessageId};
use action_log::ActionLog;
use feature_flags::{FeatureFlagAppExt as _, SubagentsFeatureFlag};
use feature_flags::{
FeatureFlagAppExt as _, StreamingEditFileToolFeatureFlag, SubagentsFeatureFlag,
};
use agent_client_protocol as acp;
use agent_settings::{
@@ -2457,7 +2459,7 @@ impl Thread {
}
}
let use_streaming_edit_tool = false;
let use_streaming_edit_tool = cx.has_flag::<StreamingEditFileToolFeatureFlag>();
let mut tools = self
.tools
+10
View File
@@ -56,3 +56,13 @@ impl FeatureFlag for DiffReviewFeatureFlag {
false
}
}
pub struct StreamingEditFileToolFeatureFlag;
impl FeatureFlag for StreamingEditFileToolFeatureFlag {
const NAME: &'static str = "streaming-edit-file-tool";
fn enabled_for_staff() -> bool {
false
}
}