Skip to content

ng g ai-config interactive mode not generating files #32767

@rdamazio

Description

@rdamazio

Command

generate

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Running this schematic in interactive mode asks me to select a format, but when I do, it doesn't output the file. Passing --tool directly on the CLI does output the file.

Minimal Reproduction

  • ng g ai-config (no other flags)
  • Select a format (e.g. Gemini)

Exception or Error

`Nothing to be done.`

Your Environment

/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI       : 21.2.2
Angular           : 21.2.2
Node.js           : 25.8.0 (Unsupported)
Package Manager   : npm 11.11.0
Operating System  : darwin arm64

┌───────────────────────────────────┬───────────────────┬───────────────────┐
│ Package                           │ Installed Version │ Requested Version │
├───────────────────────────────────┼───────────────────┼───────────────────┤
│ @angular/animations               │ 21.2.2            │ ^21.2.4           │
│ @angular/build                    │ 21.2.2            │ ^21.2.2           │
│ @angular/cdk                      │ 21.2.2            │ ^21.2.2           │
│ @angular/cli                      │ 21.2.2            │ ^21.2.2           │
│ @angular/common                   │ 21.2.2            │ ^21.2.4           │
│ @angular/compiler                 │ 21.2.2            │ ^21.2.4           │
│ @angular/compiler-cli             │ 21.2.2            │ ^21.2.4           │
│ @angular/core                     │ 21.2.2            │ ^21.2.4           │
│ @angular/forms                    │ 21.2.2            │ ^21.2.4           │
│ @angular/material                 │ 21.2.2            │ ^21.2.2           │
│ @angular/platform-browser         │ 21.2.2            │ ^21.2.4           │
│ @angular/platform-browser-dynamic │ 21.2.2            │ ^21.2.4           │
│ @angular/platform-server          │ 21.2.2            │ ^21.2.4           │
│ @angular/router                   │ 21.2.2            │ ^21.2.4           │
│ @angular/service-worker           │ 21.2.2            │ ^21.2.4           │
│ @angular/ssr                      │ 21.2.2            │ ^21.2.2           │
│ rxjs                              │ 7.8.2             │ ~7.8.2            │
│ typescript                        │ 5.9.3             │ ~5.9.3            │
│ vitest                            │ 4.0.18            │ ^4.0.18           │
│ zone.js                           │ 0.16.1            │ ^0.16.1           │
└───────────────────────────────────┴───────────────────┴───────────────────┘

Anything else relevant?

I noticed that the test here always passes the tool in, so this case is never exercised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions