From b80584696d0de8c57e55496837ba1e725adc3e59 Mon Sep 17 00:00:00 2001 From: john Date: Mon, 31 Aug 2026 10:52:01 +0800 Subject: [PATCH] Only re-sync WeChat session provider after a failed Cursor attempt. Avoids double applySessionLlmProvider on normal Goose chat paths that blocked fast release. Co-authored-by: Cursor --- wechat-mp.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wechat-mp.mjs b/wechat-mp.mjs index 7179ce3..526a6c7 100644 --- a/wechat-mp.mjs +++ b/wechat-mp.mjs @@ -2961,7 +2961,9 @@ export function createWechatMpService({ intentKind: wechatIntent.kind, policy: wechatCursorPolicy, }); + let wechatCursorAttempted = false; if (useWechatCursorChannel) { + wechatCursorAttempted = true; try { reply = await executeWechatCursorAgentRun({ agentRunGateway, @@ -3001,7 +3003,9 @@ export function createWechatMpService({ } } if (!reply) { - await ensureSessionProvider(sessionId, user.userId, { intentKind: wechatIntent.kind }); + if (wechatCursorAttempted) { + await ensureSessionProvider(sessionId, user.userId, { intentKind: wechatIntent.kind }); + } reply = await executeSessionReply( (pathname, init) => fetchForSession(sessionId, pathname, init), sessionId,