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.
This commit is contained in:
Jorge 2026-04-17 21:46:47 +09:30 committed by Teknium
parent 86f02d8d71
commit fe0e7edd27

1
cli.py
View file

@ -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