-
fix(analytics): open settings on self-hosted, name missing scopes in panels
发布于
2026-08-02 03:36:04 +00:00 The Analytics Config gear was disabled by
!projectId, which on self-hosted
is permanent — there is no project id by design. WebscraperSidebar fixed the
identical gate already (its comment even says "mirrors Analytics"); this
adopts the same!isSelfHosted && !projectIdcondition.Panel failures caused by a missing key scope told the user the key "may
have been revoked — reconnect PostHog", when PostHog's 403 body names the
actual fix (e.g. missing scope 'session_recording:read' — one checkbox on
the key). upstreamError now surfaces that detail on 401/403, matching what
connect-time rejection already does.Found by manual testing: a key with organization/project/query read but no
session recording scope made Session Replay "fail to load" with the
misleading revocation message, and the settings gear could never be opened
to inspect the connection.Container run: provider tests 30, dashboard component 135, typecheck clean.
下载附件