fix: always edit progress message for intermediate text

Previously, intermediate text was sent as separate messages when
subagents were active, causing message floods. Now always edit
the progress message regardless of subagent state.
This commit is contained in:
Eyejoker
2026-03-25 07:37:49 +09:00
parent 5e75222754
commit 7928f2968c

View File

@@ -119,12 +119,8 @@ export class MessageTurnController {
if (result.phase === 'intermediate') {
if (text) {
if (this.subagents.size > 0) {
// Subagents active — standalone to not disrupt progress
this.lastIntermediateText = text;
await this.options.channel.sendMessage(this.options.chatJid, text);
} else if (this.progressMessageId) {
// Progress exists — update heading
if (this.progressMessageId) {
// Progress exists — update heading (works with or without subagents)
this.previousProgressText = this.latestProgressText;
this.latestProgressText = text;
this.latestProgressTextForFinal = text;