You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(web): fix tryGetPostHogDistinctId to use getAuthenticatedUser
tryGetPostHogDistinctId() was missing OAuth Bearer token resolution,
causing all MCP tool calls to get random distinct_ids (inflated DAU).
Fix: replace the manual cookie/session/API key checks with a call to
getAuthenticatedUser(), which already handles all auth methods (session,
OAuth, API keys). This removes the need to thread userId through
ToolContext, agent options, and all callers.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments