From 657ed7da5bb7b354f8940c0bec18829f095d4c86 Mon Sep 17 00:00:00 2001 From: Jason Lernerman Date: Wed, 24 Jun 2026 15:23:49 -0400 Subject: [PATCH] Default 'Install dependencies?' prompt to yes in agent create TUI 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. --- cmd/lk/app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/lk/app.go b/cmd/lk/app.go index 30ab87554..957f884b2 100644 --- a/cmd/lk/app.go +++ b/cmd/lk/app.go @@ -430,6 +430,8 @@ func setupTemplate(ctx context.Context, cmd *cli.Command) error { bootstrap.WriteDotEnv(appName, envOutputFile, env, true) if !cmd.IsSet("install") && !SkipPrompts(cmd) { + // Default the prompt to "yes" — installing deps is the common case. + install = true if err := huh.NewForm(huh.NewGroup(util.Confirm(). Title("Install dependencies?"). Value(&install).