Skip to content

Fix UI freeze while loading clip#33

Merged
danielchalmers merged 1 commit into
mainfrom
codex/fix-clip-loading-freeze
Jun 5, 2026
Merged

Fix UI freeze while loading clip#33
danielchalmers merged 1 commit into
mainfrom
codex/fix-clip-loading-freeze

Conversation

@danielchalmers

Copy link
Copy Markdown
Owner

Summary

  • Show the loading overlay immediately when a sidebar clip selection starts playback preparation.
  • Keep playback loading active while the current clip is stopped and the next clip is prepared.
  • Move Flyleaf stop/close cleanup off the UI thread.
  • Add a regression test for clip changes while player cleanup is still pending.

Root Cause

Selecting a clip waited for the existing playback stop/close path before the controller raised its loading state for the new clip. When Flyleaf cleanup was slow, the UI could appear frozen and the loading overlay did not render until after the expensive work had already completed.

Validation

  • dotnet test .\SentryReplay.slnx
  • dotnet format .\SentryReplay.slnx --verify-no-changes

UI Verification

Open the app, start playback, then click another clip in the sidebar. The loading overlay should appear immediately while the next clip gets ready.

@danielchalmers danielchalmers changed the title [codex] Fix clip loading freeze Fix clip loading freeze Jun 5, 2026
@danielchalmers danielchalmers marked this pull request as ready for review June 5, 2026 01:29
@danielchalmers danielchalmers changed the title Fix clip loading freeze Fix UI freeze while loading clip Jun 5, 2026
@danielchalmers danielchalmers merged commit 446bce0 into main Jun 5, 2026
1 check passed
@danielchalmers danielchalmers deleted the codex/fix-clip-loading-freeze branch June 5, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant