S060: PROGRESS notes the visible PiP run and what was checked

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-18 04:11:03 -06:00
commit 60ebf49ca8

View file

@ -478,6 +478,7 @@ Later: S010 list: user checks the Discord icon with their own client (the Discor
- Cause found: inside the PiP window the keyboard sat on the egui overlay (`open_window` grabs it; every click on the overlay too), never on the page, so Escape did nothing (it became Stop on a window with no tab) and the player's own keys never arrived, in every round.
- Fix: Escape in a PiP window ends PiP (`window_key`, app.rs); entering PiP gives the keyboard to the page (`enter_pip`, actions.rs).
- Smoke: `tests/smoke/pip-loop.txt` + `pip-loop-driver.sh` (hidden, offline): round 1 `cmd exitpip`, round 2 real Escape, round 3 niri close-window; `windows-<n>.json` has the PiP window floating and focused. Exit 0; `pip.txt` (with driver) and `pip-return.txt` exit 0; `cargo test` 88 + webext 1.
- Also tried (orchestrator's suspects): a visible DP-1 run (real GPU, user's niri, 3 rounds, `cmd pip`; round 2 a real Escape, round 3 niri close-window by id; niri windows sampled 1/3/5 s into each round): the PiP window was floating and focused for the whole 5 s every round, each round a new window id, the old PiP window gone from niri's list after exit. Code read: the only `present()` calls are `open_window` (the new window itself), opening a link in a new tab and a second launch; nothing presents or focuses the parent on PiP enter/exit; the closed PiP window's handlers hold only a weak app ref and its id. The user's niri config has no Nacre rule and no focus-follows-mouse.
- Not done: 🧑 the user trying PiP 3× on YouTube on their screen (deferred overnight, box left unticked); the user's exact steps for "focus goes back" weren't known, so a focus loss specific to the real screen may remain.
## Later