The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(dashboard): use config-only scope for /api/model/options to prevent lock-contention freeze
David Metcalfe6545812c866b
diff --git a/hermes_cli/web_server.py b/hermes_cli/web_server.pyindex d5ad2e9ab6c..3c368dd62cf 100644--- a/hermes_cli/web_server.py+++ b/hermes_cli/web_server.py@@ -7501,7 +7501,11 @@ async def get_model_options(# Keep the profile override inside the worker thread so the full# sync picker build (config load, pricing, refresh probes) runs# off the event loop under the requested profile.- with _profile_scope(profile):+ # Use _config_profile_scope (contextvar only, no skill-module+ # lock) — the payload build can block for 15s on a models.dev+ # cache miss, and _profile_scope's RLock held across that block+ # starves concurrent /api/config and freezes the server (#58576).+ with _config_profile_scope(profile):return build_model_options_payload(load_picker_context(),explicit_only=bool(explicit_only),