File tree Expand file tree Collapse file tree 8 files changed +9
-14
lines changed Expand file tree Collapse file tree 8 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 525
525
"@aws-sdk/s3-request-presigner" : " <3.731.0" ,
526
526
"@aws-sdk/smithy-client" : " <3.731.0" ,
527
527
"@aws-sdk/util-arn-parser" : " <3.731.0" ,
528
- "@aws/mynah-ui" : " ^4.31.0-beta.2 " ,
528
+ "@aws/mynah-ui" : " ^4.31.0-beta.3 " ,
529
529
"@gerhobbelt/gitignore-parser" : " ^0.2.0-9" ,
530
530
"@iarna/toml" : " ^2.2.5" ,
531
531
"@smithy/fetch-http-handler" : " ^5.0.1" ,
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ export class FollowUpInteractionHandler {
47
47
if ( followUp . prompt !== undefined ) {
48
48
this . mynahUI . updateStore ( tabID , {
49
49
loadingChat : true ,
50
- cancelButtonWhenLoading : false ,
51
50
promptInputDisabledState : true ,
52
51
} )
53
52
this . mynahUI . addChatItem ( tabID , {
Original file line number Diff line number Diff line change @@ -471,7 +471,6 @@ export const createMynahUI = (
471
471
) {
472
472
mynahUI . updateStore ( tabID , {
473
473
loadingChat : true ,
474
- cancelButtonWhenLoading : false ,
475
474
promptInputDisabledState : true ,
476
475
} )
477
476
Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ export class MessageController {
88
88
89
89
this . mynahUI . updateStore ( selectedTab . id , {
90
90
loadingChat : true ,
91
- cancelButtonWhenLoading : false ,
92
91
promptInputDisabledState : true ,
93
92
} )
94
93
this . mynahUI . addChatItem ( selectedTab . id , message )
@@ -120,7 +119,7 @@ export class MessageController {
120
119
121
120
this . mynahUI . updateStore ( newTabID , {
122
121
loadingChat : true ,
123
- cancelButtonWhenLoading : false ,
122
+ // cancelButtonWhenLoading: false,
124
123
promptInputDisabledState : true ,
125
124
} )
126
125
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ export class TextMessageHandler {
36
36
37
37
this . mynahUI . updateStore ( tabID , {
38
38
loadingChat : true ,
39
- cancelButtonWhenLoading : false ,
40
39
promptInputDisabledState : true ,
41
40
} )
42
41
Original file line number Diff line number Diff line change @@ -272,7 +272,6 @@ export class QuickActionHandler {
272
272
273
273
this . mynahUI . updateStore ( affectedTabId , {
274
274
loadingChat : true ,
275
- cancelButtonWhenLoading : false ,
276
275
promptInputDisabledState : true ,
277
276
} )
278
277
@@ -310,7 +309,6 @@ export class QuickActionHandler {
310
309
if ( currentTabType !== 'unknown' && currentTabType !== 'welcome' ) {
311
310
affectedTabId = this . mynahUI . updateStore ( '' , {
312
311
loadingChat : true ,
313
- cancelButtonWhenLoading : false ,
314
312
} )
315
313
}
316
314
@@ -335,7 +333,6 @@ export class QuickActionHandler {
335
333
// disable chat prompt
336
334
this . mynahUI . updateStore ( affectedTabId , {
337
335
loadingChat : true ,
338
- cancelButtonWhenLoading : false ,
339
336
} )
340
337
341
338
this . connector . transform ( affectedTabId )
Original file line number Diff line number Diff line change @@ -483,7 +483,9 @@ export class Database {
483
483
}
484
484
485
485
// Make sure the last stored message is from the assistant (type === 'answer'), else drop
486
- if ( messages . length > 0 && messages [ messages . length - 1 ] . type === ( 'prompt' as ChatItemType ) ) {
486
+ if ( messages . length > 0 && messages [ messages . length - 1 ] . userInputMessageContext ) {
487
+ // eslint-disable-next-line aws-toolkits/no-console-log
488
+ console . log ( 'found the last message to be userInputMessage' )
487
489
messages . pop ( )
488
490
this . logger . debug ( 'Dropped trailing user message' )
489
491
}
You can’t perform that action at this time.
0 commit comments