🐛 Stabilize iKAT recording around UAC exits#90
Merged
J-MaFf merged 2 commits intoRecording/UAC-bug-fixfrom Mar 27, 2026
Merged
Conversation
…c; update test paths
J-MaFf
added a commit
that referenced
this pull request
Mar 27, 2026
* Fixing uac issue * 🐛 Stabilize iKAT recording around UAC exits (#90) * ✨ Enhance iKAT recording script with user validation and restart logic; update test paths * ✨ Update Remove-ExpiredRecordings.Tests.ps1 to test .ts file deletion instead of .mkv * docs: Add iKAT recording conventions and constraints to Copilot instructions * Change test folder iCat to iKAT * fix: Use explorer.exe check instead of exit code to detect session end after UAC * docs: Log UAC restart loop verification and update copilot instructions with exit code lesson * feat: Use shared session timestamp with part number for segment filenames * fix: Implement logarithmic backoff for FFmpeg restart delays * docs: Log logarithmic backoff implementation
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.
What does this PR do?
Adds restart guardrails to the iKAT FFmpeg recording loop so it recovers from unexpected exits (e.g., UAC/admin launches), and aligns iKAT cleanup tests with the current
.tsrecording format.Why are we doing this?
Recordings can stop early when elevated windows appear. Restarting FFmpeg and keeping tests accurate improves reliability and prevents false negatives.
How should this be tested?
Run:
Invoke-Pester -Path Tests\iCat\Invoke-iKATRecording.Tests.ps1, Tests\iCat\Remove-ExpiredRecordings.Tests.ps1Any deployment notes?
None.