Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions crates/agent/src/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions crates/feature_flags/src/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}