fix(wechat): treat report page follow-ups as session continuation
Memind CI / Test, build, and release guards (push) Has been cancelled

Phrases like "解读详细报告,做成页面" now bind to the in-session report
context instead of behaving like a brand-new page topic.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-14 22:53:00 +08:00
parent b97f607817
commit c9b2fcba87
3 changed files with 20 additions and 1 deletions
+9
View File
@@ -37,3 +37,12 @@ test('WeChat page continuation rejects full new-topic page requests', () => {
assert.equal(intent.kind, 'page.generate');
assert.equal(isWechatSessionPageContinuation(intent, intent.topic), false);
});
test('WeChat page continuation recognizes report interpretation follow-ups', () => {
const intent = classifyWechatIntent({
msgType: 'text',
agentText: '解读详细报告,做成页面',
});
assert.equal(intent.kind, 'page.generate');
assert.equal(isWechatSessionPageContinuation(intent, intent.topic), true);
});