feat: update main chat and system chat UI

This commit is contained in:
2026-05-25 17:26:37 +09:00
parent fb5ec649cd
commit f59522ffc4
120 changed files with 43262 additions and 3325 deletions

View File

@@ -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,
},
],
},
);
});