Skip to content

[AspireE2E] aspire new in Windows PowerShell (Admin) shows duplicated prompts, raw ANSI escape sequences, and degraded interactive behavior. #13737

@v-elenafeng

Description

@v-elenafeng

REGRESSION INFO: Worked in: Aspire CLI 13.0.

INSTALL STEPS

  1. OS: Windows 11 x64 25h2, Windows PowerShell 5.1 (Run as Administrator)
    Image
  2. Install SDK version: 10.0.101
  3. Install Aspire CLI version: 13.1.0

REPRO STEPS

  1. Open Windows PowerShell as Administrator
  2. Run aspire new
  3. Observe the interactive template selection prompt
  4. Press Up/Down arrow keys to move the selection
  5. Press Enter repeatedly to continue through the flow
  6. Run: 'aspire run' on the generated project

ACTUAL

When running aspire new in PowerShell on Windows:

  • The template selection prompt ("Select a template") is rendered twice.

  • ANSI escape sequences (e.g. [94m, [0m, [90m]) are printed as raw text instead of being interpreted by the terminal.

    Image

Arrow keys do not work: Pressing Up or Down does not move the selection. Instead, it triggers another full re‑print of the prompt and list, making template selection impossible.
Enter advances the flow with defaults: If the user keeps pressing Enter, the CLI continues to subsequent steps using default choices, and eventually completes project creation.

During aspire new and aspire run, progress output is repeatedly printed, resulting in long and duplicated console output.

Image

Additional Information

This issue also reproduces with non-interactive usage (e.g., aspire new --template <template>)

This issue does not reproduce when running the same command in Windows PowerShell without Administrator privileges.
Image

This does not reproduce when running the same command in cmd.exe.
Image

EXPECTED

  • The interactive template selection prompt should be rendered once, without duplicated blocks.
  • ANSI escape sequences should be interpreted by the terminal, not printed as raw text.
  • Up / Down arrow keys should correctly move the selection.
  • During project creation and execution, progress output should be concise and should not be repeatedly printed as long duplicated content.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions