fix: promote visible progress after silent final

This commit is contained in:
Eyejoker
2026-03-28 06:27:36 +09:00
parent 38d96578a4
commit de913985ba
4 changed files with 102 additions and 8 deletions

View File

@@ -311,8 +311,13 @@ export class MessageTurnController {
await this.deliverFinalText(text);
}
} else if (silentOutput || suppressState !== 'none') {
const shouldPromoteVisibleProgressToFinal =
this.visiblePhase === 'progress' &&
typeof this.latestProgressTextForFinal === 'string';
await this.finalizeProgressMessage();
this.latestProgressTextForFinal = null;
if (!shouldPromoteVisibleProgressToFinal) {
this.latestProgressTextForFinal = null;
}
} else if (raw) {
logger.info(
{