fix(telemetry): respect CI kill switch in python daemon identity

This commit is contained in:
Andrey Avtomonov 2026-05-22 17:51:08 +02:00
parent db7757df32
commit 5e6b235979
2 changed files with 15 additions and 10 deletions

View file

@ -27,7 +27,11 @@ def _telemetry_path(home_dir: Path | None = None) -> Path:
def _env_disables(env: Mapping[str, str] | None = None) -> bool:
source = env or os.environ
return bool(source.get("KTX_TELEMETRY_DISABLED") or source.get("DO_NOT_TRACK"))
return bool(
source.get("KTX_TELEMETRY_DISABLED")
or source.get("DO_NOT_TRACK")
or source.get("CI")
)
def _read_identity(path: Path) -> TelemetryIdentity: