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,