Repository navigation
fix(conversations): Load only MCP connection events at turn start - #2940
Merged
Merged
Conversation
Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
8 screenshot changes — 8 changed · 0 added · 0 removed Review screenshots in Frameshift |
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 |
dcramer
approved these changes
Nov 8, 2026
23 tasks done
This was referenced Nov 9, 2026
This branch was successfully 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.
loadConnectedMcpProvidersruns at every turn start. It read every event of the Conversation across every history version, only to findmcp_provider_connectedevents.ConversationEventStore.loadEventsOfType(conversationId, type). The SQL store filters by type through the existing(conversation_id, type, seq)index.loadConnectedMcpProvidersuses 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