Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add `streaming-edit-file-tool` feature flag (#49997)
Bennet Bo Fenner3ae4f4e95d2e
diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rsindex e40ab834a87..5d4de36cb69 100644--- a/crates/agent/src/thread.rs+++ b/crates/agent/src/thread.rs@@ -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.toolsdiff --git a/crates/feature_flags/src/flags.rs b/crates/feature_flags/src/flags.rsindex 5910ad30def..8f96de0e7b6 100644--- a/crates/feature_flags/src/flags.rs+++ b/crates/feature_flags/src/flags.rs@@ -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+ }+}