Skip to content

Resume MCP executions after session reinitialization - #2086

Open
SpaceMatthieu wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
SpaceMatthieu:fix/mcp-cross-session-resume
Open

SpaceMatthieu wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
SpaceMatthieu:fix/mcp-cross-session-resume

Conversation

@SpaceMatthieu

Copy link
Copy Markdown

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.
  • e2e — no dedicated repository e2e scenario was run; the MCP session-store suite covers the cross-session protocol flow, authorization boundaries, concurrent joins, settled replay, failure handling, and session lifetime.

Checklist

  • Added a changeset (bun run changeset).
  • Added or updated tests for the new behaviour.
  • No secrets, credentials, or private data in the diff.

This branch has not been deployed

No deployments
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.

Self-hosted model resume loses paused executions across MCP sessions

1 participant