fix: preserve investigation execution history by round

This commit is contained in:
2026-10-30 17:07:53 +08:00
parent 1ee21d1c7f
commit 185bf31446
16 changed files with 830 additions and 32 deletions
@@ -7,10 +7,12 @@ import { AgentMessageDetails, AgentMessageProgress } from "./agent-message-detai
export function AgentMessageProcessContent({
messages,
qaOnly,
showProgress,
runningMessageId
}: {
messages: AgentChatMessage[];
qaOnly: boolean;
showProgress: boolean;
runningMessageId?: string;
}) {
const progress = messages.flatMap((message) => (message.progress ?? []).map((item) => ({
@@ -18,7 +20,7 @@ export function AgentMessageProcessContent({
})));
return (
<>
{!qaOnly ? <AgentMessageProgress progress={progress} running={Boolean(runningMessageId)} /> : null}
{showProgress ? <AgentMessageProgress progress={progress} running={Boolean(runningMessageId)} /> : null}
{messages.map((message) => {
const { process } = getAnswerPresentation(message);
const running = message.id === runningMessageId;