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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user