Skip to content

Commit 1cdc152

Browse files
committed
refactor(agents): document reply abort cleanup invariant
1 parent ef800d4 commit 1cdc152

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/auto-reply/reply/reply-run-registry.operation.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ export function createReplyOperation(params: {
195195
}
196196
phase = "aborted";
197197
abortInternally(abortReason);
198+
// Cancellation may throw, but lifecycle cleanup still must run. Pre-backend
199+
// non-retained owners release now; retained/running owners await terminal settle.
198200
try {
199201
getAttachedBackend(operation)?.cancel(reason);
200202
} finally {

0 commit comments

Comments
 (0)