fix(wechat): apply agent timeout and Page Data review to all users
Memind CI / Test, build, and release guards (push) Failing after 10m39s

Remove per-user gray gates so WeChat MP always honors agentReplyTimeoutMs and enables Page Data Aider review when the feature flag is on.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-05 09:32:27 +08:00
parent 089a44fb11
commit 1e7004dffe
+2 -6
View File
@@ -2584,10 +2584,7 @@ export function createWechatMpService({
artifacts,
forcePageData,
}) => {
const enabledForUser =
config.pageDataAiderReviewEnabled &&
isWechatMediaGrayUser(user, config.pageDataAiderReviewUsers);
if (!enabledForUser) return { action: 'skip', reason: 'disabled' };
if (!config.pageDataAiderReviewEnabled) return { action: 'skip', reason: 'disabled' };
if (typeof pageDataDeliveryReviewer?.reviewIfNeeded !== 'function') {
const error = new Error('微信 Page Data 强制 Aider 审核服务不可用');
error.code = 'PAGE_DATA_REVIEW_UNAVAILABLE';
@@ -2617,8 +2614,7 @@ export function createWechatMpService({
const runIntentMessage = async ({ inbound, intent, user }) => {
const wechatIntent = await resolveWechatIntent(intent, { openid: inbound.fromUserName });
const mediaAnalysisEnabled = isWechatMediaGrayUser(user, config.mediaAnalysisGrayUsers);
const reliabilityEnabled = isWechatMediaGrayUser(user, config.reliabilityGrayUsers);
const agentReplyTimeoutMs = reliabilityEnabled ? config.agentReplyTimeoutMs : 0;
const agentReplyTimeoutMs = config.agentReplyTimeoutMs;
const resetCandidate =
intent.msgType === 'text' || intent.msgType === 'voice' ? intent.agentText : '';
const isPageDataRequest = isWechatPageDataTask(resetCandidate);