Files
hermes-agent/gateway
spfcraze 5a035357f5 perf(gateway): make no-override session scan lazy behind debug
The "No session model override" debug line eagerly built a list over every
session's conversation.model_override as a logger.debug argument, 2-4 times
per inbound message, even when DEBUG logging was off. Gate the whole call
on logger.isEnabledFor(logging.DEBUG) so the scan costs nothing in normal
operation.

Re-applied by hand from #77810 (targeted gateway/run.py; the code now lives
in gateway/run_turn.py, logic unchanged). Dropped the PR's routing test.

(cherry picked from commit c3c2bf3801)
2026-09-23 21:47:15 +05:30
..