From d4063e39a12aca1bee67ddc8ea4a3846fcb3854d Mon Sep 17 00:00:00 2001 From: laopan <147567034@qq.com> Date: Tue, 23 Jun 2026 16:44:09 +0800 Subject: [PATCH] fix(bridge): clear activeTurnId after approval decision to unblock user --- integrations/wecom-bridge/src/index.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/integrations/wecom-bridge/src/index.mjs b/integrations/wecom-bridge/src/index.mjs index d0214318e..3f7b7c9f9 100644 --- a/integrations/wecom-bridge/src/index.mjs +++ b/integrations/wecom-bridge/src/index.mjs @@ -453,6 +453,15 @@ async function decideApproval(chatId, action, frame) { method: "POST", body: { decision, remember } }); + + // Clear activeTurnId so the user can send follow-up messages + // immediately instead of being blocked by activeTurnBlock + // while the SSE stream processes the turn cancellation. + await threadStore.patchChat(chatId, { + activeTurnId: null, + updatedAt: new Date().toISOString() + }); + await replyText(frame, `Approval ${approvalId}: ${decision}${remember ? " and remember" : ""}`); }