fix(wechat): auto-repair missing share preview meta before page delivery
Memind CI / Test, build, and release guards (push) Failing after 3s

Pages with real HTML content but missing description, mindspace-cover, or
platform brand markers are patched in-place so WeChat link delivery no longer
fails after successful generation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-02 08:08:43 +08:00
parent b9f5720ce0
commit 0a71370bf4
4 changed files with 157 additions and 11 deletions
+2
View File
@@ -2649,6 +2649,7 @@ export function createWechatMpService({
bareCompletionReply,
htmlGenerationNeedsRetry,
replyHasPublicLinks,
topic: wechatIntent?.topic ?? intent?.agentText ?? '',
});
if (pageOutcome.action === 'session_retry') {
throw new Error('stale_session_poisoned_completion');
@@ -2967,6 +2968,7 @@ export function createWechatMpService({
bareCompletionReply,
htmlGenerationNeedsRetry,
replyHasPublicLinks,
topic: wechatIntent?.topic ?? intent?.agentText ?? '',
});
if (pageOutcome.action === 'session_retry' || pageOutcome.action === 'fail') {
const text = pageOutcome.failureText ?? buildPagePublishFailureText();