🐛 Fix Bot premature isEnded flag when response has only clientSideActions

This commit is contained in:
Baptiste Arnaud 2025-05-21 15:20:03 +02:00
parent ef18b1c9e5
commit 46089d65df
No known key found for this signature in database
5 changed files with 7 additions and 8 deletions

View File

@ -599,7 +599,7 @@
},
"packages/embeds/js": {
"name": "@typebot.io/js",
"version": "0.3.91",
"version": "0.3.92",
"devDependencies": {
"@ai-sdk/ui-utils": "1.2.2",
"@ark-ui/solid": "5.0.0",
@ -637,7 +637,7 @@
},
"packages/embeds/nextjs": {
"name": "@typebot.io/nextjs",
"version": "0.3.91",
"version": "0.3.92",
"dependencies": {
"next": "15.3.0",
"react": "18.3.1",
@ -656,7 +656,7 @@
},
"packages/embeds/react": {
"name": "@typebot.io/react",
"version": "0.3.91",
"version": "0.3.92",
"dependencies": {
"react": "18.3.1",
},

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/js",
"version": "0.3.91",
"version": "0.3.92",
"description": "Javascript library to display typebots on your website",
"license": "FSL-1.1-ALv2",
"type": "module",

View File

@ -332,8 +332,7 @@ export const ConversationContainer = (props: Props) => {
});
await processClientSideActions(actionsBeforeFirstBubble);
if (
data.clientSideActions.length === 1 &&
data.clientSideActions[0]!.type === "stream" &&
data.clientSideActions.length > 0 &&
data.messages.length === 0 &&
data.input === undefined
)

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/nextjs",
"version": "0.3.91",
"version": "0.3.92",
"license": "FSL-1.1-ALv2",
"description": "Convenient library to display typebots on your Next.js website",
"type": "module",

View File

@ -1,6 +1,6 @@
{
"name": "@typebot.io/react",
"version": "0.3.91",
"version": "0.3.92",
"description": "Convenient library to display typebots on your React app",
"license": "FSL-1.1-ALv2",
"type": "module",