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
{{ message }}
Repository navigation
Upgrading Starter→Growth doesn't expand existing prompts' tracked engines (stay at 2 of 8) #79
When an organization upgrades from Starter (2 engines) to Growth (8 engines), existing prompts keep tracking only their original 2 engines. The plan now allows 8, but nothing expands the prompts — so a paying Growth customer keeps getting 2-engine coverage until they manually edit every prompt (or the brand's platform settings).
Why it happens
The tracking worker runs each prompt against its own prompt.platforms array — it does not consult the plan, brand_platforms, or allowedScrapers: tracking-worker.js (scrapersToRun = prompt.platforms ...)
allowedScrapers is never enforced at runtime on the server (no references in server/src), so engine gating only happens at write time in the UI.
The Stripe webhook updates only organizations.plan on upgrade — it never touches prompt.platforms or brand_platforms: stripe/webhook/route.ts
There is no plan-change hook that re-derives or expands the tracked engines.
Impact
A customer who pays for Growth still only tracks 2 of the 8 engines until they discover they must manually enable the rest.
Expected
On upgrade (and ideally on trial start), the newly-available engines should be applied to existing prompts — automatically, or via a clear in-app CTA ("8 engines now available — enable them for your prompts").
Possible directions
On customer.subscription.updated / plan change, expand each prompt's platforms to the plan's allowed set (up to maxPlatforms), or
Surface a banner/CTA on the Prompts/Brand pages when the plan allows more engines than are currently enabled, with a one-click "enable all".
Acceptance criteria
After upgrading to Growth, existing prompts can track the full set of Growth engines without manually editing each prompt
Downgrades stay consistent (no tracking beyond the new plan's limit)
Related: onboarding creates prompts with only Starter's engines even on a Growth trial (separate issue).
Activity
fix(billing): align prompts to new plan's engine set on every plan-ch…