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:
parent
86f02d8d71
commit
fe0e7edd27
1
cli.py
1
cli.py
@ -8556,6 +8556,7 @@ class HermesCLI:
|
|||||||
# --- /model picker modal ---
|
# --- /model picker modal ---
|
||||||
if self._model_picker_state:
|
if self._model_picker_state:
|
||||||
self._handle_model_picker_selection()
|
self._handle_model_picker_selection()
|
||||||
|
event.app.current_buffer.reset()
|
||||||
event.app.invalidate()
|
event.app.invalidate()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user