-
Notifications
You must be signed in to change notification settings - Fork 73
fix: improve chat rendering if there are additional chat messages #1039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4f2b8e3
to
e7aed5b
Compare
fd248a4
to
21c17a1
Compare
|
||
mynahUi.updateLastChatAnswer(tabId, { | ||
type: ChatItemType.ANSWER, | ||
mynahUi.endMessageStream(tabId, chatResult.messageId ?? '', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this have the potential to break history if we aren't finishing with an answer card?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't have to be the last card, just the one specified.
And in the backend, we only put the current assistantResponse
items in the chatResult
, the tools and previous responses go in the additionalMessages
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
History is done on the server and yes, it currently breaks if we have lingering toolUses
until we port over https://github.com/aws/aws-toolkit-vscode/blob/feature/agentic-chat/packages/core/src/shared/db/chatDb/chatDb.ts#L311
cea8bf1
to
6fad504
Compare
a8955ee
to
3420883
Compare
3420883
to
fe12ed9
Compare
fe12ed9
to
59098f0
Compare
Problem
Solution
Remove a lot of unnecessary progress updates.
Reduces flickering in tool cards.
Enables streaming animation when rendering assistant responses.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.