diff --git a/src/features/background-agent/parent-wake-notifier.ts b/src/features/background-agent/parent-wake-notifier.ts index 931f7d8f6..1fd568961 100644 --- a/src/features/background-agent/parent-wake-notifier.ts +++ b/src/features/background-agent/parent-wake-notifier.ts @@ -224,9 +224,9 @@ export class ParentWakeNotifier { throw promptResult.error } if (promptResult.status === "reserved" && promptResult.reservedBy === "background-agent-parent-wake") { - log("[background-agent] Ignored duplicate parent wake flush already reserved by promptAsync gate:", { - sessionID, - }) + this.requeueWake(sessionID, latestWake) + this.schedulePendingParentWakeFlush(sessionID, 2_000) + log("[background-agent] Requeued parent wake flush reserved by promptAsync gate hold:", { sessionID }) return } if (!isInternalPromptDispatchAccepted(promptResult)) {