File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/core/src/amazonq/webview/ui Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -993,6 +993,9 @@ export const createMynahUI = (
993993 connector . onPromptInputOptionChange ( tabId , optionsValues )
994994 } ,
995995 onMessageDismiss : ( tabId , messageId ) => {
996+ if ( messageId === 'programmerModeCardId' ) {
997+ tabDataGenerator . dismissedCards = true
998+ }
996999 connector . onMessageDismiss ( tabId , messageId )
9971000 } ,
9981001 onFileClick : connector . onFileClick ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class TabDataGenerator {
2828 public quickActionsGenerator : QuickActionGenerator
2929 private highlightCommand ?: FeatureContext
3030 private regionProfile ?: RegionProfile
31- private dismissedCards ?: boolean
31+ public dismissedCards ?: boolean
3232
3333 constructor ( props : TabDataGeneratorProps ) {
3434 this . followUpsGenerator = new FollowUpGenerator ( )
@@ -61,6 +61,8 @@ export class TabDataGenerator {
6161
6262 const programmerModeCardId = 'programmerModeCardId'
6363 const isProgrammerModeCardDismissed = this . dismissedCards
64+ // eslint-disable-next-line aws-toolkits/no-console-log
65+ console . log ( 'isProgrammermodeCardDismissed' , isProgrammerModeCardDismissed )
6466 const programmerModeCard : ChatItem | undefined = ! isProgrammerModeCardDismissed
6567 ? ( {
6668 type : ChatItemType . ANSWER ,
You can’t perform that action at this time.
0 commit comments