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
The pendingExit flag at ai-slop-detector.ts:923 is set to true when a nested block inside a catch block closes, then unconditionally cleared to false on the very next line before any logic checks it:
if(pendingExit){pendingExit=false;}
The actual catch-block exit is driven by braceDepth <= catchBlockDepth, not pendingExit. The flag is set in two places (lines 944, 976) and cleared in four places (lines 949, 955-956, 987, 995) but never read elsewhere and has no effect on the outcome.
Impact
Dead code. No behavioral change on removal.
Fix
Either wire pendingExit into the exit logic as originally intended, or remove it entirely.
Activity
CodeDeficient commentedon Jun 10, 2026
Fixed in v1.0.26 (PR #15 + PR #19)