review(copilot): point reload.env docstring at hermes_cli.config.reload_env

This commit is contained in:
Brooklyn Nicholson 2026-04-28 15:52:41 -05:00 committed by Teknium
parent 6b4ef00a2c
commit 97a2474b39

View File

@ -3431,9 +3431,10 @@ def _(rid, params: dict) -> dict:
@method("reload.env")
def _(rid, params: dict) -> dict:
"""Re-read ~/.hermes/.env into the gateway process — TUI parity with
classic CLI's ``/reload`` (cli.py). Newly added API keys take effect
on the next agent call without restarting the TUI.
"""Re-read ``~/.hermes/.env`` into the gateway process via
``hermes_cli.config.reload_env``, matching classic CLI's ``/reload``
handler. Newly added API keys take effect on the next agent call
without restarting the TUI.
The credential pool / provider routing for any *already-constructed*
agent does not auto-rebuild that's the same behaviour as classic