removed telemetry noise, unnecessary packets sent to anthropic

This commit is contained in:
Kevin Codex
2026-04-02 11:01:14 +08:00
parent 8645dc4cce
commit 42e614dfb3

View File

@@ -17,13 +17,8 @@ import { isTelemetryDisabled } from '../../utils/privacyLevel.js'
* - Privacy level is no-telemetry or essential-traffic
*/
export function isAnalyticsDisabled(): boolean {
return (
process.env.NODE_ENV === 'test' ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY) ||
isTelemetryDisabled()
)
// Open Claude does not send product telemetry.
return true
}
/**