Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 47c8349

Browse files
srinaathSrinaath Ravichandran
andauthored
Srravich/bugfix/restart option (#2095)
* Saga wrapper and webchat bump Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Handling saga errors Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Revert res.ok Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Track saga error Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> * Revert source maps Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> * Fixing restart conversation option Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> * Restart option unit test Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Co-authored-by: Srinaath Ravichandran <srravich@microsoft.com>
1 parent 155eaac commit 47c8349

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/app/client/src/state/sagas/chatSagas.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import {
6060
RestartConversationStatus,
6161
setRestartConversationStatus,
6262
RestartConversationPayload,
63+
RestartConversationOptions,
6364
} from '@bfemulator/app-shared';
6465
import {
6566
createCognitiveServicesSpeechServicesPonyfillFactory,
@@ -803,6 +804,7 @@ describe('The ChatSagas,', () => {
803804
},
804805
mode: 'livechat' as any,
805806
userId: 'someUserId',
807+
restartConversationOption: RestartConversationOptions.NewUserId,
806808
};
807809
expect(gen.next().value).toEqual(select(getChatFromDocumentId, payload.documentId));
808810

@@ -869,6 +871,7 @@ describe('The ChatSagas,', () => {
869871
conversationId,
870872
directLine,
871873
userId,
874+
restartConversationOption: chat.restartConversationOption,
872875
})
873876
)
874877
);

packages/app/client/src/state/sagas/chatSagas.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ export class ChatSagas {
571571
speechKey: chat.speechKey,
572572
speechRegion: chat.speechRegion,
573573
userId,
574+
restartConversationOption: chat.restartConversationOption,
574575
})
575576
);
576577

0 commit comments

Comments
 (0)