Repository navigation
Conversation
Refs Code-Amadeus#233. Keep the issue open: this widens the incomplete-report veto from the managed project's rows to the whole reported list; it does not change Lively's RPCs or certify non-WebView2 players. Lively's enumeration can drop wallpaper rows while still returning a successful list, including a fully empty one. The helper already refused cleanup when managed-URL wrappers outnumbered entries for the managed project, but an omitted row for any other scene still passed as a cleared desktop: an owned host could be stopped while an unreported user scene was still playing, and a false-empty report could be saved as the before-image. Every live WebView2 player owns a registry row, so a total player count above the whole reported row count also proves an incomplete list. The veto fires only on that excess: a genuinely empty desktop still passes, the journal is retained for retry, and neither a close nor a host shutdown is attempted. Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
sanketpatel32
force-pushed
the
issue-233-lively-wallpaper-recovery
branch
from
November 22, 2026 23:55
e07c492 to
570017a
Compare
Lucas1479
approved these changes
Nov 25, 2026
Lucas1479
left a comment
Member
There was a problem hiding this comment.
Thank you @sanketpatel32 for extending the veto to the whole report. Counting every same-session WebView2 player against all reported rows addresses the false-empty case from #233 without trusting an empty list. Merging.
Two non-blocking notes for later:
- In Lively 2.2.1.0,
WallpaperPreviewwindows (the library preview and the screensaver preview) also run WebView2 players without a row inGetWallpapers. While one is open, the helper vetoes cleanup and reports an incomplete list. This fails closed, so it is safe, but the error should mention an open preview as a possible cause. - Two of the three new tests also pass on the previous helper, because their veto logic lives in the test
FakeHost. Only the native test exercises the production change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #233. Keep the issue open: this widens the incomplete-report veto from the managed project's rows to the whole reported wallpaper list. It does not change Lively's RPCs, qualify non-WebView2 players, or resolve the upstream reporting contract.
What changed
Lively 2.2.1.0 can drop wallpaper rows and still complete a successful
GetWallpapersresponse, including a fully empty one. The helper already refused cleanup when managed-URL WebView2 wrappers outnumbered the rows reported for the managed project (#296), but an omitted row for any other scene still read as a cleared desktop:Session.restorecould pass theuser_changed/changedchecks on a false-empty report and stop an Amadeus-owned host that was still displaying unreported user scenes.Session.mountcould accept a false-empty report as the before-image and journal it.Every live WebView2 player owns a registry row, so a total same-session player count above the whole reported row count proves an incomplete list.
Windows.managed_player_countbecomesplayer_counts, returning both counts from the same kernel pass;LivelyHost.unlisted_playersvetoes on either excess. The fake host, Electron fixture, lifecycle doc and error text follow the widened contract.The veto fires only on proven inconsistency: a genuinely empty desktop (0 players, 0 rows) still passes, the journal and original error are retained for
recoverretries, and no Close resend or host shutdown is attempted. Post-Close convergence stays bounded by the existing two-second window.Regression coverage
python -m pytest tests/test_windows_wallpaper_helper.py— 112 tests pass on this machine (Windows, CPython 3.12.10; two sub-second native-pipe/powershell timeouts flaked under load during full-suite runs and passed on isolated rerun).python tools/probes/windows_wallpaper_counterexample.pystill exits 0. New coverage:test_empty_report_is_not_a_before_image_while_a_scene_is_live: mount refuses an empty reported list while a scene is live.test_omitted_live_scene_is_not_proof_of_a_cleared_desktop: restore vetoes a fully empty report with a live non-managed scene; the journal is retained, no Close or host stop is attempted, and the retry keeps the user's new scene.test_any_player_without_a_registry_row_vetoes_the_whole_report: a real hidden test process with a non-Amadeus--wallpaper-urlvetoes an empty report through the production Windows observer.Limits
docs/evidence/issue233-lively-recovery.md).electron/tests/fixtures/wallpaper_helper_fixture.pymirrors the contract; the Electron parent-lifetime suite it serves was not run here (requires a packaged Electron build).