Skip to content

fix(tui): give the no-framework screen a way out and a manual setup link - #1611

Merged
johncwaters merged 2 commits into
mainfrom
glimmervoid/workspace/5b1138f8-d890-4585-a42b-5a2a35ff2e9b
Nov 27, 2026
Merged

johncwaters merged 2 commits into
mainfrom
glimmervoid/workspace/5b1138f8-d890-4585-a42b-5a2a35ff2e9b

Conversation

@johncwaters

Copy link
Copy Markdown
Contributor

Problem

When detection finds no framework, the intro screen drops you into a picker of 27 raw integration ids with no way out and no hint that there's another way to install PostHog. Someone running it for the first time on a plain HTML site (no package.json) has nothing to pick and has to know Ctrl+C to leave. The headless abort for the same case links /docs/libraries, which lists SDKs, not install paths.

Closes #869. Companion to the docs-side fix in PostHog/posthog.com#18390, which points static sites at the JS snippet from the wizard docs.

Changes

  • The no-framework screen adds a line under "Could not auto-detect your framework." that links the install guide (https://posthog.com/docs/getting-started/install). It covers the snippet, the SDKs, and the framework guides, so it fits whatever the wizard missed.
  • The framework picker ends with a Cancel row. It calls store.requestExit(0) like the intro menu's Cancel row.
  • abortNoFrameworkDetected links the same install guide by default. Programs that pass their own docsUrl (replay-vision, support) keep it.
  • The URL lives in POSTHOG_INSTALL_DOCS_URL in src/shared/constants.ts, built from POSTHOG_DOCS_URL, since both the TUI and the programs layer read it.

Before (main, a directory with no detectable framework):

        ███ PostHog Wizard 🦔
 Could not auto-detect your framework.
         Select your framework
       Type to filter 27 options
▸ nextjs               flutter
  nuxt                 kmp
  vue                  swift
  react-router         android
  tanstack-start       rails
  tanstack-router      elixir
  react-native         go
  angular              rust
  astro                java
  django               python
  flask                ruby
  fastapi              javascript_web
  laravel              javascript_node
  sveltekit

After:

                ███ PostHog Wizard 🦔
        Could not auto-detect your framework.
Pick your framework below, or set PostHog up by hand:
  https://posthog.com/docs/getting-started/install
                 Select your framework
               Type to filter 28 options
        ▸ nextjs               flutter
          nuxt                 kmp
          vue                  swift
          react-router         android
          tanstack-start       rails
          tanstack-router      elixir
          react-native         go
          angular              rust
          astro                java
          django               python
          flask                ruby
          fastapi              javascript_web
          laravel              javascript_node
          sveltekit            Cancel

Test plan

  • pnpm build and pnpm typecheck pass.
  • vitest run on src/programs/posthog-integration/__tests__/no-framework.test.ts, src/tui/programs/posthog-integration, src/programs/shared, and src/services/detection/__tests__/framework.test.ts: 124 passed.
  • eslint on the changed files: 0 errors. prettier --check: clean.
  • Rendered the real TUI through the wizard-ci MCP server (open_app then render_screen) on a directory with only a README.txt, before and after the change. The screens above are those renders.
  • I didn't select the Cancel row through the MCP host, since it only exposes confirm_setup on this screen. The row uses the same requestExit(0) call as the intro menu's Cancel.

LLM context

Written with Claude Code (Opus 5.5) from a review of PostHog/posthog.com#18390.

Automated review by Glimmervoid. Not written by a human

When detection finds no framework, the picker lists raw integration ids
with no exit row and no pointer to another install path, and the
headless abort links /docs/libraries.

The screen now shows a line with the install guide
(posthog.com/docs/getting-started/install) under "Could not auto-detect
your framework.", the picker ends with a Cancel row that exits with
code 0, and the shared no-framework abort links the same install guide.
Programs that pass their own docsUrl (replay-vision, support) keep it.

Refs #869

Not-tested: UI change not rendered with the layout-shift tool (Ink terminal UI); the real TUI was rendered through the wizard-ci MCP render_screen for a no-framework fixture
Confidence: medium
Scope-risk: narrow
@johncwaters
johncwaters requested a review from a team as a code owner November 25, 2026 16:12
@veria-ai

veria-ai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR overview

No security issues were found in this pull request.

Reviews

@posthog-security-review-bot posthog-security-review-bot Bot added the security-review Request a security review label Nov 25, 2026
@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/go-sdk
  • /wizard-ci mcp-analytics/python-sdk
  • /wizard-ci mcp-analytics/ruby-sdk
  • /wizard-ci mcp-analytics/rust-sdk
  • /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.

@johncwaters
johncwaters merged commit 1f07684 into main Nov 27, 2026
19 checks passed
@johncwaters
johncwaters deleted the glimmervoid/workspace/5b1138f8-d890-4585-a42b-5a2a35ff2e9b branch November 27, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security-review Request a security review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Framework picker has no exit. Ctrl+C is the only way out and it's never mentioned

2 participants