Skip to content

fix: await identity collection to prevent null telemetry fields#85

Merged
KryptosAI merged 1 commit intomainfrom
fix/await-identity
Mar 25, 2026
Merged

fix: await identity collection to prevent null telemetry fields#85
KryptosAI merged 1 commit intomainfrom
fix/await-identity

Conversation

@KryptosAI
Copy link
Copy Markdown
Owner

Summary

  • Awaits collectUserIdentity() in cli.ts instead of fire-and-forget
  • Fixes race condition where gitEmail, gitRemoteUrl, and hostname were null on telemetry events because the identity cache hadn't populated before commands completed

Also deployed (separate from this PR)

  • Updated telemetry worker to INSERT all 34 enrichment fields (was only inserting 19)
  • Verified all D1 columns exist and enrichment data now flows end-to-end

Impact

All telemetry events will now include identity fields when available. Combined with the worker fix, all 15 previously-null enrichment fields will now be stored.

🤖 Generated with Claude Code

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>
@KryptosAI KryptosAI merged commit db36fc9 into main Mar 25, 2026
1 of 2 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 0.20.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant