The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(cli): /reload-skills prints the CLI diff; the gateway rescan only refreshes its map
Teknium922d61f2875c
diff --git a/hermes_cli/cli_info_mixin.py b/hermes_cli/cli_info_mixin.pyindex 5f27c49b524..51d7663def1 100644--- a/hermes_cli/cli_info_mixin.py+++ b/hermes_cli/cli_info_mixin.py@@ -1033,7 +1033,7 @@ class CLIInfoMixin:print(t("cli.reload_skills.reloading"))result = reload_skills()from hermes_cli.gateway_tools import reload_gateway_skills- result = reload_gateway_skills() or result # the gateway that runs the turn rescans too+ reload_gateway_skills() # the gateway that runs the turn rescans too; main's lines use the CLI diffadded = result.get("added", []) # [{"name", "description"}, ...]removed = result.get("removed", [])total = result.get("total", 0)diff --git a/tests/hermes_cli/test_gateway_tools.py b/tests/hermes_cli/test_gateway_tools.pyindex cb8a0220a3c..af868f4fa29 100644--- a/tests/hermes_cli/test_gateway_tools.py+++ b/tests/hermes_cli/test_gateway_tools.py@@ -122,7 +122,10 @@ def test_reload_skills_rescans_in_the_gateway_session_and_prints_main_lines(gatefrom agent import skill_commandsfrom hermes_cli.cli_info_mixin import CLIInfoMixin_agent, client = gateway- monkeypatch.setattr(skill_commands, "reload_skills", lambda: {"added": [], "removed": [], "total": 2})+ # The gateway's first rescan diffs against an empty map (everything "added"); main's lines come+ # from the CLI's own diff, which matches what the user installed.+ monkeypatch.setattr(skill_commands, "reload_skills", lambda: {+ "added": [{"name": "zeta-skill", "description": "Zeta."}], "removed": [], "total": 3})cli = type("C", (), {"_command_running": False})()CLIInfoMixin._reload_skills(cli)out = capsys.readouterr().out