Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 19, 2026

Summary

Changes session deletion to explicitly delete the session folder from the filesystem instead of relying on orphan cleanup to eventually remove it.

Key changes:

  • Added explicit fsSyncCommands.deleteSessionFolder(sessionId) call after TinyBase deletion
  • Removed separate audioDelete call (folder deletion should handle this)
  • Restructured control flow to always reach the FS deletion

Context: Analysis of the FS↔TinyBase sync architecture revealed that orphan accumulation was caused by relying on eventual cleanup rather than explicit deletion. This fix addresses the root cause.

Review & Testing Checklist for Human

  • Verify deleteSessionFolder deletes audio files - The audioDelete call was removed; confirm the folder deletion handles audio files properly (check plugins/fs-sync/src/session.rs)
  • Test session deletion end-to-end - Delete a session with audio/transcripts/notes and verify the entire folder is removed from disk
  • Consider error handling - If deleteSessionFolder fails after TinyBase deletion succeeds, the system will be in an inconsistent state (TinyBase says deleted, FS still has files)

Notes


Open with Devin

Instead of relying on orphan cleanup to eventually delete session folders,
explicitly delete the session folder after removing from TinyBase.

This fixes the root cause of orphan accumulation by making deletion
explicit rather than relying on eventual cleanup.

Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@netlify
Copy link

netlify bot commented Jan 19, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit bdf515c
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/696e372833eb5f00082f6676

@netlify
Copy link

netlify bot commented Jan 19, 2026

Deploy Preview for howto-fix-macos-audio-selection canceled.

Name Link
🔨 Latest commit bdf515c
🔍 Latest deploy log https://app.netlify.com/projects/howto-fix-macos-audio-selection/deploys/696e3728ac38660008f77cee

@netlify
Copy link

netlify bot commented Jan 19, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit bdf515c
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/696e3728a1daeb0008548219

Copy link
Contributor Author

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional flags.

Open in Devin Review

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.

2 participants