From 11d2cfb8a8ed3f83eb99fec5606974e822c77ce5 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Wed, 20 May 2026 13:01:31 +0900 Subject: [PATCH] fix(background-agent): re-enqueue parent wake on same-source reservation instead of dropping Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/features/background-agent/parent-wake-notifier.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) {