Repository navigation
Conversation
Kilyn544
force-pushed
the
feat/setup-two-step-wizard
branch
3 times, most recently
from
November 26, 2026 17:14
337cc4b to
f875a8e
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 [email protected] 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 [email protected] 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
…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.
… and Codex marks The install scene's idle motion is slower and smaller: the orb turns once every 48 s and breathes over 6 s, and the agent cards lean 2 degrees and drift 3 px over 14 s. Every animated layer moves by transform or opacity only and is promoted to its own layer, so nothing repaints mid-move. The subscription rows show Anthropic's Claude mark from claude.com and OpenAI's Codex mark from the official Codex app instead of the generic outline icons. The Codex mark is served by the setup window, since the page only loads images from the app.
… agent The two cards beside the install orb now read "Local / Runs on this Mac" and "Personal agent / Works just for you", with the zh-CN copy to match. Their subtitles were nearly invisible at 40% opacity in a faint grey; the cards now sit at 90% while installing and full once ready, with a darker subtitle (about 4.4:1 against the card).
The welcome plays its intro and hands off to step 1 while this computer is still being checked. The Local card stays selectable with a quiet shimmer; its settings show a skeleton until the check answers, with Change and Install disabled. The advice settles once before any interaction and never moves a card the person picked; Continue cannot land on a local model the check turned down, and a failed check says so briefly on the card. Setup copy is platform-neutral (this computer / Needs N GB of memory); platform names remain only where the text is platform-specific. Drop the 'Also download the local model' toggle: BYOK and Subscription download no local model; Settings > Models adds one later. Leaving a local install for BYOK or Subscription still keeps its model downloading.
The Ready screen's sign-in details no longer offer to show where the account file lives. The local.account.reveal setup command, its handler and its messages are removed; the password is still copied without being shown on the page.
Step 1 is only the choice of AI and Continue. Setup still offers the team server when this computer cannot install Linger locally.
The two dots in the top-right corner read like window controls. The step is still announced to screen readers.
Local, BYOK and Subscription all show where Linger installs, with Change and, for a folder other than the default, Reset. The path is shortened in the middle to fit, with the whole path in its tooltip. A folder Linger cannot use, or a disk without room, is said inside the row and holds Install; under the local model's card the title orb gives way so the step still fits above the buttons.
Kilyn544
force-pushed
the
feat/setup-two-step-wizard
branch
from
November 27, 2026 07:13
c25b955 to
526c396
Compare
…y icon The step 2 Local model card now names the model with its family's mark on a tinted tile, as the app's Local models page does (the featured Inkling sparkle, each family's Hugeicons mark, or the generic chip), and each picker row leads with the same mark. The kit's family and the featured flag pass from the library status through the setup model options. The card says less: the subline is just the vendor (no parameter counts, also in the picker), the pitch line is gone (the row stays for a fit check or a problem), and the stats are Quality and Speed only; the download size still drives the disk check and the picker's size chip.
Replace the gradient orb with the logo's wedge and dot, embedded verbatim from apps/web/public/favicon.svg (direction B, Build): - welcome: the outline draws, fills with ink, then the dot drops in with the approved bounce while the title rises - step 1: all three source cards share one mark; unpicked cards show the outline, the picked card fills and its dot pops - step 2 header: the solid mark at 44 px - install: the mark empties to a pale outline as it flies in, an ink trace follows the progress bar's value and the dot's ring pulses; side cards show a mini solid mark and the dot inside its ring - ready: the fill floods, the dot pops with a ripple and the check draws - failure: grey outline with the trace stopped - wash, memory-bar model segment and featured model tile use the logo orange instead of the orb's blue and pink Motion stays transform/opacity except the trace's stroke-dashoffset; reduced motion cross-fades and skips the pulse, trace and check drawing. Strings are unchanged.
The install mark's modifier class was 'scene', which the page already uses for the old top-bar art: hidden in the wizard, 190 px tall, with a background image. Rename it to mark-scene and pin it in the page test. The page's generic svg rule also gave the mark an inherited 1.75 px icon stroke, which drew a dark rim around the orange dot; the mark's svg now sets no stroke, and the hidden defs svg is really zero-sized.
Main's merge moved the app's Local models page from Hugeicons family marks to the makers' official logos (local-model-brand-icon.tsx), so the setup card and picker no longer matched it. - Serve that page's own logo files to the setup page at app://setup/model-logo/<file>, so there is one copy and no drift. - Resolve a model's logo the way resolveModelBrand does: Inkling 2 Mini, then the family, then the Hugging Face organization of its source_url, then the id prefix, else the plain layered mark. - Pass that organization from the kit's library status through the setup model options as sourceOrg, kept only when it is a plain slug. - Neutral tiles as on that page: full-bleed logos fill a white tile, the rest sit small on the field tone; a too-large row greys its logo.
…ux browser login, and mode switch - Raise RuntimeLoginManager probe timeout to 45s, keep active sign-in sessions intact across transient poll probe failures, and accept optional Code prefix with CRLF/ANSI-stripped device-code output. - Cache runtime descriptor inspection per setupRuntimeLogin invocation and map TimeoutError/COMMAND_TIMEOUT to timed_out with clean wording; propagate sign-in failure reasons to localized copy on setup runtime rows. - Add Codex-only --browser-login to the installer CLI and pass it for Linux setup browser sign-in, and allow switching a live Codex sign-in between browser and device code without stale process callbacks clobbering state. - Return 504 RUNTIME_LOGIN_TIMEOUT from /api/runtime-login on probe timeouts instead of 400 INVALID_REQUEST, and retry transient 503/504/timeout poll errors in LocalServerModule sign-in polling without aborting installation.
Kilyn544
force-pushed
the
feat/setup-two-step-wizard
branch
from
November 27, 2026 11:25
967c5b9 to
573e6b9
Compare
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.
[email protected]with 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
(Round 7B replaced the orb with the Linger mark. Where rounds 4 and 5 say "orb", the mark now does the same thing; see Round 7B.)
ram_available_bytes). Change opens a sheet that slides up with every model this computer can run:Where the picker's data comes from
All real, from the installed kit on this computer:
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.
Round 5: a calmer install scene, official marks
transformoropacity, on its own compositor layer (will-change,backface-visibility: hidden). Nothing animatestop,left,filterorbox-shadow, and no text moves.requestAnimationFramein the real app during a real install:#D97757. It is inlined as SVG, taken unchanged from https://claude.com/favicon.svg (the same file as https://claude.ai/favicon.svg).resources/brand/codex.pngatapp://setup/codex.png, because the setup page's CSP (img-src 'self') blocks inline data images.Round 5c: a welcome that never waits, neutral wording, no model toggle
Welcome never waits for the local model check. The "Choose now" button and the slow-check timer are gone. Step 1 opens right away:
Platform-neutral wording (en + zh-CN). Copy that said "Mac" now says "computer". Changed strings:
The install scene's two cards read Local / "Runs on your computer" (本地运行 / 数据留在你的电脑上) and Personal agent / "Works just for you" (个人 Agent / 只为你工作). The macOS permission rows, the menu bar / tray wording and the macOS version requirement stay platform-specific on purpose.
The "Also download the local model" toggle is removed, from the page, the setup job (
backgroundis gone fromshared/setup.ts,setup-window,local-serverand thesetup-commandschema, which now rejects it) and the docs. A local model can be added later in Settings › Models;docs/local-inference.mdsays so."Use Subscription or BYOK meanwhile" is kept. It only shows after Local was picked, while the model downloads. It cancels the install job and goes back to choose another source; the model keeps downloading in the background and shows up in Settings › Models.
Round 6: install location always visible, fewer extras
D:\Users\some…\Linger Workspace\data). The whole path is in the tooltip.local.account.revealIPC op, its messages and tests.local-account.jsonis still owner-private.shell.showItemInFolderstays because diagnostics uses it.verify-linger's desktop journey describes the always-visible row.Round 6b: a simpler local model card
Owner feedback on the round 6 card: too much text, and "26.4B · 3.4B" meant nothing to anyone.
Round 7B: the Linger mark replaces the orb (B · Build)
The setup animation now uses the Linger mark (B · Build), replacing the orb. The mark is the logo's wedge and dot, embedded verbatim from
apps/web/public/favicon.svg. The owner picked direction B from the motion prototypes.#fda946) instead of the orb's blue and pink.transformandopacityanimate, except the trace'sstroke-dashoffset. With "Reduce motion" on, screens cross-fade, and there is no pulse, trace or drawn check. No strings changed.scene) matched the page's old top-bar art rule, which is hidden in the wizard. Separately, the dot had a dark rim because it inherited the page's generic icon stroke. The class is nowmark-scene, the mark's svg sets no stroke, and a page test pins the class.Where the build differs from the prototype:
sc-ball→sc-mark,hd-orb→hd-mark,intro-orb→intro-mark,intro-ball→intro-logo.#F1AD5Arather than#fda946. That is most likely the capture's display colour profile; the page uses#fda946.Round 8: the makers' logos, as on Local models (f4dd0d8)
Main's merge (e7e0034) brought a new Local models page that draws each model with its maker's official logo (
local-model-brand-icon.tsx) instead of Hugeicons family marks, so setup no longer matched it.app://setup/model-logo/<file>(one copy, no drift) and picks one the wayresolveModelBranddoes: Inkling 2 Mini → Thinking Machines; then the family (Claude, DeepSeek, Gemma, GLM, Grok, Kimi, Llama → Meta, Mistral, OpenAI, Phi, Qwen); then the Hugging Face organization of the model'ssource_url(inclusionAI, Ornith AI, Thinking Machines, XHToken); then the id prefix (ornith-,spark-,ling-); else the page's plain layered mark.library statusand passes through the setup model options assourceOrg, kept only when it is a plain slug.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, both are configured, and Codex is the default runtime (owner decision, round 6).Overlap and lineage
mainat 0948d3d (round 6; earlier rounds were on 6a511c1, then 4ceaaba). A real isolated install on the round 6 build reached ready and signed in automatically.locationHint) and the Back button beside Report issue, because nested folders on a data drive (for exampleD:\program\Linger) are now accepted. This branch follows main and does not bring them back. Main's folder checks, the rejected-path handling, Change / Reset and the free-space warning are all kept.local-serverfree-space check,setup-windowlocation pick / reset /refreshLocationSpace) together with its tests. Its UI is ported into the new step 2. Since round 6 the location row is always visible, on every source, so Windows users can always move the install off the system drive; main's "customize location" toggle is replaced by that always-visible row.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
Round 8
Before is r7 (Hugeicons family marks), after is f4dd0d8, in English and zh-CN. In the "picked Qwen" shot the isolated run's disk is 1 GB short for that model, so the existing low-disk warning takes the mark's room.
Lower picker rows (XHToken, inclusionAI, too-large models greyed): picker-lower
Rounds 6b + 7B
Same 760×660 window. Before is r5c (c25b955), after is this branch at c0b615b, in English and zh-CN. The later merge of main (e7e0034) leaves these screens unchanged; I checked welcome, step 1 and step 2 on it. Each comes from a real isolated run with its own HOME, data directory and ports.
Welcome, step 1, step 2 (Local, with the family icon and the location row):
Installing (early, late), Ready, Error:
zh-CN: welcome · step 1 · step 2 Local · picker · install early · install late · ready · error. English extras: welcome while the dot drops · picker · ready, sign-in details.
Video, real time, never sped up (2:11): walkthrough. A fresh English home: welcome → step 1 → Local → the picker → back → BYOK → Install, then "… 7 min later" (the install at 40 %, ring pulsing), "… 5 min later" (41 % → 84 % → ready: the flood, the dot pop, the ripple and the check), and "… 50 s later" (opening the sign-in details).
Notes on these runs
openExternalwas stubbed. The error screens are real failures, induced by stopping the installer process at 40 %.Round 6
Same 760×660 window. Before is r5c (c25b955), after is round 6 in English and zh-CN, each from a real isolated run with its own HOME, data directory and ports. The screens were captured on the round 6 build on main 4ceaaba. Rebasing onto 0948d3d only removed the install-error hint, which these screens don't show.
Step 2 with the location row, Local · BYOK · Subscription:
A folder Linger can't write to, Local · BYOK · Subscription:
Step 1 without the team-server link or pips: en · zh-CN. Ready, expanded, without "Open account file location": en · zh-CN. zh-CN step 2: Local · Subscription warning.
Video, real time (19 s), never sped up: step 1 → step 2 → change location. It starts from a fresh English home: Continue to Local → Change → a read-only folder (warning, Install off) → Change → a writable "Linger Data" folder → the local model re-checks → the row settles with Reset. The native folder dialog can't be driven here, so
dialog.showOpenDialogwas stubbed in the main process to return those two folders. Everything after the pick is real: main's folder check, the free-space check and the local model re-check.Notes on the round 6 runs: real isolated installs in en and zh-CN reached ready. As before, the multi-GB local model was never downloaded and
openExternalwas stubbed. In zh-CN, main's folder error "Linger can't write to this folder. Choose another one." still shows in English. It comes fromlocal-server.tson main and is not changed here.Round 5c
Same 760×660 window. Before is round 4b (2618553), after is this push (c25b955) in English and zh-CN, each from a real isolated run with its own HOME, data directory and ports.
Step 1 and step 2 while this computer is still being checked (2×):
zh-CN, Local picked while checking: step 1 · step 2 skeleton (recording frame)
Install scene with the new card copy, en over zh-CN: 2× close-up
Videos (round 5c). Real time, never sped up; cuts are labelled with the time skipped.
Round 5 media (still current for icons and motion)
Before is af12c47, after is 11f470e.
Icons, before and after, with a 4× pixel view of the tiles from a 2× screenshot:
2× close-up of the new rows: icons-2x-closeup
Motion, every frame for 15 s in the real app, before and after:
Videos. All are real-time 60 fps, with no speed-up. Cuts are labelled with the time skipped.
The round 4 videos in the gist are time-lapses and are superseded. This round didn't re-record the Local picker or the BYOK error, which haven't changed; the round 4 contact sheet still shows them: 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. These are from round 4 and are unchanged.
Mockup vs real (round 4, before the icon change), for checking drift against the approved direction A:
Where the build differs from the mockup, on purpose:
Notes on the round 5c runs
openExternalwas stubbed.Notes on the round 5 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/desktopandpackages/local-installation.apps/desktop: 841 passed, 1 skipped, none failing.packages/local-installation: 892 passed, 22 skipped. New tests: the setup page picks each logo as the Local models page does (Inkling, family, Kimi full-bleed, a family with no logo → plain mark, Hugging Face organization, id prefix, unknown → plain mark);setup-modelsreads the organization fromsource_url(other hosts and bad URLs give none);local-serverkeepssourceOrgonly as a plain slug; the setup window serves the logos with the right types and nothing else under that path. 8536156 fixes aprefer-constlint error inlocal-models.test.tsfrom an earlier round of this branch, which CI would have hit once the PR left draft.apps/desktop: the full run gave 811 passed, 1 skipped and 6 failed, all while the machine's load was 135–170: four 5 s timeouts,local-server-resume's 1 swaitFor, and the setup page's vendor-marks check. Each of those four files then passed on its own:setup-page71/71,diagnostics-upload34/34,local-server-resume39/39 andteamhub-wsl1 passed, 1 skipped.packages/local-installation: 886 passed, 22 skipped.apps/linger-installerisn't touched by these rounds (247 passed in round 6). New and updated setup page tests cover the Linger mark on every screen (outline vs filled cards, the trace following the bar, the failed state, the ready flood and check, reduced motion), the install mark not reusing the page's old.sceneclass, the simpler local model card (no pitch line, Download cell or parameter counts) and the family icon in the card and the picker.setup-modelspasses the family and the featured flag through.apps/desktop: 815 passed, 1 skipped. One test failed,local-server-resume› "logs valid warm and cold installer resumeTimings" (a 1 swaitForat load ~40). It also fails the same way on a cleanorigin/maincheckout (1 of 4 runs), and passes on its own 2 of 3 times on this branch.packages/local-installation: 886 passed, 22 skipped.apps/linger-installer: 247 passed. New and updated setup page tests: the location row on every source; a custom folder shows Reset; Change asks forlocal.location.pick; a long Windows path (D:\Users\someone.with.a.long.name\AppData\Local\Programs\Linger Workspace\data) is shortened in the middle with the whole path in the tooltip; the warning still holds Install; there's no account-reveal link, team-server link or pips.setup-commandrejects the removed reveal op.apps/desktop: 774 passed, plus 10 tests in 7 files that hit the 5 s timeout while the machine was at load ~280; each of those files passes on its own with a 60 s timeout.packages/local-installation: 830 passed, plus the LiveKit test timing out under load, which passes alone.apps/linger-installer: 244 passed. Setup page andsetup-commandtests now cover the non-blocking welcome (shimmer, settle-once, no jump after a click, no Continue onto a blocked Local, failure reason, step 2 skeleton) and rejectbackground.apps/desktop:diagnostics-upload, the hosted-receiver build check) timed out at 5 s while the machine was under heavy load; that file passed 34 of 34 twice on its own.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. This push doesn't touch that package.For the owner to decide
RuntimeLogo(apps/web/src/features/local-computer/runtime-logo.tsx, used by the edit-runtime and quick-create dialogs) draws Claude Code as the pixel mascot and Codex as a gradient cloud, both redrawn by LobeHub.computer-app-icons.ts(used by the Computer setup dialog, Computer detail and Computer directory) uses hugeicons' outline asterisk and ChatGPT knot. Should they all match the marks used here? This PR doesn't change them.scripts/install/install.sh,install.ps1,scripts/prepare-local-owner.mjs,scripts/source-native.mjs) still default to[email protected]. Only the desktop and standalone installer use[email protected].setup.html,setup.messages.ts,zh-CN.json,setup-page.test.ts,shared/setup.tsandlocal-server.ts. Several of its choices contradict earlier rounds here (no Pi row, the official marks, BYOK as URL / key / model), so which design wins needs a decision before the next rebase.Update: e7e0034 merged main (0f4382d) into this branch and resolved those conflicts. The wizard keeps this PR's design: no Pi row, the official marks, and BYOK as URL / key / model. Main's API key provider presets and Advanced options only come in through the Subscription sign-in dialog's API key fallback, together with its "Harness" / "API Key" wording in that dialog. On the merged head the setup page tests pass 71/71 and
local-serverpasses 243/243, and a short isolated run shows the same welcome, step 1 and step 2 as the screenshots. If main's wizard choices should win instead, that is still open.