Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent: Remove streaming edit feature flag (#55152)

Ben Brandt0dcb6731df07
diff --git a/crates/agent/src/tests/edit_file_thread_test.rs b/crates/agent/src/tests/edit_file_thread_test.rs
index 3efd7753740..7e6d131c98f 100644
--- a/crates/agent/src/tests/edit_file_thread_test.rs
+++ b/crates/agent/src/tests/edit_file_thread_test.rs
@@ -210,11 +210,6 @@ async fn test_streaming_edit_json_parse_error_does_not_cause_unsaved_changes(
super::init_test(cx);
super::always_allow_tools(cx);
- // Enable the streaming edit file tool feature flag.
- cx.update(|cx| {
- cx.update_flags(true, vec!["streaming-edit-file-tool".to_string()]);
- });
-
let fs = FakeFs::new(cx.executor());
fs.insert_tree(
path!("/project"),
diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rs
index 07e6facb1fb..7b3eab5d03f 100644
--- a/crates/agent/src/thread.rs
+++ b/crates/agent/src/thread.rs
@@ -8,9 +8,7 @@ use crate::{
};
use acp_thread::{MentionUri, UserMessageId};
use action_log::ActionLog;
-use feature_flags::{
- FeatureFlagAppExt as _, StreamingEditFileToolFeatureFlag, UpdatePlanToolFeatureFlag,
-};
+use feature_flags::{FeatureFlagAppExt as _, UpdatePlanToolFeatureFlag};
use agent_client_protocol::schema as acp;
use agent_settings::{
@@ -2867,8 +2865,7 @@ impl Thread {
}
}
- let use_streaming_edit_tool =
- cx.has_flag::<StreamingEditFileToolFeatureFlag>() && model.supports_streaming_tools();
+ let use_streaming_edit_tool = model.supports_streaming_tools();
let mut tools = self
.tools
diff --git a/crates/feature_flags/src/flags.rs b/crates/feature_flags/src/flags.rs
index aae8137a0a6..b23f8dbc56a 100644
--- a/crates/feature_flags/src/flags.rs
+++ b/crates/feature_flags/src/flags.rs
@@ -47,18 +47,6 @@ impl FeatureFlag for DiffReviewFeatureFlag {
}
register_feature_flag!(DiffReviewFeatureFlag);
-pub struct StreamingEditFileToolFeatureFlag;
-
-impl FeatureFlag for StreamingEditFileToolFeatureFlag {
- const NAME: &'static str = "streaming-edit-file-tool";
- type Value = PresenceFlag;
-
- fn enabled_for_staff() -> bool {
- true
- }
-}
-register_feature_flag!(StreamingEditFileToolFeatureFlag);
-
pub struct UpdatePlanToolFeatureFlag;
impl FeatureFlag for UpdatePlanToolFeatureFlag {