- Run deletion: Handle legacy runs without activity records by checking L2 shared status directly (instead of failing) - Cache deletion: Check Redis runs in addition to activity store to prevent deleting inputs/outputs that belong to runs - Add find_runs_using_content() helper to check if content_hash is used as input or output of any run This fixes the inverted deletion logic where runs couldn't be deleted but their cache items could. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
115 KiB
115 KiB