Files
hermes-agent/hermes_cli
David Metcalfe 6545812c86 fix(dashboard): use config-only scope for /api/model/options to prevent lock-contention freeze
_profile_scope holds _SKILLS_PROFILE_LOCK (threading.RLock) across the
entire context-manager yield.  When get_model_options' worker thread
blocks on fetch_models_dev → requests.get() (up to 15s on a models.dev
cache miss), the lock stays held for the full duration.  Concurrent
requests to /api/config (get_config also enters _profile_scope) then
block the main event-loop thread on the RLock, freezing the server.

Switch to _config_profile_scope which uses only the contextvar-based
HERMES_HOME override (thread-safe, no lock) — sufficient for the config
reads + credential checks that build_model_options_payload needs, and
already used by other await-safe endpoints.

Refs #58576
2026-09-01 12:07:00 -07:00
..
2026-08-31 12:29:27 -07:00
…