Repository navigation
feat(setup): bring back setup with ChatGPT or Claude on a new box - #2105
Merged
Merged
Conversation
#2100 took the welcome step's assistant card away, so nothing called POST /api/setup/assistant any more, while FTW Cloud's texts still send people to "Start assistant setup" on the box's page. A new box's welcome step now has one quiet link under Get started, "Set up with ChatGPT or Claude instead". It opens the house password, typed twice, and the "Start assistant setup" button. The button posts to /api/setup/assistant as the old card did, waits for the box to restart and then follows the reply's next, resolved from the page's folder so it stays under Home Assistant's ingress prefix. A next that leaves the box falls back to the Access page. Under Home Assistant the form asks for no password: Core ignores one there, because Home Assistant signs its users in. The old card asked anyway. A running box shows no link, since only the first-start server answers the call. The guide's last step adds one line: you can connect ChatGPT or Claude later from Settings → Access. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 28, 2026
Review of the assistant path on the welcome step: - A lost reply said the browser's own error, such as "Failed to fetch". It now says "The box is restarting. Checking whether it has started…". - After 30 tries the page said "before you try again" with the button still off. The button comes back with "Open the box, or try again." A retry is safe: Core refuses a second first-start write. - A box that already has settings answers 409 from the first-start server, or 404 once it runs. Both now say "This box already has settings. Open the box instead." with the link, not Core's path text. - Each wait for the restart gives up on one request after 3 seconds. - The fields sit in a form, so Enter starts setup. Under Home Assistant the Start button takes focus when the form opens. Tests cover the lost reply, the 30-try stop and its link, both refusals, another refusal's own reason, Enter, and Home Assistant focus. A Go test runs the real setup.js and setup.html through the ingress rewrite, so the calls keep Home Assistant's prefix and the page built from Core's reply does not get it twice. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]>
frahlg
added a commit
to srcfl/ftw-web
that referenced
this pull request
Nov 28, 2026
The way in for an assistant leads with Settings → Access after the setup guide, which every current box has. The first-page choice, Set up with ChatGPT or Claude instead, comes with the next beta (srcfl/ftw#2105), and the pages say so. Claude: Customize → Connectors, +, Add custom connector, on claude.ai or the desktop app, keeping the recommended sign-in; on Team or Enterprise an owner adds it. ChatGPT: Plugins, +, Add custom MCP server, on the web, with no developer mode; a Business workspace needs an admin, and Pro can read but not control or set up. Both follow the vendors' help pages as of today. "Home Assistant OS" where the pages say what FTW runs on. Plainer Swedish. robots.txt also keeps out /future/api/. The home page's Copy buttons and the header buttons on every page are 44 px tall. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]>
frahlg
added a commit
to srcfl/ftw-web
that referenced
this pull request
Nov 28, 2026
* One way in: a start page, /claude, a real 404 and phone polish /start and /sv/start say what a home needs (a computer that stays on, equipment from the device catalog, 6 of 91 drivers confirmed on real hardware), that FTW is in public beta, and the four ways to start: Home Assistant, one install line on any 64-bit Linux computer with systemd, a ready box (waitlist) and an AI assistant. Then the phone: the App Store, the Android test build through Discord, and the demo. Plain text pages an assistant can read and follow. The home page's hero gets a "You need" line, and Get FTW and the row of ways lead to /start. Section 05 names the catalog count and the beta. The Swedish Discord button says so, and the news has 28 Nov. /claude redirects to /start#assistant. 404.html turns off Pages' fallback to the home page, so unknown paths answer 404. robots.txt is new. The ChatGPT pages no longer speak of a development installation or deny setup writes: the public profile has setup tools behind a separate grant the owner approves on the box. They give the MCP address and the steps. home.css: toggles, assistant tabs and the vision link are 44 px tall, no label outside the drawn iPhone is under 11 px, and the app screenshots have short alt text. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]> * Assistant steps true on today's boxes; current Claude and ChatGPT steps The way in for an assistant leads with Settings → Access after the setup guide, which every current box has. The first-page choice, Set up with ChatGPT or Claude instead, comes with the next beta (srcfl/ftw#2105), and the pages say so. Claude: Customize → Connectors, +, Add custom connector, on claude.ai or the desktop app, keeping the recommended sign-in; on Team or Enterprise an owner adds it. ChatGPT: Plugins, +, Add custom MCP server, on the web, with no developer mode; a Business workspace needs an admin, and Pro can read but not control or set up. Both follow the vendors' help pages as of today. "Home Assistant OS" where the pages say what FTW runs on. Plainer Swedish. robots.txt also keeps out /future/api/. The home page's Copy buttons and the header buttons on every page are 44 px tall. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]> --------- Signed-off-by: Fredrik Ahlgren <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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
#2100 took the welcome step's "Set up with your AI assistant" card away. Since then nothing calls
POST /api/setup/assistant(go/cmd/ftw/bootstrap.go, which answersnext: "/?setup=assistant"), while FTW Cloud's MCP texts and the plugin skills still tell people to "choose Start assistant setup on the box's local page". A person whose ChatGPT or Claude sends them to a new box finds no such button.Change
/api/auth/statusanswers 404 there), because only the first-start server answers/api/setup/assistant. The link opens a small form: house password, typed twice, and a button labelled exactly Start assistant setup, so the Cloud texts stay true.{confirmed: true, password}to/api/setup/assistantas the old card did, waits for the box to restart, then follows the reply'snext.nextis resolved from the page's own folder, so under Home Assistant it stays below the ingress prefix (API JSON is not rewritten there). Anextthat is not a path on the box falls back to?setup=assistant. The fields sit in a form, so Enter starts setup.{confirmed: true}. The old card asked anyway, but Core ignores a password under ingress because Home Assistant signs its users in (TestHomeAssistantBootstrapNeedsNoSecondPassword). The guide's own last step already skips it there. The flag is read when the form opens, sincehome-assistant.jsis deferred and runs aftersetup.js. The Start button takes focus there.setup.js?v=assistant2so browsers take the new script. Changeset: patch.No Go change outside tests. The endpoint is as before.
Tests
node --test web/setup*.test.mjs: 72 pass.web/setup-connection.test.mjsdrops the test that said the card is gone and adds tests for: the link and closed form, no link on a running box, the form and button label, Enter, a mistyped password, the call andnext, anextoff the box, a lost reply, the 30-try stop and its link, 409 and 404, another refusal, and Home Assistant (no password, focus, URL under the prefix).node --test 'web/**/*.test.mjs': 1065 pass.go test -count=1 ./go/cmd/ftw/...: ok.go test ./go/internal/api/: ok.nice -n 10 make verify: "vet + test + build clean", exit 0 (88 Go packages ok), on the first commit. The fix commit ran the suites above and below.TestIngressKeepsSetupAssistantPathsUnderHAruns the realsetup.jsandsetup.htmlthroughingressAsset: every call carries the prefix, the parts that build the page from Core's reply stay relative, and the Open the box link keeps the prefix. It fails if the fallback becomes'/?setup=assistant'.Browser
Local Core built from this branch, first-run mode with an empty state directory, at
127.0.0.1:8080/setup:window.FTWHomeAssistantset, the form shows no password fields and no "sign in" words./setup?step=5): the two lines sit together under Start FTW.A person still needs to look at it in a browser before merge.
🤖 Generated with Claude Code