From c8e062aef91c4d7955cf6ccc6f09e397334110fd Mon Sep 17 00:00:00 2001 From: Tyler Longwell Date: Wed, 26 Nov 2025 11:43:40 -0500 Subject: [PATCH] dont show tool messages unless marked for user or no audience marked --- crates/goose-tui/src/components/popups/message.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/goose-tui/src/components/popups/message.rs b/crates/goose-tui/src/components/popups/message.rs index 7e39852d55..69f38e3861 100644 --- a/crates/goose-tui/src/components/popups/message.rs +++ b/crates/goose-tui/src/components/popups/message.rs @@ -74,6 +74,11 @@ impl MessagePopup { lines.push("Tool Output:".to_string()); if let Ok(contents) = &resp.tool_result { for content in contents { + if let Some(audience) = content.audience() { + if !audience.contains(&rmcp::model::Role::User) { + continue; + } + } if let rmcp::model::Content { raw: rmcp::model::RawContent::Text(text_content), .. @@ -139,6 +144,11 @@ impl MessagePopup { ))); if let Ok(contents) = &resp.tool_result { for content in contents { + if let Some(audience) = content.audience() { + if !audience.contains(&rmcp::model::Role::User) { + continue; + } + } if let rmcp::model::Content { raw: rmcp::model::RawContent::Text(text_content), ..