fix: reset announceRetryCount in replaceSubagentRunAfterSteer

Address review feedback: the spread operator carries stale retry state
into replacement runs, potentially causing immediate force-expiration
without ever attempting announce delivery.
This commit is contained in:
Marcus Widing
2026-02-16 19:33:15 +01:00
committed by Peter Steinberger
parent a6c741eb46
commit de900bace8

View File

@@ -436,6 +436,8 @@ export function replaceSubagentRunAfterSteer(params: {
cleanupCompletedAt: undefined,
cleanupHandled: false,
suppressAnnounceReason: undefined,
announceRetryCount: undefined,
lastAnnounceRetryAt: undefined,
archiveAtMs,
runTimeoutSeconds,
};