Skip to content

fix: replay in-memory events for underscore stream ids#2044

Open
raashish1601 wants to merge 1 commit into
modelcontextprotocol:v1.xfrom
raashish1601:codex/inmemory-event-store-underscore-streams
Open

fix: replay in-memory events for underscore stream ids#2044
raashish1601 wants to merge 1 commit into
modelcontextprotocol:v1.xfrom
raashish1601:codex/inmemory-event-store-underscore-streams

Conversation

@raashish1601
Copy link
Copy Markdown

Fixes #943.

Summary

  • read the stream ID for an event from InMemoryEventStore's stored event metadata instead of parsing the generated event ID
  • add a regression test covering _GET_stream, the standalone Streamable HTTP SSE stream ID
  • add a patch changeset for @modelcontextprotocol/sdk

This keeps replay working for stream IDs that contain or start with underscores.

Validation

  • npm test -- test/integration-tests/taskResumability.test.ts
  • npm run typecheck
  • npx prettier --check src/examples/shared/inMemoryEventStore.ts test/integration-tests/taskResumability.test.ts .changeset/fix-inmemory-event-store-sse-resume.md
  • PowerShell equivalent of npm run build compiler steps:
    • npx tsc -p tsconfig.prod.json --pretty false
    • npx tsc -p tsconfig.cjs.json --pretty false
  • git diff --check

Note: npm run build itself uses POSIX shell syntax (mkdir -p ... && ...) and does not start under Windows PowerShell, so I ran the equivalent compiler commands directly.

@raashish1601 raashish1601 requested a review from a team as a code owner May 11, 2026 15:11
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 11, 2026

🦋 Changeset detected

Latest commit: 925825b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 11, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@modelcontextprotocol/sdk@2044

commit: 925825b

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