Skip to content

Default 'Install dependencies?' prompt to yes in agent create TUI#885

Merged
u9g merged 1 commit into
mainfrom
jason/default-install-deps-yes
Jun 24, 2026
Merged

Default 'Install dependencies?' prompt to yes in agent create TUI#885
u9g merged 1 commit into
mainfrom
jason/default-install-deps-yes

Conversation

@u9g

@u9g u9g commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

What

When running lk agent create interactively, the Install dependencies? confirm now defaults to Yes instead of No.

Why

The confirm is a huh.Select[bool] whose cursor is seeded from the bound install value. That value came from cmd.Bool("install"), which is false when the --install flag isn't passed — so the prompt opened on No. Installing deps is the common case, so it should be the default.

Behavior

  • lk agent create (interactive, no flag) → prompt now defaults to Yes.
  • --install / --install=false → unchanged; the explicit flag short-circuits the prompt entirely.
  • non-interactive (SkipPrompts) without the flag → unchanged.

The install confirm seeded its cursor from cmd.Bool("install"), which is
false when the flag isn't passed, leaving the prompt defaulted to No. Seed
install=true before the form so the common case (Yes) is preselected.
@u9g u9g merged commit c6fea02 into main Jun 24, 2026
10 checks passed
@u9g u9g deleted the jason/default-install-deps-yes branch June 24, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants