Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions integrations/wecom-bridge/src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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" : ""}`);
}

Expand Down
Loading