fix(kanban): sync slash subcommands with live parser

This commit is contained in:
Que0x
2026-05-18 20:15:31 -07:00
committed by Teknium
parent f149e1e567
commit bc961c13f3
2 changed files with 24 additions and 3 deletions

View File

@@ -201,6 +201,24 @@ def test_kanban_in_autocomplete_table():
assert "dispatch" in subs
def test_kanban_autocomplete_includes_live_subcommands():
from prompt_toolkit.document import Document
from hermes_cli.commands import SlashCommandCompleter
completer = SlashCommandCompleter()
doc = Document("/kanban sp", cursor_position=len("/kanban sp"))
texts = {c.text for c in completer.get_completions(doc, None)}
assert "specify" in texts
doc = Document("/kanban re", cursor_position=len("/kanban re"))
texts = {c.text for c in completer.get_completions(doc, None)}
assert "reclaim" in texts
assert "reassign" in texts
def test_kanban_not_gateway_only():
# kanban is available in BOTH CLI and gateway surfaces.
from hermes_cli.commands import COMMAND_REGISTRY