Skip to content

🐛 Stabilize iKAT recording around UAC exits#90

Merged
J-MaFf merged 2 commits intoRecording/UAC-bug-fixfrom
copilot/worktree-2026-03-27T14-05-03
Mar 27, 2026
Merged

🐛 Stabilize iKAT recording around UAC exits#90
J-MaFf merged 2 commits intoRecording/UAC-bug-fixfrom
copilot/worktree-2026-03-27T14-05-03

Conversation

@J-MaFf
Copy link
Copy Markdown
Owner

@J-MaFf J-MaFf commented Mar 27, 2026

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 .ts recording 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.ps1

Any deployment notes?

None.

@J-MaFf J-MaFf added the bug Something isn't working label Mar 27, 2026
@J-MaFf J-MaFf self-assigned this Mar 27, 2026
@J-MaFf J-MaFf merged commit 85337da into Recording/UAC-bug-fix Mar 27, 2026
@J-MaFf J-MaFf deleted the copilot/worktree-2026-03-27T14-05-03 branch March 27, 2026 14:42
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant