fix wechat mp page reply routing

This commit is contained in:
john
2026-07-03 10:43:13 +08:00
parent 20116b161f
commit 72fc7cc618
2 changed files with 33 additions and 11 deletions
+1 -7
View File
@@ -919,7 +919,7 @@ export function shouldRetryHtmlGenerationReply({
if (isMissingRequiredPublishSkill(reply, intent) || isSuspiciousBareCompletionReply(reply, intent)) {
return true;
}
if (!usedStaticPagePublishSkill(reply?.messages ?? [])) return true;
if (!usedStaticPagePublishSkill(reply?.messages ?? [])) return false;
return !hasAnyUrl(reply?.text);
}
@@ -1917,9 +1917,6 @@ export function createWechatMpService({
if (reply.tokenState) {
await userAuth.billSessionUsage(user.userId, sessionId, reply.tokenState, requestId);
}
if (looksLikeHtmlGenerationIntent(intent?.agentText) && verifiedArtifacts.length === 0 && confirmedArtifacts.length === 0) {
throw new Error(buildHtmlPublishFailureText());
}
const finalizedReply = await maybeAttachPublishedHtmlLink(reply, {
workingDir,
publicBaseUrl: config.publicBaseUrl,
@@ -1989,9 +1986,6 @@ export function createWechatMpService({
if (reply.tokenState) {
await userAuth.billSessionUsage(user.userId, sessionId, reply.tokenState, retryId);
}
if (looksLikeHtmlGenerationIntent(intent?.agentText) && verifiedArtifacts.length === 0 && confirmedArtifacts.length === 0) {
throw new Error(buildHtmlPublishFailureText());
}
const finalizedReply = await maybeAttachPublishedHtmlLink(reply, {
workingDir,
publicBaseUrl: config.publicBaseUrl,