Repository navigation
fix: preserve MCP cleanup retries and accurate runtime discovery - #185
Merged
Merged
Conversation
anycodes
marked this pull request as ready for review
November 25, 2026 10:26
This was referenced Nov 25, 2026
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.
Description
Failed MCP cleanup previously discarded sandbox handles and the HTTP session, allowing DELETE to report success without a retry path. This change retains failed cleanup, waits for admitted resource acquisition, returns503 for incomplete termination and409 for closing-session POST, and keeps actual provider connections usable after a failed delete. An acknowledged delete is not repeated merely to finish local cleanup.
Explicit MCP HTTP protocol versions are validated before session or tool mutation. Missing harness errors now direct authors to prepare a pinned CLI in the image. Python package inventory reads the current interpreter's installed metadata, including uv environments without pip.
Closes #181. Closes #182. Closes #183. Closes #184.
Companion CLI: Alibaba-Agent-Sandbox/agent-sandbox#280
Type of Change
Changes
Testing
The original shared-host failures remain in the evidence (server6,client13); isolated follow-ups are recorded separately. Final CI checks the combined tree. No FC deployment, OpenSandbox cloud qualification or package publication is claimed. Recovery remains in the live MCP process, with provider TTL as the fallback after process loss.
Definition of Done