Skip to content

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

Closed

Description

@admarble

Problem

sequant init crashes for every interactive user on 2.18.0. In a real terminal it dies right after the dependency check:

UnknownPromptTypeError: Prompt type "list" is not registered. Available prompt types: ...

Inquirer 14 removed the list prompt type (it is select now). package.json declares inquirer ^14.1.0, which resolves to 14.2.2, and init still asks four type: "list" questions:

  • src/commands/init.ts:811 (primary stack, multi-stack)
  • src/commands/init.ts:835 (confirm detected stack: the first prompt every interactive user sees)
  • src/commands/init.ts:854 (select stack when none detected)
  • src/lib/wizard.ts:267 (missing-dependency action)

-y and non-TTY runs skip all of these, and every test file mocks inquirer wholesale, so the prompt type is never validated. That is why CI stayed green.

Found by a blind new-user walkthrough of the quickstart (npx sequant init is step one). Reproduced against the installed inquirer:

node --input-type=module -e "import inq from 'inquirer'; await inq.prompt([{type:'list',name:'x',message:'m',choices:['a']}])"
# UnknownPromptTypeError: Prompt type "list" is not registered

Acceptance Criteria

  • AC-1: No inquirer question in src/ uses type: "list"; the four sites use select with the same choices and defaults. Evidence: grep -rn 'type: "list"' src returns nothing.
  • AC-2: A test asserts every question type passed to inquirer.prompt by init and the wizard is registered by the real installed inquirer (vi.importActual), so a future removed type fails CI. Evidence: test file path in the PR.
  • AC-3: Gate test is mutation-verified: reverting one site to type: "list" fails exactly that test. Evidence: SEQUANT_MUTATION marker in the PR body.

Activity

  1. added
    bug
    cli
    priority:high
    on Oct 1, 2026
  2. admarble commented on Oct 1, 2026

    @admarble
    ContributorAuthor

    Execution Verification

    Command: node dist/bin/cli.js init --skip-setup (fix branch build), driven under a real pty in a scratch git repo with a Next.js package.json
    Result: Verified by human review

    Execution Output (click to expand)

    Exit code: n/a (process killed at the first prompt by the harness, by design; nothing written)
    Duration: 3s

    Initializing Sequant...
    
    Skipping dependency setup wizard (--skip-setup)
    
    ? Detected nextjs project. Is this correct?
    ❯ Yes, use nextjs
      No, let me choose
    
    ↑↓ navigate • ⏎ select
    

    Baseline, same repo, published [email protected]:

    UnknownPromptTypeError: Prompt type "list" is not registered. Available prompt types: checkbox, confirm, editor, expand, input, number, password, rawlist, search, select
    

    Human Confirmation:

    Yes, looks correct


    Verified by /verify command

  3. added a commit that references this issue on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclipriority:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions