We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da57517 commit de45bd3Copy full SHA for de45bd3
packages/core/src/codewhispererChat/controllers/chat/controller.ts
@@ -1069,7 +1069,7 @@ export class ChatController {
1069
if (
1070
commandName &&
1071
triggerPayload.message &&
1072
- triggerPayload.context?.find((context) => typeof context !== 'string' && context.command === commandName)
+ triggerPayload.context?.some((context) => typeof context !== 'string' && context.command === commandName)
1073
) {
1074
const truncatedCommand = commandName.startsWith('@') ? commandName.slice(1) : commandName
1075
triggerPayload.message = triggerPayload.message.replace(truncatedCommand, commandName)
0 commit comments