Ivan FB 20c71c6929
defer pruneCompletedChannelReqs until after onReadyToSend's index walk
Reviewer flagged that prune was mutating pendingMessagingRequests under
index iteration. Concrete failure: if prune drops the entry at the
current idx, the seq shifts and `idx.inc()` skips the next slot.

Hoist the single prune call to after the outer loop. Prune is idempotent
on the final-state filter, so doing it once at the end is equivalent to
calling it per-error-path while keeping idx aligned.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 11:00:00 +02:00
..