Skip to content

fix(telemetry): report remaining public model names instead of custom - #1092

Merged
badcuban merged 1 commit into
mainfrom
fix/posthog-model-labels-and-latency
Nov 24, 2026
Merged

badcuban merged 1 commit into
mainfrom
fix/posthog-model-labels-and-latency

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

Public models sent by OpenCode, fx, Cursor, Antigravity, Claude, Grok, and community ACP agents still fell back to custom in PostHog because the allowlist only covered a handful of model families and restricted the pinned public catalog to the built-in Pi driver.

Fix

  • Share the pinned public model catalog across all providers (excluding azure/* outside built-in Pi and plain single-word bare IDs) and add public vendor and gateway prefixes (alibaba, deepseek, minimax, mistral, moonshotai, opencode-go, qwen, spacexai, x-ai, zai, and related prefixes).
  • Add tight patterns for DeepSeek, GLM, Qwen, Kimi, MiniMax, Mistral/Devstral/Codestral, Llama, Gemma, gpt-oss-*, Antigravity variants (gpt-6-1, gemini-pro-agent, -xhigh, -extra), Grok grok-build-*, Cursor composer-*-fast and version-first Claude slugs, and Claude aliases (normalizing versioned shorthands like opus-4.6 to claude-opus-4-6).
  • Strip known safe option suffixes ([1m], known Cursor bracket traits like [reasoning=high], :free, :batch) while keeping private gateways, Azure deployments, unknown suffixes, and arbitrary numeric tails redacted as custom.
  • Update docs/telemetry.md and AnalyticsProperties.test.ts.

Public models sent by OpenCode, fx, Cursor, Antigravity, Claude, Grok, and community ACP agents still fell back to "custom" in PostHog because the allowlist only covered a handful of families and restricted Pi's catalog lookup to the built-in Pi driver.

- Reuse the pinned public model catalog across all providers (keeping Azure deployments custom outside built-in Pi and skipping plain single-word bare IDs) and add public vendor and gateway prefixes.
- Add strict patterns for DeepSeek, GLM, Qwen, Kimi, MiniMax, Mistral/Devstral/Codestral, Llama, Gemma, gpt-oss, Antigravity variants (gpt-6-1, gemini-pro-agent, -xhigh, -extra), Grok build slugs, Cursor composer and Claude variants, and Claude aliases (normalizing versioned shorthands like opus-4.6 to claude-opus-4-6).
- Strip safe option suffixes ([1m], known Cursor bracket traits, :free, :batch) while keeping unknown suffixes, private gateways, Azure deployments, and arbitrary numeric tails redacted as custom.
- Update docs/telemetry.md and unit tests to match.
@vercel

vercel Bot commented Nov 24, 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 24, 2026 6:43pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 99e8177 Nov 24, 2026
25 checks passed
@badcuban
badcuban deleted the fix/posthog-model-labels-and-latency branch November 24, 2026 18:56

This branch was previously deployed

1 inactive deployment
Preview — 001f3f4d Deployed Nov 24, 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