Skip to content

Commit f9bdcdc

Browse files
committed
🚑 Fix clientSideAction streaming stuck when it contains …
1 parent db6d258 commit f9bdcdc

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

packages/embeds/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typebot.io/js",
3-
"version": "0.2.72",
3+
"version": "0.2.73",
44
"description": "Javascript library to display typebots on your website",
55
"type": "module",
66
"main": "dist/index.js",

packages/embeds/js/src/components/ConversationContainer/ConversationContainer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ export const ConversationContainer = (props: Props) => {
208208
await processClientSideActions(actionsBeforeFirstBubble)
209209
if (
210210
data.clientSideActions.length === 1 &&
211-
data.clientSideActions[0].type === 'stream'
211+
data.clientSideActions[0].type === 'stream' &&
212+
data.messages.length === 0 &&
213+
data.input === undefined
212214
)
213215
return
214216
}

packages/embeds/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typebot.io/nextjs",
3-
"version": "0.2.72",
3+
"version": "0.2.73",
44
"description": "Convenient library to display typebots on your Next.js website",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

packages/embeds/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typebot.io/react",
3-
"version": "0.2.72",
3+
"version": "0.2.73",
44
"description": "Convenient library to display typebots on your React app",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)