@@ -197,6 +197,7 @@ export const createMynahUI = (
197
197
mynahUI . updateStore ( tabID , {
198
198
loadingChat : true ,
199
199
promptInputDisabledState : true ,
200
+ cancelButtonWhenLoading : true ,
200
201
} )
201
202
202
203
if ( message && messageId ) {
@@ -307,6 +308,7 @@ export const createMynahUI = (
307
308
) {
308
309
mynahUI . updateStore ( tabID , {
309
310
loadingChat : true ,
311
+ cancelButtonWhenLoading : false ,
310
312
promptInputDisabledState : true ,
311
313
} )
312
314
@@ -462,6 +464,13 @@ export const createMynahUI = (
462
464
onTabRemove : connector . onTabRemove ,
463
465
onTabChange : connector . onTabChange ,
464
466
// TODO: update mynah-ui this type doesn't seem correct https://github.com/aws/mynah-ui/blob/3777a39eb534a91fd6b99d6cf421ce78ee5c7526/src/main.ts#L372
467
+ onStopChatResponse : ( tabID : string ) => {
468
+ mynahUI . updateStore ( tabID , {
469
+ loadingChat : false ,
470
+ promptInputDisabledState : false ,
471
+ } )
472
+ connector . onStopChatResponse ( tabID )
473
+ } ,
465
474
onChatPrompt : ( tabID : string , prompt : ChatPrompt , eventId : string | undefined ) => {
466
475
if ( ( prompt . prompt ?? '' ) === '' && ( prompt . command ?? '' ) === '' ) {
467
476
return
0 commit comments