Summary

Fixes #9874 - Error handlers (catchAll, foldZIO, either, etc.) now correctly prioritize defects and interruptions over failures.

Approach

  • Added Cause.isRecoverable to check if cause contains only failures
  • Modified failureOrCause and failureTraceOrCause to return Right when defects or interrupts are present

Verification

  • Added 7 tests for isRecoverable
  • Added 6 tests for failureOrCause

/claim #9874

Claim

Total prize pool $300
Total paid $0
Status Pending
Submitted January 25, 2026
Last updated January 25, 2026

Contributors

RA

Rank Preet

@preettrank53

100%

Sponsors

ZI

ZIO

@ZIO

$300