Files
hermes-agent/tests/hermes_cli
unsupportedpastels 6df7e00d41 fix(cli): take the gateway's skill list again when a dropped plugin command is dispatched again
On a gateway session the classic CLI now reads its skill commands from the
gateway's catalog, not this process's scan. _process_unregistered_slash took
that list before running a cached plugin command. When a plugin reload had
dropped the command, run() re-read the catalog (GONE), but dispatch kept
using the list it took before. A same-named skill the same reload brought
was not run on that first try; the input got the "no longer has this plugin
command" line instead.

- After GONE, dispatch takes the session's skill commands again, so it uses
  the list from the re-read.
- Lane 3's tests gave /pptwin a skill through a mock of the CLI's local
  scan, which a gateway session no longer reads. The daemon test now
  installs a real pptwin skill in the profile, and the unit tests list it in
  the gateway's catalog.
- _dropped still clears only the cached plugin list. Its re-read (_read)
  publishes the plugin list and the skill list together. If the re-read
  fails, the next lookup reads both again, so invalidate() would change
  nothing anyone can see.

Refs #134889 (PLG-7)
Refs #139523
2026-10-16 19:39:48 -04:00
..