From b0c21ba4ab1fcb39a24be4f3838cc31af3b518b1 Mon Sep 17 00:00:00 2001 From: sp mac bookpro 2605 Date: Thu, 11 Jun 2026 18:48:05 +0800 Subject: [PATCH] fix: show assistant messages in chat outline --- src/pages/chat/components/ChatOutline.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/chat/components/ChatOutline.tsx b/src/pages/chat/components/ChatOutline.tsx index 5f2ad7c..7c52129 100644 --- a/src/pages/chat/components/ChatOutline.tsx +++ b/src/pages/chat/components/ChatOutline.tsx @@ -14,7 +14,7 @@ function summarize(content: string) { export default function ChatOutline(props: { messages: ChatMessage[]; onJump: (id: string) => void; activeId?: string | null }) { const { messages, onJump, activeId } = props; - const items = messages.filter((m) => ((m as any)?.speaker?.type ? (m as any).speaker.type === 'agent' : m.role === 'assistant')); + const items = messages.filter((m) => m.speaker?.type === 'agent' || m.role === 'assistant' || m.role === 'agent'); if (items.length === 0) { return (