From fe0e7edd2794c2090955bdccc22d7187522ae9c5 Mon Sep 17 00:00:00 2001 From: Jorge Date: Fri, 17 Apr 2026 21:46:47 +0930 Subject: [PATCH] fix(cli): clear input buffer after /model picker selection The Enter handler that confirms a selection in the /model picker closed the picker but never reset event.app.current_buffer, leaving the user's original "/model" command lingering in the prompt. Match the ESC and Ctrl+C handlers (which already reset the buffer) so the prompt is empty after a successful switch. --- cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cli.py b/cli.py index 2709b905a..4102dcf02 100644 --- a/cli.py +++ b/cli.py @@ -8556,6 +8556,7 @@ class HermesCLI: # --- /model picker modal --- if self._model_picker_state: self._handle_model_picker_selection() + event.app.current_buffer.reset() event.app.invalidate() return