Skip to content

ng new fails when 'none' selected for AI best practices #30987

Closed

Description

@davidfiala

Which @angular/* package(s) are the source of the bug?

core, compiler-cli

Is this a regression?

No

Description

When creating a new project and using the space bar to select the AI best practices to generate, such as moving the indicator down to 'Cursor', pressing space, and then pressing enter to confirm, ng new fails. See below:

ng new web
✔ Which stylesheet format would you like to use? Sass (Indented) [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]
✔ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? No
✔ Do you want to create a 'zoneless' application without zone.js? No
? Which AI tools do you want to configure with Angular best practices? https://angular.dev/ai/develop-with-ai
 ◉ None
 ◯ Claude                 [ https://docs.anthropic.com/en/docs/claude-code/memory                                 ]
❯◉ Cursor                 [ https://docs.cursor.com/en/context/rules                                              ]
 ◯ Gemini                 [ https://ai.google.dev/gemini-api/docs                                                 ]
 ◯ GitHub Copilot         [ https://code.visualstudio.com/docs/copilot/copilot-customization#_custom-instructions ]
 ◯ JetBrains AI Assistant [ https://www.jetbrains.com/help/junie/customize-guidelines.html                        ]
 ◯ Windsurf               [ https://docs.windsurf.com/windsurf/cascade/memories#rules                             ]

Above I highlighted Cursor, pressed Space to select, then pressed Enter to confirm.

ng new web
✔ Which stylesheet format would you like to use? Sass (Indented) [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]
✔ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? No
✔ Do you want to create a 'zoneless' application without zone.js? No
✔ Which AI tools do you want to configure with Angular best practices? https://angular.dev/ai/develop-with-ai None, Cursor                 [ https://docs.cursor.com/en/context/rules                                              ]
Schematic input does not validate against the Schema: {"tool":["none","cursor"]}
Errors:

  Data path "/tool" must NOT have more than 1 items.

The problem appears to be that None remains selected.

If I had instead moved down to Cursor and pressed Enter, then still it wouldn't have selected just Cursor. It would have accepted None.

The only option that works is to use the Space key to unselect None. Move down to other entires select them with Space, and then press Enter.

The expected behavior would be to either:

  1. Unselected 'None' as soon as I make another selection.
  2. Even if None is selected, remove it from the list internally /IF/ one or more other items are selected too.

Please provide a link to a minimal reproduction of the bug

See above

Please provide the exception or error you saw

See above

Please provide the environment you discovered this bug in (run ng version)

linux x64
node 24.6.0
npm 11.5.2

Anything else?

No response

Activity

  1. transferred this issue fromangular/angularon Aug 20, 2025
  2. alan-agius4 commented on Aug 20, 2025

    @alan-agius4
    Collaborator

    Because this is a multi-select option, multiple tools can be selected at once. Unfortunately, there is no automatic way to deselect the None option once another option is selected. Perhaps we should consider removing the None option.

    Potentially we could ignore None if another tool is provided by the user.

    @dgp1130, what do you think?

  3. added
    freq1: low
    on Aug 20, 2025
  4. changed the issue type fromtoon Aug 20, 2025
  5. dgp1130 commented on Aug 20, 2025

    @dgp1130
    Collaborator

    I think we can either:

    1. Ignore None in this situation and use all the other tools selected
    2. Just remove None entirely.

    It's definitely not ideal, but I worry that developers won't realize they can press Enter with nothing selected and will feel like we're forcing them into choosing an AI tool, so I think I'm leaning towards 1. unless someone else on the team feels strongly about it.

    /cc @JeanMeche

  6. forrest-lyman commented on Aug 22, 2025

    @forrest-lyman

    I would remove none, if nothing is selected then just move on.

  7. added 2 commits that reference this issue on Aug 25, 2025
    b6873d2
    b447fa5
  8. added 2 commits that reference this issue on Aug 26, 2025
    0f86cf8
    5d6dd44
  9. angular-automatic-lock-bot commented on Sep 26, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  10. locked and limited conversation to collaborators on Sep 26, 2025
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

    area: @schematics/angularfreq1: lowseverity2: inconvenienttype: bug/fix

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions