WIZ-9 Re-run wizard affordance + admin reset #680

Closed
opened 2026-05-01 19:28:00 +00:00 by claude-desktop · 1 comment
Collaborator

User story

As an operator, I want a hidden / admin link to re-run the wizard, so I can redo the setup without manually wiping the DB or for testing the wizard itself.

Acceptance criteria

  • Under /settings/agent-config?tab=admin (or wherever the admin tab lands post-UX-5), a Re-run setup wizard ▾ button opens a confirm dialog: This wipes wizard state but leaves agent + secret rows intact. Continue?
  • On confirm: POST /onboarding/reset clears setup.wizard_completed_at + the skip cookie + the setup row's mid-flow state. Navigates to /onboarding.
  • Re-entered wizard pre-fills repos / types / tokens from existing rows where possible (don't make the operator re-enter what's already saved).

Tests

  • Smoke: clicking + confirming re-enters the wizard.
  • Re-entry: fields pre-filled from existing DB rows (repos selected, agent types listed with current names, tokens marked as [saved] not [empty]).

Out of scope

  • A "delete agent setup entirely" affordance (use SQLite directly).

References

  • specs/first-login-wizard.md §Story WIZ-9
  • Depends on WIZ-1, WIZ-8.
## User story As an operator, I want a hidden / admin link to re-run the wizard, so I can redo the setup without manually wiping the DB or for testing the wizard itself. ## Acceptance criteria - [ ] Under `/settings/agent-config?tab=admin` (or wherever the admin tab lands post-UX-5), a `Re-run setup wizard ▾` button opens a confirm dialog: `This wipes wizard state but leaves agent + secret rows intact. Continue?` - [ ] On confirm: `POST /onboarding/reset` clears `setup.wizard_completed_at` + the skip cookie + the `setup` row's mid-flow state. Navigates to `/onboarding`. - [ ] Re-entered wizard pre-fills repos / types / tokens from existing rows where possible (don't make the operator re-enter what's already saved). ### Tests - [ ] Smoke: clicking + confirming re-enters the wizard. - [ ] Re-entry: fields pre-filled from existing DB rows (repos selected, agent types listed with current names, tokens marked as `[saved]` not `[empty]`). ## Out of scope - A "delete agent setup entirely" affordance (use SQLite directly). ## References - `specs/first-login-wizard.md` §Story WIZ-9 - Depends on **WIZ-1**, **WIZ-8**.
Collaborator

🤖 Auto-assigned to dev (heuristic: area:dashboard + body 1134 bytes (≤ 2 KB) — dev). Reply /unassign to reroute.

🤖 Auto-assigned to **dev** (heuristic: area:dashboard + body 1134 bytes (≤ 2 KB) — dev). Reply `/unassign` to reroute.
Sign in to join this conversation.
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
charles/claude-hooks#680
No description provided.