test(slack): restore tool result reaction state (#122592)

This commit is contained in:
Vincent Koc
2026-08-12 20:54:06 +08:00
committed by GitHub
parent 67dd56c51e
commit beb576c2ad
@@ -265,9 +265,7 @@ describe("monitorSlackProvider tool results", () => {
ackReaction: "👀",
ackReactionScope: "group-mentions",
groupChat: { visibleReplies: "automatic" },
statusReactions: statusReactionsEnabled
? { enabled: true, timing: { debounceMs: 0, doneHoldMs: 0, errorHoldMs: 0 } }
: { enabled: false },
statusReactions: statusReactionsEnabled ? { enabled: true } : { enabled: false },
},
channels: {
slack: {
@@ -544,7 +542,6 @@ describe("monitorSlackProvider tool results", () => {
groupChat: { visibleReplies: "message_tool" },
statusReactions: {
enabled: true,
timing: { debounceMs: 0, doneHoldMs: 0, errorHoldMs: 0 },
},
},
channels: {
@@ -738,7 +735,6 @@ describe("monitorSlackProvider tool results", () => {
groupChat: { visibleReplies: "message_tool" },
statusReactions: {
enabled: true,
timing: { debounceMs: 0, doneHoldMs: 0, errorHoldMs: 0 },
},
},
channels: {
@@ -767,7 +763,7 @@ describe("monitorSlackProvider tool results", () => {
);
});
it("keeps the error reaction when dispatch fails before any reply is delivered", async () => {
it("restores the ack reaction when dispatch fails before any reply is delivered", async () => {
replyMock.mockRejectedValue(new Error("boom"));
setMentionGatedAckConfig(true);
mockGeneralChannelInfo();
@@ -779,7 +775,7 @@ describe("monitorSlackProvider tool results", () => {
expectReactionFlow({
startsWith: ["eyes", "x"],
includes: "x",
endsWith: "x",
endsWith: "eyes",
}),
{ timeout: 5_000 },
);