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
{{ message }}
Repository navigation
Commit 7d7f2c3
Browse filesBrowse the repository at this point in the historyBrowse files
Fix KeyError and exit stack leak on empty servers in ClientSessionGroup (#3384)
- Avoid attempting to delete session from _session_exit_stacks in _aggregate_components when a server exposes no tools, resources, or prompts
- Fixes KeyError on connect_with_session with empty servers
- Preserves exit stack tracking on connect_to_server so disconnect_from_server can cleanly aclose the stack
- Add comprehensive unit tests for both connection modes with empty servers
0 commit comments