fix: populate chat command disambiguation (#227008)

pull/227014/head
Joyce Er 2024-08-28 13:42:40 -07:00 committed by GitHub
parent 478d1bf154
commit 0e542f326f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ export class ChatAgentService implements IChatAgentService {
const participants = this.getAgents().reduce<IChatParticipantMetadata[]>((acc, a) => {
acc.push({ participant: a.id, disambiguation: a.disambiguation ?? [] });
for (const command of a.slashCommands) {
acc.push({ participant: a.id, command: command.name, disambiguation: [] });
acc.push({ participant: a.id, command: command.name, disambiguation: command.disambiguation ?? [] });
}
return acc;
}, []);