fix(slack): gate disabled ack cleanup on delivery

This commit is contained in:
Frank Yang
2026-03-29 16:12:44 +08:00
parent c50503a37f
commit 1ba5df3e3b
2 changed files with 3 additions and 1 deletions

View File

@@ -588,6 +588,8 @@ describe("monitorSlackProvider tool results", () => {
channel_type: "channel",
}),
});
await new Promise((resolve) => setTimeout(resolve, 0));
await flush();
expect(sendMock).not.toHaveBeenCalled();
expect(reactMock).toHaveBeenCalledTimes(1);

View File

@@ -692,7 +692,7 @@ export async function dispatchPreparedSlackMessage(prepared: PreparedSlackMessag
if (!statusReactionsEnabled) {
removeAckReactionAfterReply({
removeAfterReply: ctx.removeAckAfterReply,
removeAfterReply: ctx.removeAckAfterReply && anyReplyDelivered,
ackReactionPromise: prepared.ackReactionPromise,
ackReactionValue: prepared.ackReactionValue,
remove: () =>