Skip to content

fix(install): send stable per-run id (iid) with telemetry pings#44

Merged
leesaenz merged 2 commits into
mainfrom
fix/install-stable-iid
Jul 18, 2026
Merged

fix(install): send stable per-run id (iid) with telemetry pings#44
leesaenz merged 2 commits into
mainfrom
fix/install-stable-iid

Conversation

@leesaenz

Copy link
Copy Markdown
Collaborator

What

The installer's install_started and install_complete pings each hit fadelab.net/api/ping, which minted a fresh cli-${Date.now()} distinct_id per request — so the two events from one install never shared identity and couldn't be joined into a funnel.

This mints one INSTALL_ID per run (uuidgen, with a portable fallback) and passes it as &iid= on both pings. The server side (fadelab.net api/ping.ts) already ships the matching change to use iid as the PostHog distinct_id, falling back to the old scheme for older clients.

Effect

install_started → install_complete becomes a real person-funnel (true install-reliability rate). Backward-compatible: old clients omit iid and keep working (just unjoinable, as before). Clean funnel data starts from deploy.

Notes

  • Opt-out via PHANTOM_NO_TELEMETRY=1 unchanged.
  • No behavior change to the install itself.

🤖 Generated with Claude Code

leesaenz and others added 2 commits July 18, 2026 02:27
Mint one INSTALL_ID per run and pass it as &iid= on both install_started
and install_complete pings, so the two events from a single install share
identity server-side and can be joined into an install-reliability funnel.
Previously each ping got a fresh random distinct_id, making them unjoinable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Clears CVE-2026-52870, CVE-2026-52869, CVE-2026-59950 flagged by pip-audit
in the mcp framework (pulled transitively via fastmcp). Lockfile-only bump;
fastmcp>=3.2 already permits 1.28.1, so no pyproject change. Full suite green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@leesaenz
leesaenz merged commit 44b6dc5 into main Jul 18, 2026
11 checks passed
@leesaenz
leesaenz deleted the fix/install-stable-iid branch July 18, 2026 07:44
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.

1 participant