diff --git a/internal/tui/components/chat/editor/editor.go b/internal/tui/components/chat/editor/editor.go index 73ea00110b4b0bba8a6d3919b4cd5bf4ac898afc..7460efedbf1b2f6d04cb43d6d8c3a9e72dd91f46 100644 --- a/internal/tui/components/chat/editor/editor.go +++ b/internal/tui/components/chat/editor/editor.go @@ -330,6 +330,7 @@ func (m *editorCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) { cmds = append(cmds, util.CmdHandler(CloseHistoryMsg{ valueToSet: m.textarea.Value(), })) + // we want to process whatever the key press is but only after coming out of history mode cmds = append(cmds, util.CmdHandler(msg)) return m, tea.Sequence(cmds...) }