From 38bde491ad1c74e34ce0e4d8f7eba82c61436680 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Fri, 19 Sep 2025 14:45:28 -0400 Subject: [PATCH] fix(tui): yes/no init selection (#1074) This commit ensures that the "Yes" and "No" options in the init screen get properly selected when navigating with the keyboard. Related: https://github.com/charmbracelet/crush/issues/1048 --- internal/tui/components/chat/splash/splash.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/tui/components/chat/splash/splash.go b/internal/tui/components/chat/splash/splash.go index b49bd862876f6b3eb880bfe732b956026421aabe..187fc35e6ec47a858b99f35e135a8cef3500fbf1 100644 --- a/internal/tui/components/chat/splash/splash.go +++ b/internal/tui/components/chat/splash/splash.go @@ -253,6 +253,7 @@ func (s *splashCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return s, cmd } if s.needsProjectInit { + s.selectedNo = false return s, s.initializeProject() } case key.Matches(msg, s.keyMap.No):