You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wizard shell is the spine of setup: one overlay/controller that holds the step list, current step, per-step status (from the #3403 state model), and summary. To the user it should feel like a single guided flow with consistent back/next/skip/retry affordances and a live progress indicator — whether they hit it on first run or reopen it with /setup six months later. To implementers it is the contract that lets a new step plug in without reinventing navigation, persistence, or status rendering.
Concrete implementation surface
Entry points: the /setup slash command (TUI) and codewhale setup (CLI, already delegates to the TUI at crates/cli/src/lib.rs).
Resume must not re-ask already-verified steps unless the underlying config changed since they were written.
If a step errors or panics, the shell returns to the step list with that step marked failed/needs_action — never a dead-end.
Problem
A full CodeWhale setup flow needs a reusable wizard shell before individual setup steps can be implemented cleanly. The shell should work for first-run onboarding and for existing users who run /setup later.
Scope
Add a setup wizard overlay/controller with step list, current step, completed/skipped/failed status, and summary state.
Add a /setup slash command or equivalent TUI entry point that opens the wizard without requiring a restart.
Decide CLI relationship with codewhale setup: reuse the same state model where practical, or document why CLI and TUI differ.
Support navigation: next, back, skip, retry, save/apply, cancel, and exit-without-saving where relevant.
Support resume of partial setup without re-asking completed steps unless config has changed.
Add tests for navigation state, skip/resume, cancellation, and status summarization.
Definition of done
Fresh install and existing-user setup both enter the same setup state model.
/setup opens the wizard from a normal TUI session.
Steps can be added without each one inventing navigation and persistence behavior.
Wizard shell tests cover step transitions, skip, retry, resume, cancel, and summary states.
Localization / UX
All navigation chrome (titles, next/back/skip/retry/done, status labels) uses localization IDs, not hardcoded English; the first-run language choice applies immediately.
Product shape
The wizard shell is the spine of setup: one overlay/controller that holds the step list, current step, per-step status (from the #3403 state model), and summary. To the user it should feel like a single guided flow with consistent back/next/skip/retry affordances and a live progress indicator — whether they hit it on first run or reopen it with
/setupsix months later. To implementers it is the contract that lets a new step plug in without reinventing navigation, persistence, or status rendering.Concrete implementation surface
/setupslash command (TUI) andcodewhale setup(CLI, already delegates to the TUI atcrates/cli/src/lib.rs).crates/tui/src/tui/setup/, reusingcrates/tui/src/tui/onboarding/(welcome,language,api_key,trust_directory) as the first steps, backed by the state model from v0.8.67 Setup: audit current setup/onboarding surfaces and define the unified setup state model #3403.crates/tui/src/localization.rs,MessageId+tr(locale, id)).Non-goals
/setupentry point./setupopens and returns within a normal session.Safe fallback
verifiedsteps unless the underlying config changed since they were written.failed/needs_action— never a dead-end.Problem
A full CodeWhale setup flow needs a reusable wizard shell before individual setup steps can be implemented cleanly. The shell should work for first-run onboarding and for existing users who run
/setuplater.Scope
/setupslash command or equivalent TUI entry point that opens the wizard without requiring a restart.codewhale setup: reuse the same state model where practical, or document why CLI and TUI differ.Definition of done
/setupopens the wizard from a normal TUI session.Localization / UX
Doctor / docs expectations
codewhale doctorcan report overall setup readiness and which steps areskipped/needs_actionby reading the same state./setup, resume, and skip semantics.Acceptance criteria
/setupopens the wizard from a normal TUI session without a restart.Related