From c4779f537f71ff8b41ae47024c9723a4b3522f4b Mon Sep 17 00:00:00 2001 From: ayn2op Date: Mon, 11 May 2026 23:07:18 -0400 Subject: [PATCH] refactor(chat): simplify input cancel path --- internal/ui/chat/message_input.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/ui/chat/message_input.go b/internal/ui/chat/message_input.go index d8e404e..f74ce3b 100644 --- a/internal/ui/chat/message_input.go +++ b/internal/ui/chat/message_input.go @@ -147,9 +147,8 @@ func (mi *messageInput) Update(msg tview.Msg) tview.Cmd { case keybind.Matches(msg, mi.cfg.Keybinds.MessageInput.Cancel.Keybind): if mi.chat.GetVisible(mentionsListLayerName) { return mi.stopTabCompletion() - } else { - mi.reset() } + mi.reset() return nil case keybind.Matches(msg, mi.cfg.Keybinds.MessageInput.TabComplete.Keybind): return mi.tabComplete()