Skip to content

fix(audio): clean up retained recordings#5240

Open
ComputelessComputer wants to merge 1 commit into
mainfrom
fix/audio-retention-cleanup
Open

fix(audio): clean up retained recordings#5240
ComputelessComputer wants to merge 1 commit into
mainfrom
fix/audio-retention-cleanup

Conversation

@ComputelessComputer
Copy link
Copy Markdown
Collaborator

@ComputelessComputer ComputelessComputer commented May 18, 2026

Delete orphaned recorder artifacts during retention cleanup and refresh cached audio state after background deletion.


Note

Medium Risk
Modifies audio retention cleanup to delete additional on-disk artifacts (including orphaned session folders) and adds a new filesystem command, which could unintentionally remove files if the orphan/expiry detection is wrong.

Overview
Audio retention cleanup now removes more disk artifacts and reports what was deleted. cleanupExpiredAudio now returns deleted session IDs, tracks all known sessions, and calls a new fs-sync command to delete orphaned expired audio directories in addition to deleting inactive expired session audio.

UI cache is refreshed after background deletions. TaskManager invalidates the React Query audio existence/url caches for each deleted session so the app stops showing stale audio state.

On the fs side, audio deletion now removes additional recorder artifacts (eg audio.mp3.tmp, audio_mic.wav, audio_spk.wav), adds audio_delete_orphaned_expired (with permissions + generated TS bindings), and includes new unit tests covering orphan deletion and artifact removal.

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

Delete orphaned recorder artifacts during retention cleanup and refresh cached audio state after background deletion.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

Deploy Preview for old-char ready!

Name Link
🔨 Latest commit 2d1f5e2
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a0aa8d45e10df00089ce0db
😎 Deploy Preview https://deploy-preview-5240--old-char.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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