Uh oh!
There was an error while loading. Please reload this page.
fix(cloudflare): Set conversation id independent of session name - #22958
Merged
Conversation
JPeer264
requested review from
andreiborza and mydea
and removed request for
a teamAugust 3, 2026 12:48
JPeer264force-pushed
the
jp/conversation-id-agents
branch
from
August 3, 2026 12:49
fbf3b66 to
58211d7CompareUh oh!
There was an error while loading. Please reload this page.
Contributor
size-limit report 📦
|
nicohrubec
approved these changes
Aug 4, 2026
Uh oh!
There was an error while loading. Please reload this page.
JPeer264 added a commit
that referenced
this pull request
Aug 10, 2026
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 freeto 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.
The first conversation ID was always the session name of the
useAgent. The issue was that locally, whenname: 'default'was set, the first conversation ID was always set intodefault. After a reset withclearHistorya UUID v4 got assigned and then correctly set into a new bucket.This could potentially also happen on DO hibernations where the cached
__sentryConversationIdgot reset (which is now a Symbol). To prevent this from happening on hibernations the conversation ID is now stored in the DO as__SENTRY_AGENT_CONVERSATION_ID__.Also there was an issue where a manual
Sentry.setConversationId()within aonChatMessagewas not properly overridden, theAGENT_APPLIED_CONVERSATION_ID_SYMBOLmakes sure, that the conversation ID can be overridden by the user if they wish for it.