Skip to content

Protect active sessions from empty cleanup#5633

Merged
ComputelessComputer merged 1 commit into
mainfrom
fix/protect-active-session-cleanup
Jun 20, 2026
Merged

Protect active sessions from empty cleanup#5633
ComputelessComputer merged 1 commit into
mainfrom
fix/protect-active-session-cleanup

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

Skip automatic empty-session cleanup for active and finalizing recordings, matching the existing running-batch protection.


Note

Medium Risk
Changes when empty sessions are deleted on tab close, which affects recording lifecycle; the change only adds skip conditions and aligns with existing batch protection.

Overview
Closing a session tab no longer triggers automatic empty-session cleanup when that session is in active or finalizing mode, in addition to the existing running_batch guard in createSessionTabCloseHandler.

The close handler still only deletes empty sessions after invalidating resources when the session is inactive and empty; live or in-progress recordings are left alone when their tab is closed.

Tests now assert that cleanup is skipped for all three non-inactive modes in a loop, not only running_batch.

Reviewed by Cursor Bugbot for commit 9cfe205. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify

netlify Bot commented Jun 20, 2026

Copy link
Copy Markdown

Deploy Preview for old-char canceled.

Name Link
🔨 Latest commit 9cfe205
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a35efabcc21490008224c41

Skip automatic empty-session cleanup for active and finalizing recordings, matching the existing running-batch protection.
@ComputelessComputer ComputelessComputer force-pushed the fix/protect-active-session-cleanup branch from ccc696b to 9cfe205 Compare June 20, 2026 01:40
@ComputelessComputer ComputelessComputer merged commit d7b3801 into main Jun 20, 2026
10 checks passed
@ComputelessComputer ComputelessComputer deleted the fix/protect-active-session-cleanup branch June 20, 2026 03:43
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