From c8cefe384da5d7e0a95ed3bdfc1dc5532747287d Mon Sep 17 00:00:00 2001 From: Lakshman Patel Date: Fri, 17 Jul 2026 08:20:24 +0530 Subject: [PATCH] fix(telemetry): fix type mismatch - json.Marshal returns []byte, spawnDetachedAnalytics expects string Line 112 was passing payloadJSON ([]byte) directly to spawnDetachedAnalytics which expects a string, causing a compilation error on non-Windows builds. --- cli/telemetry/detached.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/telemetry/detached.go b/cli/telemetry/detached.go index a8da90b..df606ad 100644 --- a/cli/telemetry/detached.go +++ b/cli/telemetry/detached.go @@ -14,8 +14,9 @@ import ( ) var ( - // PostHogAPIKey is set at build time for production - PostHogAPIKey = "phc_development_key" + // PostHogAPIKey is set at build time for production. + // Empty by default to prevent telemetry during IDE builds and local development. + PostHogAPIKey = "" // PostHogEndpoint is set at build time for production PostHogEndpoint = "https://eu.i.posthog.com" )