feat: add configuration for transparent session re-init#760
Merged
DaleSeo merged 4 commits intomodelcontextprotocol:mainfrom Mar 22, 2026
Merged
feat: add configuration for transparent session re-init#760DaleSeo merged 4 commits intomodelcontextprotocol:mainfrom
DaleSeo merged 4 commits intomodelcontextprotocol:mainfrom
Conversation
Contributor
Author
|
I originally added to ci.yml also running tests without the So I reverted this addition. I've opened a separate PR for running the non-local tests here. |
Contributor
Author
I've updated following your comments. |
DaleSeo
approved these changes
Mar 22, 2026
wpfleger96
added a commit
to wpfleger96/rust-sdk
that referenced
this pull request
Mar 23, 2026
* upstream: chore: remove the rig example (modelcontextprotocol#763) feat: add configuration for transparent session re-init (modelcontextprotocol#760) fix: drain in-flight responses on stdin EOF (modelcontextprotocol#759) fix: remove default type param from StreamableHttpService (modelcontextprotocol#758) fix: use cfg-gated Send+Sync supertraits to avoid semver break (modelcontextprotocol#757)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Providing control if to enable transparent session re-init. Added to
StreamableHttpClientTransportConfiga new field:enable_reinit_on_expired_sessionto control if to do transparent session re-init.How Has This Been Tested?
Added a unit test:
test_session_expired_error_when_reinit_disabledand updated current unit test:test_transparent_reinitialization_on_session_expiry.New config option is documented as part of the docs for
StreamableHttpClientTransportConfig.Breaking Changes
No
Types of changes
Checklist
Additional context
Closes #755