Reset sessions for comment-triggered wakeups

This commit is contained in:
Dotta committed 2026-03-05 07:10:24 -06:00
1 parent a1944fceab
commit 944263f44b
2 files changed
+24 -2

No files matched your search

+5 -1
View File
@@ -199,7 +199,11 @@ export function shouldResetTaskSessionForWake(
contextSnapshot: Record<string, unknown> | null | undefined,
) {
const wakeReason = readNonEmptyString(contextSnapshot?.wakeReason);
return wakeReason === "issue_assigned";
if (wakeReason === "issue_assigned") return true;
const wakeCommentId =
readNonEmptyString(contextSnapshot?.wakeCommentId) ??
readNonEmptyString(contextSnapshot?.commentId);
return wakeCommentId != null;
}
function deriveCommentId(