Skip to content

Remove conflicting /q alias from /queue#9830

Closed
Xowiek wants to merge 1 commit into
NousResearch:mainfrom
Xowiek:fix/remove-queue-q-alias
Closed

Remove conflicting /q alias from /queue#9830
Xowiek wants to merge 1 commit into
NousResearch:mainfrom
Xowiek:fix/remove-queue-q-alias

Conversation

@Xowiek

@Xowiek Xowiek commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix a conflicting /q alias in the slash-command registry.

Before this change, /q was assigned to both queue and quit. That made command lookup and help output disagree: /q resolved to quit, while help still advertised /q as an alias for /queue.

Fix

Remove the conflicting q alias from queue and keep the existing /q -> quit behavior unchanged.

Also update the related CLI comment so it matches the actual behavior.

Tests

Added regression coverage for:

  • alias uniqueness across commands
  • /queue help no longer showing /q
  • resolve_command("q") continuing to resolve to quit

Validation:

python -m unittest discover -s tests/hermes_cli -p test_command_alias_collisions.py -v

Result: 
test_aliases_are_unique_across_commands ... ok
test_queue_help_does_not_advertise_quit_alias ... ok

Ran 2 tests in 0.010s

OK

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 26, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Thanks for the clear write-up and regression tests, @Xowiek! This fix was independently landed the day after you opened this PR.

This is an automated hermes-sweeper review.

Already implemented on main:

  • Commit 3b4ecf8ee made exactly the same change — removed "q" from /quit's aliases tuple, keeping /queue's "q" alias intact. It also closed the upstream issue Bug: /queue alias q is shadowed by /quit in command registry #10467.
  • hermes_cli/commands.py line 176 currently reads aliases=("exit",) for /quit, and line 91 shows /queue retaining aliases=("q",).
  • Runtime verification confirms resolve_command("q") returns queue with no collisions.
  • The fix shipped in v2026.4.16 (and v2026.4.23).

Closing as implemented. The regression test file added here (tests/hermes_cli/test_command_alias_collisions.py) is a nice addition — feel free to open a follow-up PR with just the test if you'd like it landed.

@teknium1 teknium1 closed this Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants