From c4c0498ad03743b33beab72dc5f8b426c3f92448 Mon Sep 17 00:00:00 2001 From: Michael Neale Date: Mon, 9 Feb 2026 12:15:06 +1100 Subject: [PATCH] Disable detailed posthog events, keep only session_started MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only the daily session_started event fires (installation_id, model, provider, os, version). Error events, custom slash command events, and the generic emit_event API are temporarily disabled with early returns — all the code is preserved and can be re-enabled by removing the returns. --- crates/goose/src/posthog.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/crates/goose/src/posthog.rs b/crates/goose/src/posthog.rs index f2a689f14e1f..9c94820d8201 100644 --- a/crates/goose/src/posthog.rs +++ b/crates/goose/src/posthog.rs @@ -244,6 +244,11 @@ pub fn emit_error_with_context(error_type: &str, context: ErrorContext) { return; } + // Temporarily disabled - only session_started events are sent + let _ = (&error_type, &context); + return; + + #[allow(unreachable_code)] let installation = load_or_create_installation(); let error_type = error_type.to_string(); @@ -257,6 +262,10 @@ pub fn emit_custom_slash_command_used() { return; } + // Temporarily disabled - only session_started events are sent + return; + + #[allow(unreachable_code)] let installation = load_or_create_installation(); tokio::spawn(async move { @@ -533,6 +542,11 @@ pub async fn emit_event( return Ok(()); } + // Temporarily disabled - only session_started events are sent + let _ = (event_name, &mut properties); + return Ok(()); + + #[allow(unreachable_code)] let installation = load_or_create_installation(); let client = posthog_rs::client(POSTHOG_API_KEY).await; let mut event = posthog_rs::Event::new(event_name, &installation.installation_id);