Files
hermes-agent/tools
Finn763 e4ccfc16fc fix(tools): restore executor allowlist on message_agent inject success
ensure_message_agent_tool() returned True on the schema-present branch without
re-adding message_agent to agent.valid_tool_names. A long-lived Bot Chat whose
tool surface was rebuilt (compaction / MCP refresh republishes the allowlist from
the registry snapshot, which never contains the injected tool) then advertised
message_agent while the executor rejected every call, and the model fell back to
hermes -p shellouts that time out. Success now means both halves hold.

Re-applied onto the current any()-shaped gate; semantic change and test are the
contributor's (#96109).

Closes #96105
2026-09-16 22:25:33 -07:00
..