From 51bc150b756388d8331a47d5559dedbe406408bd Mon Sep 17 00:00:00 2001 From: Jonathan R Date: Sat, 1 Aug 2026 19:57:19 -0600 Subject: [PATCH] fix(buzz-acp): include no_mention_filter in the startup config summary The startup summary line printed subscribe={:?} only, so a unit running --subscribe mentions --no-mention-filter logged byte-identically to a mention-gated deployment. The flag changes both the relay subscription (#p filter dropped) and the operator cost model, so the summary is the natural place to attest it. Closes #4228 Signed-off-by: Jonathan R --- crates/buzz-acp/src/config.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/crates/buzz-acp/src/config.rs b/crates/buzz-acp/src/config.rs index dab61be30a..985ecec809 100644 --- a/crates/buzz-acp/src/config.rs +++ b/crates/buzz-acp/src/config.rs @@ -1123,7 +1123,7 @@ impl Config { format!(" allowed_respond_to=[{}]", modes.join(",")) }; format!( - "relay={} pubkey={} agent_cmd={} {} mcp_cmd={} idle_timeout={}s max_turn={}s agents={} heartbeat={}s subscribe={:?} dedup={:?} meh={:?} ignore_self={} context_limit={} max_turns_per_session={} presence={} typing={} memory={} model={} permission_mode={} {}{}", + "relay={} pubkey={} agent_cmd={} {} mcp_cmd={} idle_timeout={}s max_turn={}s agents={} heartbeat={}s subscribe={:?} no_mention_filter={} dedup={:?} meh={:?} ignore_self={} context_limit={} max_turns_per_session={} presence={} typing={} memory={} model={} permission_mode={} {}{}", self.relay_url, self.keys.public_key().to_hex(), self.agent_command, @@ -1134,6 +1134,7 @@ impl Config { self.agents, self.heartbeat_interval_secs, self.subscribe_mode, + self.no_mention_filter, self.dedup_mode, self.multiple_event_handling, self.ignore_self, @@ -1534,6 +1535,16 @@ mod tests { assert!(!f.require_mention); } + #[test] + fn test_summary_includes_no_mention_filter_state() { + let mut config = test_config(SubscribeMode::Mentions); + config.no_mention_filter = true; + assert!(config.summary().contains("no_mention_filter=true")); + + config.no_mention_filter = false; + assert!(config.summary().contains("no_mention_filter=false")); + } + #[test] fn normalizes_goose_args_to_acp() { assert_eq!(normalize_agent_args("goose", Vec::new()), vec!["acp"]);