π¦ New version release - #557
Merged
Merged
Conversation
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@smooai/smooth-operator@1.58.7
Patch Changes
8865fbd: fix(server): a conversation is born on its first message, not on the widget open (SMOODEV-3057)
Opening the widget wrote a
conversationsrow β plus both participants and asession β before the visitor had typed anything. In a 30-day production sample
44 of 117 web conversations carried zero messages: bare opens occupying an
inbox row. And because a web create feeds a fresh UUID as the conversation's
idempotency_key, the unique index'sON CONFLICT DO NOTHINGcould nevercollapse a double-connect the way it does for sms/slack/discord, so a
reconnecting visitor accumulated rows.
create_conversation_sessionnow parks a bare open β nouserEmail, nometadata.userPhone, noconversationIdto resume β and writes it on thesession's first
send_message, in the same order as before (conversation β userparticipant β agent participant β session). A connection that closes without a
message drops its parked writes; a reconnect naming the parked
conversationIdbinds to it, keeping the id and the durable
supportsrecord.The wire is unchanged: the client still gets its
sessionId/conversationIdback immediately, and the session is usable on that connection at once.
An open that carries visitor identity is not deferred. It is a captured lead,
and a host adapter may hook the
userparticipant write to upsert that visitorinto its CRM (reading phone + marketing consent off the conversation's
metadata_json), so those still persist immediately β as do every non-webchannel and every resume.
A storage blip during the flush is reported as retryable
STORAGE_ERRORwith theparked writes kept, and the retry resumes at the step it stopped on rather than
re-inserting a row whose primary key is already taken.
@smooai/smooth-operator-web-chat-example@0.0.120
Patch Changes