Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(onboarding): skip team-scoped tasks call in shared views (#68623)

Robbie4b0c3e627d7f
diff --git a/frontend/src/scenes/onboarding/shared/setupWizardStatusLogic.ts b/frontend/src/scenes/onboarding/shared/setupWizardStatusLogic.ts
index 5358cf58e652..a9b0f2cd30e5 100644
--- a/frontend/src/scenes/onboarding/shared/setupWizardStatusLogic.ts
+++ b/frontend/src/scenes/onboarding/shared/setupWizardStatusLogic.ts
@@ -11,6 +11,8 @@ import {
} from 'scenes/onboarding/self-driving/sdks/OnboardingInstallStep/installationProgressLogic'
import { teamLogic } from 'scenes/teamLogic'
+import { isSharedView } from '~/exporter/exporterViewLogic'
+
import { tasksList, tasksRunsList } from 'products/tasks/frontend/generated/api'
import type { TaskRunDetailDTOApi } from 'products/tasks/frontend/generated/api.schemas'
@@ -121,6 +123,11 @@ export const setupWizardStatusLogic = kea<setupWizardStatusLogicType>([
null as DiscoveredSetupRun | null,
{
loadDiscoveredRun: async (): Promise<DiscoveredSetupRun | null> => {
+ // The onboarding wizard is meaningless to a logged-out viewer, and the tasks API
+ // it hits is team-scoped, so it 403s in a shared/exported view. Skip it entirely.
+ if (isSharedView()) {
+ return null
+ }
// Mounted before the team loaded: the currentTeamId subscription below retries
if (values.currentTeamId === null) {
return null