Skip to content

Commit 2c3b59f

Browse files
committed
fixed: update last chat answer usage
1 parent 2cbf139 commit 2c3b59f

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@aws/mynah-ui",
33
"displayName": "AWS Mynah UI",
4-
"version": "4.30.1",
4+
"version": "4.30.2-beta.1",
55
"description": "AWS Toolkit VSCode and Intellij IDE Extension Mynah UI",
66
"publisher": "Amazon Web Services",
77
"license": "Apache License 2.0",

src/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,9 +801,11 @@ ${(item.task ? marked.parseInline : marked.parse)(item.text, { breaks: false })
801801
this.addChatItem(tabId, {
802802
type: ChatItemType.ANSWER_STREAM,
803803
body: '',
804-
messageId: generateUID()
804+
messageId: generateUID(),
805+
...updateWith
805806
});
806-
this.chatWrappers[tabId].updateLastChatAnswer(updateWith);
807+
console.log("There were no previous streaming cards, we're creating a new one with the content below:");
808+
console.log(updateWith);
807809
}
808810
}
809811
};

0 commit comments

Comments
 (0)