From 55c02b45b336e49c72b1f49837f455228c66916f Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 9 Apr 2026 10:58:00 -0400 Subject: [PATCH] agent_ui: Disable thread feedback based on organization configuration (#53454) This PR updates the agent thread UI to disable the thread feedback controls based on the organization's configuration. Closes CLO-629. Release Notes: - N/A --- .../src/conversation_view/thread_view.rs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/crates/agent_ui/src/conversation_view/thread_view.rs b/crates/agent_ui/src/conversation_view/thread_view.rs index ae9bf17c76bde99cdacea9d5bb205074a1a4ee39..412778e054cab1596b2e9555a9cd4a12c3edb6ec 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 = || {