mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-05 02:31:47 +00:00
fix(cli): remove dead 'q' check from quit command resolution
The 'q' alias is defined for 'queue' command in commands.py:93.
The hardcoded 'q' in cli.py:5910 was dead code - resolve_command('q')
returns the queue CommandDef, so canonical would never be 'q'.
Removes the misleading check without changing any behavior:
- /quit and /exit still exit (defined aliases)
- /q still maps to queue (as intended)
This commit is contained in:
parent
cba86b7303
commit
e3461e0b2a
2 changed files with 8 additions and 1 deletions
2
cli.py
2
cli.py
|
|
@ -6282,7 +6282,7 @@ class HermesCLI:
|
|||
_cmd_def = _resolve_cmd(_base_word)
|
||||
canonical = _cmd_def.name if _cmd_def else _base_word
|
||||
|
||||
if canonical in ("quit", "exit", "q"):
|
||||
if canonical in ("quit", "exit"):
|
||||
return False
|
||||
elif canonical == "help":
|
||||
self.show_help()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue