fix(cli): stop dropping CI/agent telemetry, suppress HeyGen CI at workflow level

The CI=true early-exit in shouldTrack() was hiding most modern usage
(coding agents in Codespaces, CI pipelines, agent sandboxes). Remove it.
Each event still carries is_ci/is_docker/is_tty from system.ts, so CI vs
laptop traffic can be separated in PostHog without being dropped at
ingestion.

HeyGen's own CI is suppressed via HYPERFRAMES_NO_TELEMETRY=1 added to
each workflow that exercises the CLI.
This commit is contained in:
James
2026-05-20 01:03:41 -04:00
committed by James Russo
parent 16d2966cd9
commit 07bcb4f73b
8 changed files with 35 additions and 5 deletions
-5
View File
@@ -40,11 +40,6 @@ export function shouldTrack(): boolean {
return false;
}
if (process.env["CI"] === "true" || process.env["CI"] === "1") {
telemetryEnabled = false;
return false;
}
if (isDevMode()) {
telemetryEnabled = false;
return false;