Skip to content

add --addons ultracite command hangs indefinitely due to interactive prompts #673

@SimoMay

Description

@SimoMay

Bug Description

When running bunx create-better-t-stack add --addons ultracite --install, the command hangs indefinitely waiting for user input during the ultracite setup process.

Environment

  • Better-T-Stack version: 3.2.20
  • Ultracite version: 6.3.0
  • Package manager: bun
  • Operating system: macOS

Steps to Reproduce

  1. Run: bunx create-better-t-stack add --addons ultracite --install
  2. Command displays "Setting up Ultracite..."
  3. Command hangs at "Which agent hooks do you want to enable?" prompt

Root Cause Analysis

The issue occurs because:

  1. Better-T-Stack expects non-interactive behavior: It calls ultracite with CI: "true" environment variable expecting it to skip prompts
  2. Ultracite doesn't respect CI mode: Even with CI=true, ultracite still shows interactive prompts for "agent hooks" and "additional integrations"
  3. Command construction: Better-T-Stack runs: bunx ultracite@latest init --pm bun --frameworks react --editors vscode --agents claude --skip-install with CI=true

Validation

I've confirmed the issue by testing:
CI=true bunx ultracite@latest init --pm bun --frameworks react --editors vscode --agents claude --skip-install
The ultracite CLI help output shows no --yes or --no-interactive flags, and CI=true is not documented as supported.

Expected Behavior

Either:

  1. Ultracite should respect CI=true and skip all interactive prompts, OR
  2. Better-T-Stack should implement a fallback when ultracite fails to run non-interactively

Actual Behavior

Command hangs indefinitely waiting for user input, breaking the automation chain.

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions