MCPcopy Create free account
hub / github.com/T-Lab-CUHKSZ/claude-code / logStartupTelemetry

Function logStartupTelemetry

src/main.tsx:320–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318 return result;
319}
320async function logStartupTelemetry(): Promise<void> {
321 if (isAnalyticsDisabled()) return;
322 const [isGit, worktreeCount, ghAuthStatus] = await Promise.all([getIsGit(), getWorktreeCount(), getGhAuthStatus()]);
323 logEvent('tengu_startup_telemetry', {
324 is_git: isGit,
325 worktree_count: worktreeCount,
326 gh_auth_status: ghAuthStatus as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
327 sandbox_enabled: SandboxManager.isSandboxingEnabled(),
328 are_unsandboxed_commands_allowed: SandboxManager.areUnsandboxedCommandsAllowed(),
329 is_auto_bash_allowed_if_sandbox_enabled: SandboxManager.isAutoAllowBashIfSandboxedEnabled(),
330 auto_updater_disabled: isAutoUpdaterDisabled(),
331 prefers_reduced_motion: getInitialSettings().prefersReducedMotion ?? false,
332 ...getCertEnvVarTelemetry()
333 });
334}
335
336// @[MODEL LAUNCH]: Consider any migrations you may need for model strings. See migrateSonnet1mToSonnet45.ts for an example.
337// Bump this when adding a new sync migration so existing users re-run the set.

Callers 1

runFunction · 0.85

Calls 10

isAnalyticsDisabledFunction · 0.85
getWorktreeCountFunction · 0.85
getGhAuthStatusFunction · 0.85
logEventFunction · 0.85
isAutoUpdaterDisabledFunction · 0.85
getInitialSettingsFunction · 0.85
getCertEnvVarTelemetryFunction · 0.85
isSandboxingEnabledMethod · 0.80

Tested by

no test coverage detected