Skip to content

[Bug]: --use-ai flag silently fails and applies default template without AI customization #8

@yunks128

Description

@yunks128

Checked for duplicates

Have you checked for duplicate issue tickets?

Yes

Describe the bug

When the --use-ai flag is used in slim-cli, if the AI feature fails (e.g., due to a missing API key), a warning is issued, but the tool proceeds by applying the default best practice template without AI customization. This behavior is misleading as users expect AI customization when the flag is used.

What did you expect?

An error should be raised when the --use-ai flag fails (e.g., due to missing or invalid API key), halting execution instead of applying the default template. Users should be notified that AI customization has not been applied.

Reproducible steps

  1. Run slim --use-ai in the terminal.
  2. Ensure AI customization fails (e.g., by not providing a valid API key).
  3. Observe that a warning is displayed, but the command proceeds and applies the default template without AI-based changes.

What is your environment?

  • slim-cli Version: 0.0.4
  • Operating System: macOS

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions