fix: reserve completed heading for final background wake

This commit is contained in:
YeonGyu-Kim
2026-05-27 14:27:26 +09:00
parent 77a268f91e
commit f204390b43
3 changed files with 52 additions and 4 deletions
@@ -390,7 +390,7 @@ describe("BackgroundManager.notifyParentSession cleanup scheduling", () => {
expect(promptAsyncCalls).toHaveLength(1)
expect(promptAsyncCalls[0]?.body.noReply).toBe(true)
const notificationPayload = JSON.stringify(promptAsyncCalls[0]?.body.parts)
expect(notificationPayload).toContain("BACKGROUND TASK COMPLETED")
expect(notificationPayload).toContain("BACKGROUND TASK RESULT READY")
expect(notificationPayload).not.toContain("ALL BACKGROUND TASKS COMPLETE")
})