fix: sync all attachments to working set when submitting request (#232225)

This commit is contained in:
Joyce Er
2024-10-24 23:19:25 -07:00
committed by GitHub
parent b402ee3ec1
commit 2eb50fc57e

View File

@@ -1012,6 +1012,11 @@ export class ChatWidget extends Disposable implements IChatWidget {
}
}
workingSet = [...uniqueWorkingSetEntries.values()];
const currentEditingSession = this.chatEditingService.currentEditingSessionObs.get();
for (const file of workingSet) {
// Make sure that any files that we sent are part of the working set
currentEditingSession?.addFileToWorkingSet(file);
}
attachedContext = editingSessionAttachedContext;
}