fix(wechat): treat report page follow-ups as session continuation
Memind CI / Test, build, and release guards (push) Has been cancelled
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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user