fix(server): a failed turn no longer drops an earlier run's subagent approvals

A turn that settled with any status but completed cleared every settled-run
entry for its native thread, including earlier runs whose background
subagents were still running, so their permission requests were denied.
Only the settling run's own entry, or entries without a running subagent,
are cleared now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
73b573182eJulius Marminge committed on 10/22/2026, 3:04:30 PMparent1cdb437

Checks

All checks passed
2 files changedLine totals unavailable