Skip to content

Commit 0813bf3

Browse files
authored
fix: some chat messages are not added to history (#1102)
1 parent bdf3019 commit 0813bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ export class AgenticChatController implements ChatHandlers {
454454
)
455455

456456
// Add the current assistantResponse message to the history DB
457-
if (result.data?.chatResult.body) {
457+
if (result.data?.chatResult.body !== undefined) {
458458
this.#chatHistoryDb.addMessage(tabId, 'cwc', conversationIdentifier ?? '', {
459459
body: result.data?.chatResult.body,
460460
type: 'answer' as any,

0 commit comments

Comments
 (0)