Skip to content

Track CLI OAuth users in PostHog#723

Merged
zahlekhan merged 1 commit into
mainfrom
codex/cli-posthog-oidc-alias
Jul 7, 2026
Merged

Track CLI OAuth users in PostHog#723
zahlekhan merged 1 commit into
mainfrom
codex/cli-posthog-oidc-alias

Conversation

@zahlekhan

@zahlekhan zahlekhan commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • alias the CLI anonymous PostHog distinct id to canonical OIDC userinfo.sub after OAuth API-key minting succeeds
  • pass CI and terminal interactivity context with CLI analytics (ci, stdin/stdout TTY flags, is_interactive_terminal)
  • keep aliasing best-effort via the PostHog SDK and only log PostHog failures when OPENUI_TELEMETRY_DEBUG=1
  • tighten CLI telemetry copy to describe OAuth account-id linking without email/name/API-key collection
  • bump @openuidev/cli from 0.1.2 to 0.1.3

Verification

  • pnpm exec prettier --check packages/openui-cli/src/lib/telemetry.ts packages/openui-cli/src/auth/mint.ts packages/openui-cli/README.md
  • pnpm --filter @openuidev/cli run build:cli
  • pnpm --filter @openuidev/cli run lint:check
  • pnpm install --lockfile-only --filter @openuidev/cli...

@zahlekhan
zahlekhan force-pushed the codex/cli-posthog-oidc-alias branch 6 times, most recently from 1491cba to 684219c Compare July 7, 2026 06:22
@zahlekhan
zahlekhan force-pushed the codex/cli-posthog-oidc-alias branch from 684219c to cac2eda Compare July 7, 2026 06:26
@zahlekhan
zahlekhan merged commit 33d1dc3 into main Jul 7, 2026
2 checks passed
@zahlekhan
zahlekhan deleted the codex/cli-posthog-oidc-alias branch July 7, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants