fix(wechat): recognize news page intents and harden scheduled task delivery
Memind CI / Test, build, and release guards (push) Failing after 4s

Expand page.generate rules for post-page verbs and link-missing retries,
recover HTML artifacts when shadow LLM agrees, and stop marking scheduled
tasks failed when WeChat notification hits rate limits.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-02 06:46:33 +08:00
parent 26fe5912a3
commit b9f5720ce0
6 changed files with 114 additions and 4 deletions
+8 -2
View File
@@ -2469,6 +2469,12 @@ export function createWechatMpService({
intent.msgType === 'text' || intent.msgType === 'voice' ? intent.agentText : '';
const isPageDataRequest = isWechatPageDataTask(resetCandidate);
const htmlArtifactDeliveryExpected = shouldDeliverWechatHtmlArtifacts(wechatIntent, intent);
const allowHtmlArtifactRecovery =
htmlArtifactDeliveryExpected
|| (
wechatIntent?.llmShadow?.kind === 'page.generate'
&& wechatIntent?.llmShadow?.wouldChangeKind === true
);
const sessionPageContinuation =
isWechatSessionPageContinuation(wechatIntent, resetCandidate);
const imagePolicy = resolveWechatImageGenerationPolicy({
@@ -2596,7 +2602,7 @@ export function createWechatMpService({
userId: user.userId,
sessionId,
onPageGenerated,
allowRecentArtifacts: htmlArtifactDeliveryExpected,
allowRecentArtifacts: allowHtmlArtifactRecovery,
htmlDeliveryAuthority,
});
confirmedArtifacts = resolvedConfirmedArtifacts;
@@ -2916,7 +2922,7 @@ export function createWechatMpService({
userId: user.userId,
sessionId,
onPageGenerated,
allowRecentArtifacts: htmlArtifactDeliveryExpected,
allowRecentArtifacts: allowHtmlArtifactRecovery,
htmlDeliveryAuthority,
});
const linkExistsForRequest =