Resume MCP executions after session reinitialization - #2086
Open
SpaceMatthieu wants to merge 1 commit into
Open
SpaceMatthieu wants to merge 1 commit into
SpaceMatthieu wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Summary
Allow model-mode MCP clients to resume a paused execution after they initialize a new session. The in-process session store now finds the owning live engine only when account, organization, MCP resource, and approval mode match; it preserves caller-side write authorization, concurrent resume joins, and settled-result replay.
This intentionally remains an in-memory fix: process restarts and normal session expiry still discard resumable execution state.
Linked issue
Fixes #1778
Verification
bun run format:check— passed across 2,158 files.bun run lint— passed across 1,878 files with no warnings or errors.bun run typecheck— all 45 packages passed.bun run test— all 39 non-e2e package tasks passed, including 264 MCP-host tests and 18 execution-engine tests.Checklist
bun run changeset).