fix: avoid stale progress blocking app server completion

This commit is contained in:
AI Bot
2026-06-08 12:36:19 +08:00
parent 3b51641d99
commit a4b5350afa
2 changed files with 32 additions and 3 deletions

View File

@@ -3624,9 +3624,6 @@ export async function executeCodexAppServerTask(runnerConfig, task) {
const activeTurnId = trimToDefined(turnResult?.turn?.id) || effectiveTurnRef;
startActiveTurnInterruptPolling({ threadId, turnId: activeTurnId });
await turnCompleted;
if (progressEmits.length > 0) {
await Promise.allSettled(progressEmits);
}
const normalizedReply = (replyBody || completedMessageText).trim();
if (interruptRequested) {