Skip to content

Commit 122f718

Browse files
authored
fix(chat): fix for userInputMessage to include all context (aws#6941)
## Problem Chat history is not storing user input context ## Solution fix for userInputMessage to include all context --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 4446831 commit 122f718

File tree

1 file changed

+3
-1
lines changed
  • packages/core/src/codewhispererChat/controllers/chat

1 file changed

+3
-1
lines changed

packages/core/src/codewhispererChat/controllers/chat/controller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,9 @@ export class ChatController {
14261426
}
14271427
this.telemetryHelper.recordEnterFocusConversation(triggerEvent.tabID)
14281428
this.telemetryHelper.recordStartConversation(triggerEvent, triggerPayload)
1429-
chatHistory.appendUserMessage(fixedHistoryMessage)
1429+
if (request.conversationState.currentMessage) {
1430+
chatHistory.appendUserMessage(request.conversationState.currentMessage)
1431+
}
14301432

14311433
getLogger().info(
14321434
`response to tab: ${tabID} conversationID: ${session.sessionIdentifier} requestID: ${

0 commit comments

Comments
 (0)