From 64f150c91ca247f1305855b2a9054c01a96d8bf6 Mon Sep 17 00:00:00 2001 From: 4gray Date: Mon, 10 Aug 2026 22:43:26 +0200 Subject: [PATCH] fix(playback): keep the display lock for picture-in-picture playback Minimizing the window hides the document but leaves the PiP surface on screen, so the visibility gate was releasing the lock mid-watch. A tracked playing video that owns document.pictureInPictureElement now counts as visible playback, and PiP enter/leave events resynchronize the gate. Review finding by Codex. Co-Authored-By: Claude Fable 5 --- CLAUDE.md | 4 +- .../playback-keep-awake.service.spec.ts | 44 +++++++++++++ .../services/playback-keep-awake.service.ts | 64 ++++++++++++++++--- 3 files changed, 101 insertions(+), 11 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 762c19f82..8f9dd647f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -938,7 +938,9 @@ app as a real argument, so it is not an option. `