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:
@@ -42,6 +42,23 @@ test('classifyWechatIntent keeps scheduled automation on chat.general', () => {
|
||||
assert.equal(isPageGenerateIntent({ msgType: 'text', agentText: intent.text }), false);
|
||||
});
|
||||
|
||||
test('classifyWechatIntent detects news page make requests', () => {
|
||||
const intent = classifyWechatIntent({
|
||||
msgType: 'text',
|
||||
agentText: '帮我按照7.20号新闻格式,把今天新闻页面做出来',
|
||||
});
|
||||
assert.equal(intent.kind, 'page.generate');
|
||||
assert.match(intent.topic, /新闻页面/);
|
||||
});
|
||||
|
||||
test('classifyWechatIntent detects missing page link retries', () => {
|
||||
const intent = classifyWechatIntent({
|
||||
msgType: 'text',
|
||||
agentText: '新闻页面链接没有生成',
|
||||
});
|
||||
assert.equal(intent.kind, 'page.generate');
|
||||
});
|
||||
|
||||
test('classifyWechatIntent detects session.reset', () => {
|
||||
assert.equal(classifyWechatIntent({ msgType: 'text', agentText: '换话题' }).kind, 'session.reset');
|
||||
assert.equal(classifyWechatIntent({ msgType: 'text', agentText: '换新会话' }).kind, 'session.reset');
|
||||
|
||||
Reference in New Issue
Block a user