Skip to content

CLI init prompts inconsistent - Enter should default to Yes for most prompts #397

@lbedner

Description

@lbedner

Bug Description

When running aegis init, pressing Enter without typing y/n has inconsistent behavior:

  • Some prompts accept Enter as "yes"
  • Most prompts require explicit y/n and re-prompt if you just press Enter

Expected Behavior

Enter should default to "yes" for most prompts, especially:

  • Component selection ("Add Redis?", "Add Worker?", etc.)
  • Final "Create this project?" confirmation

Current Behavior

Most typer.confirm() calls lack a default parameter, so Enter just re-prompts.

Files to Fix

  • aegis/commands/init.py - line 384
  • aegis/cli/interactive.py - lines 91, 98, 103, 112, 158, 171, 206, 238, and others

Fix

Add default=True to component/service selection prompts and final confirmation.
Keep default=False for:

  • Destructive operations (remove commands)
  • Opt-in for non-default options (LangChain over PydanticAI)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions