mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
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 changed files with 1 additions and 0 deletions
1
cli.py
1
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue