Skip to content

fix(#1256): interactive sequant init uses select prompts; inquirer 14 removed list - #1258

Merged
admarble merged 1 commit into
mainfrom
fix/1256-init-select-prompt
Oct 1, 2026
Merged

admarble merged 1 commit into
mainfrom
fix/1256-init-select-prompt

Conversation

@admarble

@admarble admarble commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1256.

What

Interactive sequant init crashed in every real terminal on 2.18.0 with UnknownPromptTypeError: Prompt type "list" is not registered. Inquirer 14 removed the list prompt (it is select). Four questions used it:

  • src/commands/init.ts primary-stack, confirm-detected-stack and select-stack prompts
  • src/lib/wizard.ts missing-dependency action prompt

All four are now type: "select", with the same choices and no defaults to translate.

Why CI missed it

Every suite mocks inquirer wholesale, so no test ever checked that a prompt type exists. The new gate tests run each interactive path with the mock, collect the type of every question asked, and assert each one is registered by the real installed inquirer (vi.importActual("inquirer")). The next removed or renamed prompt type fails CI instead of users.

Verification

Mutation records

Mutation-verified: AC-2 — init.ts confirm-detected-stack prompt reverted to type "list"; confirm-detected-stack prompt uses a registered type failed; restored.

Mutation-verified: AC-2 — init.ts select-stack prompt reverted to type "list"; select-stack prompt uses a registered type failed; restored.

Mutation-verified: AC-2 — init.ts primary-stack prompt reverted to type "list"; primary-stack prompt uses a registered type failed; restored.

Mutation-verified: AC-2 — wizard.ts dependency action prompt reverted to type "list"; missing-dependency action prompt uses a registered type failed; restored.

Each mutation failed exactly that one test (84 others passed); tree restored clean after each.

🤖 Generated with Claude Code

… removed list

All four type: "list" questions (init stack confirm/select/primary, wizard dependency action) become type: "select". New gate tests check every prompt type init and the wizard ask for against the real installed inquirer, since every suite mocks it wholesale.

Claude-Session: https://claude.ai/code/session_01VpUo5Vzp2kJErZDRxF24iy
Entire-Checkpoint: 39ef54113e03
@admarble
admarble merged commit 778e030 into main Oct 1, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(init): interactive sequant init crashes — inquirer 14 removed the list prompt type

1 participant