Repository navigation
Setup Wizard
The setup wizard is the pass Studio makes through everything that decides whether it works on this machine: how it should look, what is installed underneath, which plugins to install, which AI provider to talk to. It runs on a first launch and again after a version change. Nothing it asks is permanent — every choice is in Settings afterwards.
The service is src/shared/angular/services/setup-wizard/setup-wizard.ts; the screens are in
src/features/settings/angular/setup-wizard/. The wizard is a freestanding, chromeless modal mounted
at the root — freestanding because at a cold start the main window is still hidden, and on macOS a
child of a hidden window is not shown at all.
The gate is Studio's own version. On finishing, the wizard records the running version
(host.versions.studio) under studio.setup.lastSeenVersion; on the next launch it runs when the
running version is not equal to the recorded one.
-
Exact string inequality, not an ordering. A downgrade is as much a change of environment as an
upgrade, so it gets the pass too. (Do not reach for
compareReleaseVersionshere; it strips prereleases, and2026.1.0-beta.4 → 2026.1.0-beta.5must count.) - Only Finish writes the record. The window keeps its close button so a wedged step can never trap the user, but closing it abandons the run and records nothing — the wizard is back next launch. There is no way to be asked once and silently skipped.
-
STUDIO_SKIP_SETUP=1suppresses the wizard for that launch only. It is a diagnostic, not a preference: nothing is recorded, so the pass is still owed as soon as the variable is unset. The e2e fixture sets it by default (runSetupWizard: false), ande2e/setup-wizard.e2e.tsis the one suite that opts back in. - Outside Electron there is no host version to gate on, so the wizard never opens.
The steps are a tree, walked in order, drawn on the rail with Settings' own TreeView. It is the
same tree a user meets in Settings — a plugin root with a leaf per thing installed beneath it — so
something set up here is found there under the same shape.
Roots, in walk order:
| Root | Kind | Runs on |
|---|---|---|
| Welcome | welcome |
always |
| What's New | whats-new |
upgrade only, and only when the release has highlights |
| Appearance | settings |
first run; upgrade only if a setting in it is new |
| Environment | environment |
always |
| Language Servers | catalogue |
always |
| Debug Adapters | catalogue |
always |
| Decoders | catalogue |
always |
| Container Engines | catalogue |
always |
| AI Providers | catalogue |
always |
| Security | settings |
first run; upgrade only if a setting in it is new |
| Terminal | terminal |
first run; upgrade only if a setting in it is new |
| Source Control | source-control |
first run; upgrade only if a setting in it is new |
The five catalogue roots are generated from PLUGIN_SLOTS, and their labels are
PLUGIN_SLOT_LABELS — the Plugin Manager's own category names — so a category installed here is found
there under the same name. Each installs into one slot, and nothing else.
Leaves appear beneath a catalogue root for each thing an installed plugin brought that has something to decide:
-
language-server/<language>— one per installed language, wrapping Settings' own language-server page: which installed server serves it, whether it runs, the runtime it needs. -
agent-harness/<page>— one per provider page an installed harness contributes: choose a way to sign in, enter the credential, and verify it answers before leaving.
Debug adapters, decoders and container engines grow no leaves: once installed there is nothing to configure. A root whose plugins bring nothing to decide is just the install step.
Leaves are derived from what is installed, so installing from a root grows its leaves while the user is still standing on it, and Next walks into them. This is why the walk is tracked by step id and a set of walked ids rather than by index — an index into a list that just grew would point at a different step than the one being read.
The rail is progress, not navigation. Rows are inert; the only controls are Back and Next (which becomes Finish on the last step). There is no Skip — the point is that every step is seen — and that is settled.
-
What's New reads
src/shared/api/release-highlights.ts, a curated constant: a handful of headlines per release, written for a user rather than derived from the commit log (docs/releases/is not packaged and is a commit table anyway). It shows every release between the last-seen version and this one, oldest first. A release with no entry reports nothing rather than inventing a summary — so cutting a release means adding an entry. -
Environment runs a fixed set of probes in the main process (
src/shared/electron/setup/setup-probes.ts): git, node, dotnet, java, go, rust, python, clangd, plus whether git has an identity configured. The map of probes is the allowlist — the renderer sends an id, nothing it sends reachesexecFile. Every probe is bounded (5 s) and they run concurrently, in the user's login-shell environment so the PATH checked is the PATH the user sees. Results are not cached: the user is about to go and fix what it says, and a cached answer would survive the fix. -
Source Control can write the global git identity; the values are validated in main before
git config --globalruns. -
Appearance / Security / Terminal present a fixed list of settings each (
SETUP_STEP_SETTINGS) through the ordinary settings controls.
An upgrade must not turn into a toll paid on every beta, so it presents only what it has something to say about:
-
Settings roots run only when one of their settings has a
sincenewer than the last-seen version (SettingDef.since; compared withisNewerStudioVersion). Everything else the user has already answered. - Environment and the catalogue roots always run. They are about the machine, not about settings, and the machine changes underneath Studio without any version doing so — a runtime uninstalled, a credential expired.
-
Leaves run only for a plugin installed during this pass. The service takes a baseline of
the leaves present once both catalogues have loaded (
!plugins.busy()andlspSettings.catalogueLoaded()); a leaf in the baseline is one the user set up long ago and is not shown. Until the baseline exists nothing is known about what is new, so no leaves are shown rather than all of them — taking it at construction would make every long-standing leaf look freshly installed on exactly the upgrade the delta exists to keep short.
A first run presents everything except What's New, which has no previous version to report against.
- 🔥 The wizard opens before the theme has resolved.
Modal.copyThemedPropertiessnapshots the host's custom properties at open, so a theme-following colour routed through--modal-panel-*on this modal freezes at whatever the theme was at that instant (in practice, dark). Paint the wizard's own root element instead. - 🔥 A blocking first-run surface must never reach
mainincomplete: an earlier P1 was merged and reverted because seven empty steps stood in front of every fresh profile. - e2e must walk to the end by counting rows on the rail, not by a fixed number of presses — the count depends on what is installed.
Using Studio
Contributing
How it works
- Architecture
- Runtime seams
- Agent access and permissions
- Agent MCP capabilities
- Agent surfaces, prompts and skills
- Source control
- Plugins
- Package managers
- Language servers — capability matrix
- Language servers — adding a server
- Setup wizard
- Container engines
Decisions