Repository navigation
fix: refresh closed MCP connections before turns - #563
Closed
GraciousGazelles wants to merge 3 commits into
Closed
GraciousGazelles wants to merge 3 commits into
GraciousGazelles wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a liveness probing mechanism for MCP (Model Context Protocol) connections to detect when an initialized connection has lost its transport. It adds an exponential backoff strategy for repeated closed results to prevent rapid crash/restart loops, and integrates this check into the session turn lifecycle. Unit and integration tests have been added to verify the backoff behavior and server replacement. No review comments were provided, so there is no additional feedback.
Collaborator
Author
Collaborator
Author
|
Closed as superseded by #564. |
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.
Current-base replacement for #554 and supersedes #562, which could not receive fresh pull-request checks after its review repair.
Refresh initialized MCP connections that have lost their transport before an ordinary turn publishes its provider catalogue. Probes are once per turn and use bounded exponential backoff after repeated closed results. Includes focused liveness and refresh-cleanup coverage.
The reviewed backoff-state fix is included in the signed head.