Skip to content

fix: refresh closed MCP connections before turns - #563

Closed
GraciousGazelles wants to merge 3 commits into
mainfrom
fix/mcp-liveness-20260731-v2
Closed

GraciousGazelles wants to merge 3 commits into
mainfrom
fix/mcp-liveness-20260731-v2

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@GraciousGazelles

Copy link
Copy Markdown
Collaborator Author

Superseded by current-base follow-up #564. The original MCP implementation is already in main via #554; #564 contains only the valid backoff-state review repair.

@GraciousGazelles

Copy link
Copy Markdown
Collaborator Author

Closed as superseded by #564.

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.

1 participant