Skip to content

fix(toolbox-core): Prevent ToolboxClient from closing externally managed client sessions #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 30, 2025

Conversation

anubhav756
Copy link
Contributor

@anubhav756 anubhav756 commented May 23, 2025

Fixes #208

This change ensures that the ToolboxClient only closes client sessions that it creates and manages internally. If a client session is provided externally (i.e., injected into the ToolboxClient), the responsibility for managing its lifecycle, including closing it, remains with the entity that provided it. This prevents unintended closure of externally managed sessions.

…naged client sessions

This change ensures that the `ToolboxClient` only closes client sessions that it creates and manages internally. If a client session is provided externally (i.e., injected into the `ToolboxClient`), the responsibility for managing its lifecycle, including closing it, remains with the entity that provided it. This prevents unintended closure of externally managed sessions.
@anubhav756 anubhav756 self-assigned this May 23, 2025
@anubhav756 anubhav756 requested a review from a team as a code owner May 23, 2025 13:03
@anubhav756
Copy link
Contributor Author

/gcbrun

@anubhav756 anubhav756 force-pushed the anubhav-manage-session branch from a57411a to c557b90 Compare May 30, 2025 19:54
@anubhav756 anubhav756 merged commit 7520adf into main May 30, 2025
20 checks passed
@anubhav756 anubhav756 deleted the anubhav-manage-session branch May 30, 2025 20:18
@release-please release-please bot mentioned this pull request May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

toolbox_langchain does not close session
2 participants