Files
hermes-agent/gateway
John Paul Soliva 99e8251e5b perf(gateway): capability probes read config without the defensive deepcopy
_slack_tools_loaded/_discord_tools_loaded run per turn via _ephemeral_change_key and
_get_platform_tools only reads the config, so the deepcopy in load_config() is pure
overhead on the event loop. Use load_config_readonly().

Partial salvage of #117993: kept the two gateway/session.py hunks, dropped
TestCapabilityProbeConfigLoader because it monkeypatched cfg.load_config to raise —
a change-detector on the symbol read, not an invariant.

(cherry picked from commit a487903180090c5a2fccd4749b05d302cf2740b1)
2026-09-23 21:26:49 +05:30
..
…