Skip to content

fix(telemetry): tighten analytics privacy and add v0.11 feature events - #1068

Merged
badcuban merged 1 commit into
mainfrom
chore/audit-posthog-analytics
Nov 23, 2026
Merged

badcuban merged 1 commit into
mainfrom
chore/audit-posthog-analytics

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

PostHog analytics missed several features added for v0.11.0 and had privacy and consent gaps, including leaking custom account slugs on thread forks, classifying newer public models as custom, counting historical persisted bindings on shutdown, and failing open when settings.json was corrupt or unreadable.

What changed

  • Consent and fail-closed behavior. Read usageAnalyticsEnabled from ServerSettingsService in memory, re-verify settings.json on disk before outgoing batches, fail closed on malformed or unreadable settings in both server and desktop, clear buffered events and counters on opt-out, skip buffering without a PostHog key, cap re-queued batches on flush failure, and back off on consecutive flush errors.
  • Privacy and sanitization. Emit server-resolved driver kinds and verified registry community agent IDs on thread forks and runtime maintenance instead of user account slugs or caller-supplied strings. Recognize Gemini 4, Muse Code, Claude Mythos, grok-code-*, and OpenAI o1/o3/o4 models while rejecting arbitrary numeric aliases and invalid calendar dates.
  • v0.11.0 feature coverage and accuracy. Add consent-gated daily rollups (DailyCounter) for local outside-agent tools, assistant relay tools, device tools, secret scrubbing redactions (including cross-chunk streaming), and server stalls. Add events and properties for assistant connections after persistence, provider runtime maintenance, thread moves without retry duplicates, device simulator opens using devicePlatform, secret request settlements, room turn lanes, side-turn settlements, multi-agent council reviews counting actually started reviewers, restart recovery, usage-limit auto-continues, goal wait syncs, VS Code theme origin, active shutdown session counts, resumeFailed across all session recovery branches, and enriched startup heartbeat counts.
  • Documentation and tests. Update docs/telemetry.md to match the collected payloads and caveats, and update/add server and desktop tests covering consent, daily rollups, model sanitization, heartbeat counts, and secret scrubbing.

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 23, 2026 11:01pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 23, 2026
@badcuban
badcuban added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 61c496e Nov 23, 2026
23 checks passed
@badcuban
badcuban deleted the chore/audit-posthog-analytics branch November 23, 2026 23:29

This branch was previously deployed

1 inactive deployment
Preview — 01989691 Deployed Nov 23, 2026 by vercel[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