feat: update main chat and system chat UI
This commit is contained in:
@@ -32,3 +32,36 @@ test('extractChatMessageParts does not promote relative internal resource markdo
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
test('extractChatMessageParts keeps angle-bracket internal resource markdown links as plain text', () => {
|
||||
assert.deepEqual(
|
||||
extractChatMessageParts(
|
||||
['문서 경로', '[채팅방 참고 문서](</api/chat/resources/.codex_chat/chat-room/resource/source/chat room reference.md>)'].join(
|
||||
'\n',
|
||||
),
|
||||
),
|
||||
{
|
||||
strippedText: ['문서 경로', '[채팅방 참고 문서](</api/chat/resources/.codex_chat/chat-room/resource/source/chat room reference.md>)'].join(
|
||||
'\n',
|
||||
),
|
||||
parts: [],
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
test('extractChatMessageParts promotes standalone markdown links with angle-bracket external targets into link cards', () => {
|
||||
assert.deepEqual(
|
||||
extractChatMessageParts(' - [판매글 열기](<https://www.daangn.com/kr/buy-sell/mac studio>)'),
|
||||
{
|
||||
strippedText: '',
|
||||
parts: [
|
||||
{
|
||||
type: 'link_card',
|
||||
title: '판매글 열기',
|
||||
url: 'https://www.daangn.com/kr/buy-sell/mac studio',
|
||||
actionLabel: null,
|
||||
},
|
||||
],
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user