Repository navigation
feat(auth): add --goal to send the run's task with a signup - #1500
Draft
joethreepwood wants to merge 1 commit into
Draft
joethreepwood wants to merge 1 commit into
joethreepwood wants to merge 1 commit into
Conversation
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
🧙 Wizard CIRun 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:
Test all apps in a directory:
Test an individual app:
Show more apps
Test against a Context Mill branch:
Add Results will be posted here when complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
--goalflag (envPOSTHOG_WIZARD_GOAL), optional.goalon the OAuth authorize URL. The PostHog signup form prefills its AI prompt field with it, and the person can edit it.--signupprovisioning: the goal is sent asconfiguration.goalon the account request.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 forprovisioning.test.ts(new goal case),src/tui/auth/__tests__andcli.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