The heuristic that detects whether Claude Code is running under external orchestration (for telemetry/attribution) now checks environment variable names against allowlists more generically, using set-membership checks. Several individually-checked variables, including CLAUDE_CODE_OAUTH_TOKEN, CLAUDE_CODE_ARTIFACTS_API_TOKEN, and the CLAUDE_BG_* vars, were dropped in favor of this approach.
Simplified cloud/CI environment detection
Detection of external orchestration now checks env var names against allowlists, dropping several individual checks.
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
TelemetryArea: what it touches
Internal ChangesKind: in v2.1.257,
Internal ChangesSection of the release