Repository navigation
Conversation
Kilyn544
force-pushed
the
feat/setup-two-step-wizard
branch
2 times, most recently
from
November 26, 2026 10:48
6f37252 to
337cc4b
Compare
Replace Quick Install and Customize with a two-step welcome: a short check of this computer, three source cards (Local model, BYOK, Subscription) with the recommended one picked, then the chosen source's settings and Install in the same window size. - Subscription lists Claude Code, Codex and Pi read from this computer through new headless installer commands (--runtime-status, --prepare-runtime, --runtime-login, --device-login); Claude Code and Codex install with progress and sign in with Cancel, Pi installs only. Install is enabled once Claude Code or Codex is signed in; with both, Codex is the default and Claude Code is linked (linkedRuntimes). - BYOK always runs on Pi; no runtime picker. - BYOK and Subscription can also download the planned local model in the background (--download-local-model, off by default). - The local model's wait offers Use Subscription / Use BYOK: the job is cancelled, the model keeps downloading and step 2 shows its progress. - A new installation's owner sign-in is chosen on step 2: prefilled owner@linger.local and a generated password, editable with show/hide, confirm, generate and the server's rules. The installer writes it to local-account.json before the owner exists (--owner-account, stdin); existing installations keep theirs. The ready screen copies the email too. Fixes #715 Fixes #757
- Setup opens on a plain loader; step 1 offers three cards, each a title and one line, with no subtitle, tags or private badge. - Step 2 keeps only what each source needs: the local model and its size; Claude Code and Codex (Pi installs itself when needed); BYOK as URL, API key and Model ID, with a short line for the usual check failures. - Installing shows one progress bar and one changing line, the local model download included, plus the link to switch source. - A failed install shows a short message and one Report issue button, which uses the diagnostics consent flow. - New installs get the owner admin@gmail.com with a generated password; existing installs keep theirs. The ready screen folds the sign-in details, with copy, show and Change password, which posts /v0/account/password and updates the saved desktop login.
… or the picked model
Kilyn544
force-pushed
the
feat/setup-two-step-wizard
branch
from
November 26, 2026 17:14
337cc4b to
f875a8e
Compare
…he system, and centre the install scene Drop the picker subtitle, put the build next to the model name, list what fits first, and show quality words beside the bar. The memory bar now shows what the system holds, the model and what is free. The install line no longer carries file sizes; a download moves the bar through its step. The install and ready orb use Linger's own colours.
When main's free-space pre-check or a location error surfaces the install location row on step 2, the row ran under the fixed Back/Install buttons. While it shows, the title orb and the model's one-line pitch step aside, the model card tightens and the row is compact, so every source fits without moving the buttons.
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.
Fixes #715
Fixes #757
Linear: WHI-1020, WHI-1036
What changes for the user
Desktop setup is two short steps in the same 760×660 window. The main button stays in the same place throughout.
admin@gmail.comwith a generated password. Existing and upgraded installations keep their own account.POST /v0/account/passwordand only then updates the saved login inlocal-account.json. Desktop's automatic sign-in keeps working. The password is never logged.Round 4: motion, the model picker, free space
ram_available_bytes). Change opens a sheet that slides up with every model this Mac can run:Where the picker's data comes from
All real, from the installed kit on this Mac:
library status --json: the models, whether each one fits, and what a model that doesn't fit needs.stack hardware --json: quality, decode speed and the smartest / fastest picks.stack plan --llm … --offline --jsonfor the picked model: its real disk size and whether it can run.Install passes the local model only when one was picked from the list; otherwise the kit picks as before.
How it's wired
setup-sources.tsruns the installer's headless commands, which answer in JSON lines:--runtime-status,--prepare-runtime,--runtime-loginand--download-local-model. They call main's existing code:managed-runtimes,RuntimeLoginManagerandrunLocalmodels. Nothing installs to a global location.@linger/local-installation(DEFAULT_OWNER_EMAIL). It applies only whenlocal-account.jsondoesn't exist yet.local.account.password. LocalServer signs in privately, posts the change, signs that session out, and writes the new password next to the old file before renaming it into place (owner-only). It then signs the window in again.linkedRuntimes, and both are configured.Overlap and lineage
mainat 6a511c1. A real isolated install on the rebased build reached ready and signed in automatically.local-serverfree-space check,setup-windowlocation pick / reset /refreshLocationSpace) together with its tests. Its UI is ported into the new step 2 under the owner's rule that the location stays hidden unless there's a problem (see Round 4). Its page tests were adapted to that rule; the one for the always-visible "customize location" toggle no longer applies.featuredInklingflag, its badge and the announcement link) is removed, per the round 3 request for no badges or spotlights. The web installer'sSetupChoicePanelkeeps it unchanged.apps/desktop/src/shell/setup.htmlandsetup.messages.ts.mainof the approved prototype (proto/feat-setup-two-steps), not a rebase. The prototype's base, 2226ee3, sits on 23 commits that are not onmain, including 3699ef27 and db94c27b / PR feat(desktop): allow skipping local model download with direct BYOK setup #303. Only the UI design was carried over. The wiring is new and uses main's install and login paths.Screenshots
Same 760×660 window. Before is the previous push (f875a8e). After is this push (af12c47), from a real isolated run with its own HOME, data directory and ports.
Round 3 → round 4 on the same head: round 3 vs round 4 sheet
Free space: a real disk with 29 GB free. Local (16.1 GB model) shows the row and holds Install; BYOK on the same disk shows nothing.
Welcome → Choose your AI (bounce, orb flight, staggered cards):
Installing → Ready (bar into orb, bloom and ripple, check, title):
Full walkthrough, about 1.5 min (the welcome check and the install wait are sped up): welcome → step 1 → Local with the picker → Subscription → BYOK → BYOK error → install → ready → sign-in details.
MP4: walkthrough · welcome clip · ready clip
Mockup vs real, for checking drift against the approved direction A:
Where the build differs from the mockup, on purpose:
Notes on the run
openExternalwas stubbed.installer_unreachablefailure code).LOCALMODELS_DEBUG=simulate:vram_gb=24) so the picker shows fitting and non-fitting models; the picker data itself comes from the real kit.Tests
apps/desktop:local-servercovers the password change (status codes, file update, no password in logs), the BYOK failure code, the model list and check, and holding the install when the disk has no room for the picked model.apps/linger-installer: 244 passed.packages/local-installation: 831 passed, 22 skipped. This includes the default owner email for new installs only. On the latest run, the crash-loop timing test innative-process.test.tsfailed once while another install was running on the same machine, then passed 3 of 3 times on its own; this push doesn't touch that package.For the owner to decide
scripts/install/install.sh,install.ps1,scripts/prepare-local-owner.mjs,scripts/source-native.mjs) still default toowner@linger.local. Only the desktop and standalone installer useadmin@gmail.com.