Skip to content

Commit 66da962

Browse files
authored
fix(chat): Remove userIntent from agentic chat window input (aws#6916)
## Problem - UserIntent is populated when certain keyword is detected, which causes the request to not hit agentic code path - list directory description is verbose ## Solution - Remove the userIntent from the agentic chat window input - Minor fix: adjust the list directory description --- - 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 640ccb6 commit 66da962

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ export class ChatController {
10971097
filePath: context?.activeFileContext?.filePath,
10981098
matchPolicy: context?.activeFileContext?.matchPolicy,
10991099
codeQuery: context?.focusAreaContext?.names,
1100-
userIntent: this.userIntentRecognizer.getFromPromptChatMessage(message),
1100+
userIntent: undefined,
11011101
customization: getSelectedCustomization(),
11021102
chatHistory: this.chatHistoryStorage.getTabHistory(message.tabID).getHistory(),
11031103
origin: Origin.IDE,

packages/core/src/codewhispererChat/tools/listDirectory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class ListDirectory {
4444

4545
public queueDescription(updates: Writable): void {
4646
const fileName = path.basename(this.fsPath)
47-
updates.write(`Listing directory on filePath: ${fileName}`)
47+
updates.write(`Listing directory: ${fileName}`)
4848
updates.end()
4949
}
5050

0 commit comments

Comments
 (0)