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:
ChanlerDev 2026-04-27 02:44:48 +08:00 committed by Teknium
parent cba86b7303
commit e3461e0b2a
2 changed files with 8 additions and 1 deletions

2
cli.py
View file

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