fix(wechat): recognize news page intents and harden scheduled task delivery
Memind CI / Test, build, and release guards (push) Failing after 4s
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:
+8
-2
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user