Skip to content

Conversation

@adhami3310
Copy link
Member

No description provided.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 14, 2026

Greptile Summary

Reordered CLI template initialization options to move the AI builder option from first position to last position in the prompt list.

  • User Impact: When running reflex init without arguments, the blank template is now option (0) and selected by default, with AI builder moved to option (2)
  • Behavioral Change: The default selection behavior remains unchanged (still defaults to option 0), but option 0 is now "blank" instead of "ai"
  • Code Quality: Clean change with no logic modifications - simply reorders array elements in get_init_cli_prompt_options()

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • Simple array reordering with no logic changes, side effects, or edge cases - only affects the display order of CLI prompts
  • No files require special attention

Important Files Changed

Filename Overview
reflex/utils/templates.py Reordered CLI template options to move AI builder from first to last position - simple array reordering with no logic changes

Sequence Diagram

sequenceDiagram
    participant User
    participant CLI
    participant get_init_cli_prompt_options()
    participant prompt_for_template_options()

    User->>CLI: reflex init (no template specified)
    CLI->>get_init_cli_prompt_options(): Get template options
    
    Note over get_init_cli_prompt_options(): NEW ORDER (After PR):<br/>1. blank<br/>2. choose-templates<br/>3. ai (moved to last)
    
    get_init_cli_prompt_options()-->>prompt_for_template_options(): Return list[Template]
    prompt_for_template_options()->>User: Display options:<br/>(0) A blank Reflex app<br/>(1) Premade templates<br/>(2) Try our AI builder
    User->>prompt_for_template_options(): Select option (default=0)
    prompt_for_template_options()-->>CLI: Return selected template name
Loading

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 14, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing move-ai-builder-to-last-option (a4cbcb2) with main (ce9b21a)

Summary

✅ 8 untouched benchmarks

@masenf masenf merged commit f32a686 into main Jan 14, 2026
48 checks passed
@masenf masenf deleted the move-ai-builder-to-last-option branch January 14, 2026 22:15
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.

3 participants