fix: show assistant messages in chat outline

main
sp mac bookpro 2605 2026-06-11 18:48:05 +08:00
parent deab555b3a
commit b0c21ba4ab
1 changed files with 1 additions and 1 deletions

View File

@ -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 (