feat(chat): append and display context_display_info custom entry for attached assets

This commit is contained in:
yiling
2026-07-11 16:58:09 +08:00
parent cc9b32716d
commit 482df3315c
12 changed files with 128 additions and 2 deletions
+8
View File
@@ -38,6 +38,14 @@ export function buildSessionMessages(pathEntries: PathEntry[]): ChatMessage[] {
details: entry.details as Record<string, unknown> | undefined,
timestamp: timestampMs,
} as unknown as ChatMessage)
} else if (entry.type === 'custom') {
messages.push({
id: entry.id,
role: 'custom',
customType: entry.customType,
details: (entry as { data?: unknown }).data as Record<string, unknown> | undefined,
timestamp: timestampMs,
} as unknown as ChatMessage)
} else if (entry.type === 'branch_summary') {
messages.push({
id: entry.id,