fix(ui): harden product-facing interaction flows

This commit is contained in:
john
2026-07-14 14:24:32 +08:00
parent 4e6abacce1
commit 77f1ea8350
6 changed files with 37 additions and 6 deletions
+7
View File
@@ -25,6 +25,13 @@ test('deriveUserFacingText removes routing hint and skill preface from agent pay
assert.equal(deriveUserFacingText(agentPayload), userText);
});
test('deriveUserFacingText removes page-data prompt persisted as display text', () => {
const userText = '帮我做一个日记页面,可以每天写日记,其他人可以评价';
const persistedDisplayText = `${buildAutoChatSkillPrefix(userText, ['page-data-collect'])}${userText}`;
assert.match(persistedDisplayText, /page-data-collect/);
assert.equal(deriveUserFacingText(persistedDisplayText), userText);
});
test('deriveUserFacingText removes Memind task orchestration prefix', () => {
const userText = '帮我生成深度搜索报告';
const agentPayload = [