@@ -76,7 +76,7 @@ export const createMynahUI = (
7676 body : 'This conversation has timed out after 48 hours. It will not be saved. Start a new conversation.' ,
7777 } )
7878 mynahUI . updateStore ( tabID , {
79- promptInputDisabledState : true ,
79+ promptInputDisabledState : false ,
8080 promptInputPlaceholder : 'Session ended.' ,
8181 } )
8282 } ,
@@ -422,7 +422,7 @@ export const createMynahUI = (
422422 mynahUI . updateStore ( tabID , {
423423 loadingChat : true ,
424424 cancelButtonWhenLoading : false ,
425- promptInputDisabledState : true ,
425+ promptInputDisabledState : false ,
426426 } )
427427
428428 tabsStorage . updateTabStatus ( tabID , 'busy' )
@@ -655,9 +655,10 @@ export const createMynahUI = (
655655 onTabChange : connector . onTabChange ,
656656 // TODO: update mynah-ui this type doesn't seem correct https://github.com/aws/mynah-ui/blob/3777a39eb534a91fd6b99d6cf421ce78ee5c7526/src/main.ts#L372
657657 onStopChatResponse : ( tabID : string ) => {
658+ console . log ( 'stop button clicked' )
658659 mynahUI . updateStore ( tabID , {
659660 loadingChat : false ,
660- promptInputDisabledState : false ,
661+ promptInputDisabledState : true ,
661662 } )
662663 connector . onStopChatResponse ( tabID )
663664 } ,
0 commit comments