Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui: Disable thread feedback based on organization configuration (#53454)
Marshall Bowers55c02b45b336
diff --git a/crates/agent_ui/src/conversation_view/thread_view.rs b/crates/agent_ui/src/conversation_view/thread_view.rsindex ae9bf17c76b..412778e054c 100644--- a/crates/agent_ui/src/conversation_view/thread_view.rs+++ b/crates/agent_ui/src/conversation_view/thread_view.rs@@ -4872,9 +4872,20 @@ impl ThreadView {},);- if AgentSettings::get_global(cx).enable_feedback- && self.thread.read(cx).connection().telemetry().is_some()- {+ let enable_thread_feedback = util::maybe!({+ let project = thread.read(cx).project().read(cx);+ let user_store = project.user_store();+ if let Some(configuration) = user_store.read(cx).current_organization_configuration() {+ if !configuration.is_agent_thread_feedback_enabled {+ return false;+ }+ }++ AgentSettings::get_global(cx).enable_feedback+ && self.thread.read(cx).connection().telemetry().is_some()+ });++ if enable_thread_feedback {let feedback = self.thread_feedback.feedback;let tooltip_meta = || {