You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore: implement sub-thread cleanup for parent thread deletion #73
When a parent thread is deleted, sub-threads created for specific tasks (like workflow creation) are not cleaned up. This can lead to orphaned threads accumulating over time.
Considerations
Debugging context: Sub-threads may contain useful debugging context that should be preserved for some period
Thread deletion API: We'd need to implement a thread deletion API that doesn't exist yet
Cleanup timing: Need to decide between immediate deletion vs scheduled cleanup (e.g., after 30 days)
Volume: Currently low - only created when users ask for workflow creation via chat
Proposed Solutions
Immediate cleanup: Delete sub-threads when parent is deleted
Soft delete: Mark sub-threads as orphaned, clean up via scheduled job after retention period
Cascade on read: Check for parent existence when loading sub-thread, clean up if missing
Activity
chore(platform): clean up sub-threads when parent thread is deleted