diff --git a/ui/src/lib/optimistic-issue-comments.test.ts b/ui/src/lib/optimistic-issue-comments.test.ts index 0f6ddf0b7d4..038d4c46ab1 100644 --- a/ui/src/lib/optimistic-issue-comments.test.ts +++ b/ui/src/lib/optimistic-issue-comments.test.ts @@ -751,6 +751,36 @@ describe("optimistic issue comments", () => { ).toBe(false); }); + it("does not mark the active run context comment as queued", () => { + expect( + isQueuedIssueComment({ + comment: { + id: "context-comment", + createdAt: new Date("2026-03-28T16:20:05.000Z"), + }, + activeRunStartedAt: new Date("2026-03-28T16:20:00.000Z"), + activeRunCommentId: "context-comment", + activeRunWakeCommentId: "wake-comment", + runId: null, + }), + ).toBe(false); + }); + + it("does not mark the active run wake comment as queued", () => { + expect( + isQueuedIssueComment({ + comment: { + id: "wake-comment", + createdAt: new Date("2026-03-28T16:20:05.000Z"), + }, + activeRunStartedAt: new Date("2026-03-28T16:20:00.000Z"), + activeRunCommentId: "context-comment", + activeRunWakeCommentId: "wake-comment", + runId: null, + }), + ).toBe(false); + }); + it("does not mark comments with an associated run as queued", () => { expect( isQueuedIssueComment({