Skip to content

feat(desktop): two-step setup wizard with chosen sign-in - #762

Draft
Kilyn544 wants to merge 24 commits into
mainfrom
feat/setup-two-step-wizard
Draft

Kilyn544 wants to merge 24 commits into
mainfrom
feat/setup-two-step-wizard

Conversation

@Kilyn544

@Kilyn544 Kilyn544 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Welcome: the intro hands over to step 1 after about 2.5 s and never waits for the local model check. The setup tools download stays hidden.
  • Step 1: three cards, each a title and one line: Local model, BYOK and Subscription. There are no subtitles, tags, badges or "Private to this computer" pill. While this computer is still being checked, the Local card shimmers and reads "Checking this computer…" (see Round 5c).
  • Step 2: only what the chosen source needs, plus Back and Install.
    • Local model: the model's name and size.
    • Subscription: Claude Code and Codex, each a name and one status line, read live from this computer: Not installed, Installing (with a bar), Not signed in, Signing in…, Signed in. There is no Pi row; the installer installs Pi by itself when a source needs it. Install is enabled once one of them is signed in.
    • BYOK: URL, API key and Model ID. Install first tests the endpoint quietly. If the test fails, one short line appears ("Couldn't reach this URL.", "This API key was refused.", …).
  • Installing: one progress bar with one short line under it that changes as the install moves on: "Downloading Linger", "Setting up your workspace", "Creating your account", "Connecting this computer", "Waking up your agents". The line shows no sizes, so it can't disagree with the bar. There is no checklist and no timings. The scene is centred on the Linger mark (round 7B). The local-model download is folded into that line. While the local model downloads, a link offers to switch to Subscription or BYOK.
  • Error: a short message and a single Report issue button. When the installer stops answering, the message reads "Couldn't reconnect to the installation." (zh-CN too) and no longer asks to try again, since there is no retry. It uses main's diagnostics flow, including the consent dialog, and shows the report ID afterwards. Quitting and reopening returns to step 1, and installing again works.
  • Account (Desktop setup: let users choose their own sign-in name and password #757): setup asks nothing about the account.
    • A new installation's owner is [email protected] with a generated password. Existing and upgraded installations keep their own account.
    • On the ready screen, "Sign-in details" is collapsed by default. Expanded, it shows the email (read-only, with Copy) and the password (Show and Copy), plus Change password.
    • Change password posts POST /v0/account/password and only then updates the saved login in local-account.json. Desktop's automatic sign-in keeps working. The password is never logged.
  • All copy goes through i18n, with zh-CN included.

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.)

  • Welcome: the orb drops in with a small bounce, then the title settles under it.
  • Welcome → Choose your AI: the orb flies from the welcome position to its step-1 spot on a soft spring (about 0.7 s), shrinking as it goes, so it no longer snaps to the small size. The three cards then rise in one after another.
  • Local model picker: the model card shows the name with its build ("Inkling 2 Mini · Standard"), one line about why it fits, ≈ quality, ~ speed marked "est.", download size and a memory bar. The bar's legend reads System & apps · the model · Free; "System & apps" is the memory the system holds right now (total minus the kit's ram_available_bytes). Change opens a sheet that slides up with every model this computer can run:
    • no subtitle under the sheet title; the build sits in each row's title line;
    • quality and speed are real bars, not dots; estimates carry ~ and "est.";
    • a Best fit chip and a Fastest chip appear only when the hardware report names them;
    • models that don't fit sit at the bottom, dimmed and disabled, with "Needs 96 GB of memory" (or what they need); the list fades out at the bottom edge.
  • Installing → Ready (about 1.4 s): the progress bar dissolves into the orb, the orb blooms with one ripple, the check draws itself and the title rises. No confetti. Install and ready use the brand orb; step 2 keeps the orb of the chosen source.
  • Reduced motion: with "Reduce motion" on, nothing flies, bounces or ripples; screens just fade.
  • Free space (main's 0783e11, ported): (superseded in round 6: the row now always shows; see below) the install location is not shown by default. Main's disk pre-check is the trigger: when the disk is short of room, or the location itself fails, the location row appears inline on step 2 with main's own warning ("Needs 37 GB free; this disk has 29 GB." or the location error), the rejected path when there is one, and Change… / Reset. Install stays disabled until it's resolved. The local model's size counts only when Local is the source (the picked model priced by its own check, otherwise the kit's pick), so BYOK and Subscription on the same disk show no warning. When the row shows, step 2 drops its small title orb and the model's one-line pitch so everything still fits above the buttons.

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 --json for 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

  • Motion: the install scene is quieter. The orb turns once every 48 s (was 16 s) and breathes over 6 s by 1.5 %. The two agent cards lean 2° (was 6°) and drift 3 px over 14 s (was 8 px). Every moving layer animates only transform or opacity, on its own compositor layer (will-change, backface-visibility: hidden). Nothing animates top, left, filter or box-shadow, and no text moves.
  • It doesn't judder at real speed. I sampled every frame for 15 s with requestAnimationFrame in the real app during a real install:
    • Before (af12c47): 896 frames. The orb turned 0.377° a frame, with spikes up to 1.118° on slow frames (max frame 49.7 ms). The cards moved up to 0.113 px a frame.
    • After (11f470e): 901 frames, mean 16.67 ms, slowest 17.7 ms, so no dropped frames. The orb turns 0.125° a frame (max 0.133°) and never reverses. The cards move at most 0.013 px a frame, and only change direction at the top and bottom of their drift.
    • Raw screen capture: I also tracked pixels in a 20 s capture at 59 fps. In every 250 ms window the orb moved forward by 1.06° to about 1.7°, with no reversals, and the cards moved ±0.2 px.
    • The shaking in the round 4 video came from the recording, not the app. It squeezed a 6-minute install into seconds by keeping about one frame a second, so each frame jumped about 6° of orb turn and part of the card drift.
  • Recording method from now on: animated screens are never time-lapsed. Videos are real-time 60 fps segments joined by short crossfades, with a label at each cut saying how much time was skipped ("… 7 min later").
  • Icons: Claude Code and Codex now show their vendors' marks, in colour and crisp in the existing 44 px tile:
    • Claude Code: the Claude spark in Anthropic's #D97757. It is inlined as SVG, taken unchanged from https://claude.com/favicon.svg (the same file as https://claude.ai/favicon.svg).
    • Codex: the Codex app mark (the blue cloud with a prompt), not the ChatGPT/OpenAI knot. It is the unchanged 104×104 PNG shipped inside OpenAI's official Codex app (https://developers.openai.com/codex/app). It is served from resources/brand/codex.png at app://setup/codex.png, because the setup page's CSP (img-src 'self') blocks inline data images.
    • A comment next to each mark records its source and the trademark note: "Claude and its logo are trademarks of Anthropic, PBC" and "Codex and its logo are trademarks of OpenAI". Both are shown only to name the product.

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:

    • Until the check settles, the Local card shimmers (no spinner) and reads "Checking this computer…". Subscription is the provisional pick.
    • When the check settles, Local becomes the pick only if the person hasn't clicked anything yet. Once they've clicked, the selection never moves.
    • If Local was picked while checking, step 2 shows a skeleton of the model card with Change and Install disabled, then fills in place.
    • Continue can't land on a Local that turned out blocked; a failed check shows its short reason on the card.
  • Platform-neutral wording (en + zh-CN). Copy that said "Mac" now says "computer". Changed strings:

    en before en after zh-CN before zh-CN after
    macOS & apps System & apps macOS 与应用 系统与应用
    The smartest model this Mac can run The smartest model this computer can run 这台 Mac 能运行的最聪明的模型 这台电脑能运行的最聪明的模型
    The fastest model on this Mac The fastest model on this computer 这台 Mac 上最快的模型 这台电脑上最快的模型
    Fits this Mac's memory Fits this computer's memory 适合这台 Mac 的内存 适合这台电脑的内存
    Models for this Mac Models for this computer 适合这台 Mac 的模型 适合这台电脑的模型
    Needs a {size} GB Mac Needs {size} GB of memory 需要 {size} GB 内存的 Mac 需要 {size} GB 内存
    Runs on this Mac Runs on your computer 数据留在这台 Mac 数据留在你的电脑上
    (new) Checking this computer… (new) 正在检查这台电脑…

    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 (background is gone from shared/setup.ts, setup-window, local-server and the setup-command schema, which now rejects it) and the docs. A local model can be added later in Settings › Models; docs/local-inference.md says 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

  • Install location on every source. Step 2 always shows one compact row under the source card, for Local, BYOK and Subscription. The row has a label, the path and Change, plus Reset only when the folder isn't the default. Main's behaviour is unchanged: the folder picker, the folder checks, the rejected path, the free-space check and the warning. A long path is shortened in the middle so the drive and the last folder stay readable (D:\Users\some…\Linger Workspace\data). The whole path is in the tooltip.
    • A folder Linger can't use, or a disk without room, shows its reason inside the row in red and keeps Install off.
    • Under the local model's card, the title orb gives way so the step still fits.
  • Layout at 760×660 (measured in the real app, en and zh-CN): the buttons sit at y 516–560 on every source and every state, so the primary button never moves. Content ends at y 496, 20 px above the buttons, with nothing overlapping and no scrolling. The calm row spans y 456–496; with a warning it grows upward to y 435.
  • "Open account file location" is removed from the ready screen, along with its handler, the local.account.reveal IPC op, its messages and tests. local-account.json is still owner-private. shell.showItemInFolder stays because diagnostics uses it.
  • The team-server link is removed from step 1. Connecting to a team server still works through Get started, which shows when this computer can't run locally.
  • The step pips (the "– –" top right) are removed. Screen readers still hear the step through the hidden step label and the live region.
  • Docs: 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.

  • The card says less. The one-line "why it fits" pitch and the Download cell are gone. The line under the name is just the maker, with no parameter counts, in the card and in the picker. The stats are Quality and Speed only. The download size still drives the free-space check and the size chip in the picker. A fit-check or problem line still shows when there is one.
  • The model's icon. The card title and every picker row lead with the model's icon, as on the app's Local models page. (First drawn with that page's Hugeicons family marks; since the merge of main the page uses the makers' logos, and so does setup. See Round 8.)

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.

  • Welcome: the outline draws itself, fills with ink, then the orange dot drops in with the same small bounce as before while the title rises. The mark then flies to step 1 the way the orb did.
  • Step 1: all three cards carry the same mark, with no colour per source. Cards that aren't picked show only the outline. The picked one fills with ink and its dot pops in.
  • Step 2: the solid mark at 44 px above the title.
  • Installing: the mark empties to a pale outline as it flies in. An ink trace follows the progress bar's value around the outline, and a ring around the dot pulses. The side cards show a small solid mark (Local) and the dot in its ring (Personal agent).
  • Ready: the ink floods the mark, the dot pops with one ripple, the check draws itself and the title rises.
  • Error: a grey outline, with the trace stopped where the install stopped.
  • Colour: the background wash, the memory bar's model segment and the featured model tile use the logo orange (#fda946) instead of the orb's blue and pink.
  • Motion: only transform and opacity animate, except the trace's stroke-dashoffset. With "Reduce motion" on, screens cross-fade, and there is no pulse, trace or drawn check. No strings changed.
  • Fix (c0b615b), found in the real app: the install mark was invisible because its class (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 now mark-scene, the mark's svg sets no stroke, and a page test pins the class.

Where the build differs from the prototype:

  • The welcome hides the faint full outline while the trace draws, so the drawing reads as one stroke.
  • The featured model tile in the picker was an orange tint to match the mark; since Round 8 it shows the Thinking Machines logo, as the Local models page does.
  • The welcome → step 1 flight passes over the fading title, on the same path the orb used.
  • The mark keeps its slow breathe on Ready (scale 1.02).
  • Element IDs renamed: sc-ball → sc-mark, hd-orb → hd-mark, intro-orb → intro-mark, intro-ball → intro-logo.
  • In the screenshots the dot reads about #F1AD5A rather 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.

  • Same files, same rules. Setup serves that page's own logo files at app://setup/model-logo/<file> (one copy, no drift) and picks one the way resolveModelBrand does: 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's source_url (inclusionAI, Ornith AI, Thinking Machines, XHToken); then the id prefix (ornith-, spark-, ling-); else the page's plain layered mark.
  • Plumbing. The organization comes from the kit's library status and passes through the setup model options as sourceOrg, kept only when it is a plain slug.
  • Tiles are neutral as on that page: a full-bleed logo fills a white tile; the rest sit small on the field tone. A row that can't run here greys its logo. The skeleton is unchanged.
  • Checked in the real app (isolated run, en and zh-CN): all 11 models the kit lists here load their logo (Thinking Machines, Qwen, Ornith, XHToken, inclusionAI), with no CSP violation or broken image. The Thinking Machines tile reads as a dark square on grey because that is the logo file itself.
  • The Linger mark is untouched.
  • Each logo is its owner's trademark, shown only to name the model, as on the Local models page.

How it's wired

  • setup-sources.ts runs the installer's headless commands, which answer in JSON lines: --runtime-status, --prepare-runtime, --runtime-login and --download-local-model. They call main's existing code: managed-runtimes, RuntimeLoginManager and runLocalmodels. Nothing installs to a global location.
  • The default owner email lives in @linger/local-installation (DEFAULT_OWNER_EMAIL). It applies only when local-account.json doesn't exist yet.
  • Change password goes through 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.
  • Both runtimes: when Claude Code and Codex are both signed in, the job carries linkedRuntimes, both are configured, and Codex is the default runtime (owner decision, round 6).

Overlap and lineage

  • Rebased on main at 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.
  • 0948d3d / WHI-1061 overlap: main dropped the "Windows refused this folder" hint (locationHint) and the Back button beside Report issue, because nested folders on a data drive (for example D:\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.
  • 0783e11 overlap (main's "redesign setup install location and pre-check disk space"): it rewrote the same setup page. Its backend is kept as is (local-server free-space check, setup-window location 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.
  • Featured Inkling (41760a4): main's Inkling 2 Mini spotlight on the desktop setup page (the featuredInkling flag, its badge and the announcement link) is removed, per the round 3 request for no badges or spotlights. The web installer's SetupChoicePanel keeps it unchanged.
  • PR feat(desktop): allow skipping local model download with direct BYOK setup #303 overlap: feat(desktop): allow skipping local model download with direct BYOK setup #303 (db94c27b) also changes the desktop setup page. This PR does not touch that branch. Whichever lands second will need a rebase of apps/desktop/src/shell/setup.html and setup.messages.ts.
  • Prototype lineage: this is a fresh implementation on current main of the approved prototype (proto/feat-setup-two-steps), not a rebase. The prototype's base, 2226ee3, sits on 23 commits that are not on main, 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.

Round 8: model logos before/after

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.

Contact sheet: r5c vs rounds 6b + 7B (en, zh-CN)

Welcome, step 1, step 2 (Local, with the family icon and the location row):

Welcome Step 1 Step 2 Local

Installing (early, late), Ready, Error:

Install early Install 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

  • Real: the runtime status, the local model check against the installed kit, the BYOK endpoint test (local stub endpoint) and the install itself, en and zh-CN, both reaching ready.
  • Not real: the multi-GB local model was never downloaded and openExternal was stubbed. The error screens are real failures, induced by stopping the installer process at 40 %.
  • A cold install sat at 40 % for about 10 minutes (the native build) and took about 13 minutes in all. On a cold launch the local model check took about 34 s; until then step 1 has Subscription picked and the Local card shimmers, as designed in round 5c.
  • The English "install late" still is a 1140 px frame from the recording; the other stills are native 2× captures.

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.

Contact sheet: r5c vs round 6 (en, zh-CN)

Step 2 with the location row, Local · BYOK · Subscription:

Local BYOK Subscription

A folder Linger can't write to, Local · BYOK · Subscription:

Local warning BYOK warning Subscription warning

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.showOpenDialog was 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 openExternal was stubbed. In zh-CN, main's folder error "Linger can't write to this folder. Choose another one." still shows in English. It comes from local-server.ts on 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.

Contact sheet: r4b vs r5c (en, zh-CN)

Step 1 and step 2 while this computer is still being checked (2×):

Step 1, Local checking Step 2, Local skeleton

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.

Contact sheet: af12c47f vs 11f470e0

Icons, before and after, with a 4× pixel view of the tiles from a 2× screenshot:

Icons before and after

2× close-up of the new rows: icons-2x-closeup

Motion, every frame for 15 s in the real app, before and after:

Per-frame orb and card motion

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.

Local on a short disk BYOK on the same disk

Mockup vs real (round 4, before the icon change), for checking drift against the approved direction A:

Mockup vs real

Where the build differs from the mockup, on purpose:

  • The picker is a slide-up sheet with bars (round 4 feedback), not the mockup's inline table with dots.
  • Model subtitles use the kit's real wording (maker · size · active parameters · variant).
  • BYOK has no green verified tick or Model ID chevron: the endpoint is tested when you press Install, and there's no model list to choose from yet. After a failed test, Install stays enabled so a fixed URL can be tried again.
  • The error screen shows only Report issue (round 3 decision).
  • Agent cards use the real agent names (Inbox, Assistant).
  • (Superseded in round 7B.) Every screen uses the same Linger mark with no colour per source.

Notes on the round 5c runs

  • Real: the runtime status, the local model check against the installed kit, the BYOK endpoint test (local stub endpoint) and the install itself, en and zh-CN, both reaching ready.
  • Not real: the multi-GB local model was never downloaded and openExternal was stubbed.
  • The zh-CN install took about 19 minutes because the machine was heavily loaded; the videos cut those minutes out with labels.
  • In the zh-CN run the check settled before step 2 opened, so its skeleton shot is a 1140 px recording frame; the English one is a native 2× still.

Notes on the round 5 run

  • Real:
    • Runtime status for Claude Code and Codex.
    • The BYOK endpoint test, against a local stub endpoint.
    • The install itself.
    • Change password: the new password signs in, a wrong one is refused, and Open Linger still signs in automatically.
    • Report issue, sent to a local stub upload server. The zip held only logs and config, with no account file.
    • In this run Codex was installed but not signed in, and Claude Code was not installed, so those are the states the rows show.
  • Not real:
    • The multi-GB local model was never downloaded.
    • openExternal was stubbed.
    • The error shot is a real failure in the isolated run, induced on purpose; it reads "Couldn't reconnect to the installation." (the new installer_unreachable failure code).
    • The low-disk shots come from a real 30 GB disk image with 29 GB free; the native folder picker behind Change… couldn't be driven in this environment, so clearing the warning after a new folder is covered by the page tests only.
    • The install took about 12 minutes because the network was slow (the registry answered at about 114 KB/s); that's why the videos cut out several minutes.
    • The GPU size is simulated (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

  • Round 8 (f4dd0d8, 8536156): typecheck, lint and Prettier pass for apps/desktop and packages/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-models reads the organization from source_url (other hosts and bad URLs give none); local-server keeps sourceOrg only as a plain slug; the setup window serves the logos with the right types and nothing else under that path. 8536156 fixes a prefer-const lint error in local-models.test.ts from an earlier round of this branch, which CI would have hit once the PR left draft.
  • Rounds 6b + 7B (9d0ee85, 018f7f4, c0b615b): typecheck, lint and Prettier pass. 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 s waitFor, and the setup page's vendor-marks check. Each of those four files then passed on its own: setup-page 71/71, diagnostics-upload 34/34, local-server-resume 39/39 and teamhub-wsl 1 passed, 1 skipped. packages/local-installation: 886 passed, 22 skipped. apps/linger-installer isn'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 .scene class, the simpler local model card (no pitch line, Download cell or parameter counts) and the family icon in the card and the picker. setup-models passes the family and the featured flag through.
  • Round 6 (526c396): typecheck, lint and Prettier pass. apps/desktop: 815 passed, 1 skipped. One test failed, local-server-resume › "logs valid warm and cold installer resumeTimings" (a 1 s waitFor at load ~40). It also fails the same way on a clean origin/main checkout (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 for local.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-command rejects the removed reveal op.
  • Round 5c (c25b955): typecheck, lint and Prettier pass. 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 and setup-command tests 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 reject background.
  • Round 5 results:
  • apps/desktop:
    • Full suite: 784 passed, 1 skipped (setup page: 64 tests, including one that checks both rows use the vendors' marks). On the last full run one unrelated test (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.
    • Setup page tests cover: the steps, the Install enable rule, runtime install / sign-in / cancel, the short BYOK failure lines, one bar with a changing line, the error with only Report issue (and the lost-installer wording without "try again", EN and zh-CN), the folded sign-in details with Change password, the model picker, and the install location / free-space warnings (hidden while there's room, main's warnings in EN and zh-CN, rejected path, Change and Reset, the model counted only for Local, Install held until resolved).
    • local-server covers 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.
  • Typecheck, lint and Prettier pass for the changed packages.

For the owner to decide

  1. After a failed install, the only way forward is Report issue, or quitting and reopening, which returns to step 1. There's no Try again button, as requested.
  2. The sign-in dialog that opens from Subscription keeps main's "Show logs" link and the Pi switch.
  3. The web app uses other icons for the same runtimes. 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.
  4. The script installs (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].
  5. Main moved again during this round. 1e38e06 ("refine first-run setup harnesses, API key presets, and archive extraction", landed after this push's base) redesigns the same setup page: it renames the sources to Account / API Key, adds API key provider presets with advanced options, shows Pi with its own icon, uses different Claude Code / Codex icons and defaults BYOK to Pi. A trial merge conflicts in setup.html, setup.messages.ts, zh-CN.json, setup-page.test.ts, shared/setup.ts and local-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-server passes 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.

@Kilyn544
Kilyn544 force-pushed the feat/setup-two-step-wizard branch 3 times, most recently from 337cc4b to f875a8e Compare November 26, 2026 17:14
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.
…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
Kilyn544 force-pushed the feat/setup-two-step-wizard branch from c25b955 to 526c396 Compare November 27, 2026 07:13
…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
Kilyn544 force-pushed the feat/setup-two-step-wizard branch from 967c5b9 to 573e6b9 Compare November 27, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant