Skip to content

Commit cfc4531

Browse files
committed
fix no context without @workspace but with explicit mention
1 parent 7d80fd3 commit cfc4531

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,7 @@ export class ChatController {
959959
const relativePaths = await this.resolveContextCommandPayload(triggerPayload)
960960
// TODO: resolve the context into real context up to 90k
961961
triggerPayload.useRelevantDocuments = false
962+
triggerPayload.mergedRelevantDocuments = []
962963
if (triggerPayload.message) {
963964
triggerPayload.useRelevantDocuments = triggerPayload.context?.some(
964965
(context) => typeof context !== 'string' && context.command === '@workspace'

0 commit comments

Comments
 (0)