fix(ui): harden product-facing interaction flows
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user