Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hermes_cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ class CommandDef:
CommandDef("model", "Switch model for this session", "Configuration",
aliases=("provider",), args_hint="[model] [--provider name] [--global]"),
CommandDef("codex-runtime", "Toggle codex app-server runtime for OpenAI/Codex models",
"Configuration", args_hint="[auto|codex_app_server]"),
"Configuration", aliases=("codex_runtime",),
args_hint="[auto|codex_app_server]"),
CommandDef("gquota", "Show Google Gemini Code Assist quota usage", "Info",
cli_only=True),

Expand Down
7 changes: 7 additions & 0 deletions tests/hermes_cli/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def test_alias_resolves_to_canonical(self):
assert resolve_command("gateway").name == "platforms"
assert resolve_command("set-home").name == "sethome"
assert resolve_command("reload_mcp").name == "reload-mcp"
assert resolve_command("codex_runtime").name == "codex-runtime"
assert resolve_command("tasks").name == "agents"

def test_topic_is_gateway_command(self):
Expand Down Expand Up @@ -251,6 +252,12 @@ def test_includes_builtin_commands_with_required_args(self):
assert "queue" in names
assert "steer" in names

def test_hyphenated_codex_runtime_is_exposed_as_underscore_command(self):
"""Telegram autocomplete exposes /codex-runtime as /codex_runtime."""
names = {name for name, _ in telegram_bot_commands()}
assert "codex_runtime" in names
assert "codex-runtime" not in names


class TestSlackSubcommandMap:
def test_returns_dict(self):
Expand Down
Loading