Repository navigation
fix(tui): give the no-framework screen a way out and a manual setup link - #1611
Merged
johncwaters merged 2 commits intoNov 27, 2026
Merged
johncwaters merged 2 commits into
johncwaters merged 2 commits into
Conversation
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
🧙 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. |
…/5b1138f8-d890-4585-a42b-5a2a35ff2e9b
gewenyu99
approved these changes
Nov 27, 2026
johncwaters
deleted the
glimmervoid/workspace/5b1138f8-d890-4585-a42b-5a2a35ff2e9b
branch
November 27, 2026 18:15
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 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
https://posthog.com/docs/getting-started/install). It covers the snippet, the SDKs, and the framework guides, so it fits whatever the wizard missed.Cancelrow. It callsstore.requestExit(0)like the intro menu's Cancel row.abortNoFrameworkDetectedlinks the same install guide by default. Programs that pass their owndocsUrl(replay-vision, support) keep it.POSTHOG_INSTALL_DOCS_URLinsrc/shared/constants.ts, built fromPOSTHOG_DOCS_URL, since both the TUI and the programs layer read it.Before (
main, a directory with no detectable framework):After:
Test plan
pnpm buildandpnpm typecheckpass.vitest runonsrc/programs/posthog-integration/__tests__/no-framework.test.ts,src/tui/programs/posthog-integration,src/programs/shared, andsrc/services/detection/__tests__/framework.test.ts: 124 passed.eslinton the changed files: 0 errors.prettier --check: clean.wizard-ciMCP server (open_appthenrender_screen) on a directory with only aREADME.txt, before and after the change. The screens above are those renders.Cancelrow through the MCP host, since it only exposesconfirm_setupon this screen. The row uses the samerequestExit(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