Skip to content

feat(auth): add --goal to send the run's task with a signup - #1500

Draft
joethreepwood wants to merge 1 commit into
mainfrom
posthog/wizard-signup-goal
Draft

joethreepwood wants to merge 1 commit into
mainfrom
posthog/wizard-signup-goal

Conversation

@joethreepwood

Copy link
Copy Markdown
Contributor

Problem

When an agent starts the wizard for a new user, PostHog learns nothing about the task the agent was given. Growth wants that goal on the signup, next to the AI prompt people type on the web form.

Changes

  • New --goal flag (env POSTHOG_WIZARD_GOAL), optional.
  • Browser login and signup: the goal is added as goal on the OAuth authorize URL. The PostHog signup form prefills its AI prompt field with it, and the person can edit it.
  • --signup provisioning: the goal is sent as configuration.goal on the account request.
  • README: documents the flag under headless signup.

Needs PostHog/posthog#125475 to have an effect. Without it, the extra param is ignored.

Test plan

Agent-run: pnpm build, pnpm typecheck, and vitest for provisioning.test.ts (new goal case), src/tui/auth/__tests__ and cli.test.ts. No manual run against a live PostHog.

LLM context

Written by the PostHog Slack app (Claude Code, Claude Opus 5.5) from a Slack thread. The flag is optional on purpose: a required goal would get filler text, and the wizard does not ask agents to send conversation content.


Created with PostHog from a Slack thread

🤖 Generated with Claude Code

The goal rides on the OAuth authorize URL, so a browser signup records it as the prompt that led to PostHog, and goes in `configuration.goal` on a --signup provisioning request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Generated-By: PostHog Desktop
Task-Id: 038868e9-4d8b-4af8-ac66-f38309276c35
@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci ai-observability
  • /wizard-ci basic-integration
  • /wizard-ci feature-flags
  • /wizard-ci mcp-analytics
  • /wizard-ci replay-vision
  • /wizard-ci revenue
  • /wizard-ci self-driving
  • /wizard-ci warehouse
  • /wizard-ci warehouse-seeded

Test an individual app:

  • /wizard-ci ai-observability/anthropic
  • /wizard-ci ai-observability/google-adk
  • /wizard-ci ai-observability/groq
Show more apps
  • /wizard-ci ai-observability/manual-capture
  • /wizard-ci ai-observability/openai
  • /wizard-ci ai-observability/openai-agents
  • /wizard-ci ai-observability/opentelemetry
  • /wizard-ci ai-observability/vercel-ai
  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/flutter
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci feature-flags/django
  • /wizard-ci feature-flags/next-js
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci replay-vision/javascript-node
  • /wizard-ci replay-vision/next-js
  • /wizard-ci replay-vision/react-vite
  • /wizard-ci revenue/stripe
  • /wizard-ci self-driving/astro
  • /wizard-ci self-driving/fastapi
  • /wizard-ci self-driving/nuxt
  • /wizard-ci self-driving/react-router
  • /wizard-ci self-driving/sveltekit
  • /wizard-ci warehouse/monorepo-env
  • /wizard-ci warehouse/multi-source-next
  • /wizard-ci warehouse/stripe-node
  • /wizard-ci warehouse/zero-source
  • /wizard-ci warehouse-seeded/next-stripe
  • /wizard-ci warehouse-seeded/next-stripe-declined

Test against a Context Mill branch:

  • /wizard-ci all context-mill:my-branch

Add context-mill:<branch> to any command above to pin the Context Mill branch. It defaults to main.

Results will be posted here when complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant