You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lazy-init toolbox MCP connections on first request (#46525)
Move toolbox MCP connect_toolboxes() from initialize() (startup) to
_get_or_create_session() (first request) to fix race condition where
tool discovery fails because platform-injected user context is not yet
available at startup time.
Uses double-checked locking with asyncio.Lock to prevent concurrent
initialization from parallel requests.
Co-authored-by: root <root@CPC-cearl-W9ZSG.localdomain>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments