Fix repeated local replies

This commit is contained in:
2026-04-30 18:18:16 +09:00
parent 133118ca29
commit 0005352be7
4 changed files with 18 additions and 7 deletions

View File

@@ -361,7 +361,6 @@ export class GuildVoiceSession extends EventEmitter {
};
this.options.logger.info("Transcript committed", this.guildId, hydratedUtterance.speakerName, hydratedUtterance.text);
this.memory.addUserTurn(hydratedUtterance);
if (this.options.config.DEBUG_TEXT_EVENTS) {
await this.announce(`🗣️ ${hydratedUtterance.speakerName}: ${hydratedUtterance.text}`);
@@ -375,6 +374,7 @@ export class GuildVoiceSession extends EventEmitter {
reply = "지금은 답변 생성에 실패했습니다. 잠시 후 다시 말씀해 주세요.";
}
this.memory.addUserTurn(hydratedUtterance);
this.memory.addAssistantTurn(reply);
if (this.options.config.DEBUG_TEXT_EVENTS) {
await this.announce(`🤖 ${reply}`);