Skip to content

Commit db36fc9

Browse files
KryptosAIclaude
andauthored
fix: await identity collection to prevent null telemetry fields (#85)
The identity collection (gitEmail, gitRemoteUrl, hostname) was fire-and-forget, causing a race condition where short-running commands would emit telemetry before the identity cache populated. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ca4f944 commit db36fc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ async function main(): Promise<void> {
195195

196196
// Telemetry: load config and warm identity cache in background
197197
await loadTelemetryConfig();
198-
collectUserIdentity().catch(() => {});
198+
await collectUserIdentity().catch(() => {});
199199

200200
// Update check (CLI only, not MCP server mode)
201201
if (process.argv[2] !== "serve") {

0 commit comments

Comments
 (0)