We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e97fc5c commit fe5cd3dCopy full SHA for fe5cd3d
packages/ai/src/chatTransport.ts
@@ -337,8 +337,10 @@ export class TriggerChatTransport<
337
return;
338
}
339
340
- runState.lastEventId = part.id;
341
- await this.runStore.set(runState);
+ await this.runStore.set({
+ ...runState,
342
+ lastEventId: part.id,
343
+ });
344
345
346
const runState = await this.runStore.get(chatId);
@@ -380,8 +382,10 @@ export class TriggerChatTransport<
380
382
381
383
384
private async markRunInactiveAndDelete(runState: TriggerChatRunState) {
- runState.isActive = false;
385
386
387
+ isActive: false,
388
389
await this.runStore.delete(runState.chatId);
390
391
0 commit comments