Skip to content

fix(conversations): Load only MCP connection events at turn start - #2940

Merged
dcramer merged 1 commit into
mainfrom
fix/mcp-providers-history
Nov 8, 2026
Merged

dcramer merged 1 commit into
mainfrom
fix/mcp-providers-history

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

loadConnectedMcpProviders runs at every turn start. It read every event of the Conversation across every history version, only to find mcp_provider_connected events.

  • Add ConversationEventStore.loadEventsOfType(conversationId, type). The SQL store filters by type through the existing (conversation_id, type, seq) index.
  • loadConnectedMcpProviders uses it, so turn start no longer loads the whole event log of a long Conversation with many history versions.

The existing test "keeps actor-owned MCP connections across history replacement" covers the behavior.

via @BYK.

--

View Session in Sentry

@vercel

vercel Bot commented Nov 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 8, 2026 7:52pm UTC

Request Review

@github-actions github-actions Bot added the risk: low PR risk score: low label Nov 8, 2026
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

8 screenshot changes — 8 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Create Focused · Desktop
Conversation Create Focused · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Details Watched Linked Work · Mobile
Conversation Details Watched Linked Work · Mobile
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Show 2 more changed screenshots
Memories · Mobile
Memories · Mobile
Changed
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

@BYK
BYK requested a review from dcramer November 8, 2026 20:02
@dcramer

dcramer commented Nov 8, 2026

Copy link
Copy Markdown
Member

seems good - if we have a bug like this we probably have more from doing bad things that maybe were from pre-sql days

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 0f5b43c2 Deployed Nov 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants