mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-06 10:47:12 +08:00
_capability_cache was a single module-level dict shared across all tokens. If the bot token rotates or multiple tokens are used in one process, capabilities detected for token A would be returned for token B, causing wrong schema gating and incorrect runtime behavior. Replace the single Optional cache with a Dict keyed by token so each token gets its own isolated capability entry.
33 KiB
33 KiB