fix(frontend):added the display of the 'analyst' message #800 (#801)

This commit is contained in:
Willem Jiang
2026-01-06 20:43:04 +08:00
committed by GitHub
parent 7e10b105ca
commit 1ced90b055
2 changed files with 4 additions and 2 deletions

View File

@@ -12,7 +12,8 @@ export interface Message {
| "researcher" | "researcher"
| "coder" | "coder"
| "reporter" | "reporter"
| "podcast"; | "podcast"
| "analyst";
role: MessageRole; role: MessageRole;
isStreaming?: boolean; isStreaming?: boolean;
content: string; content: string;

View File

@@ -240,7 +240,8 @@ function appendMessage(message: Message) {
if ( if (
message.agent === "coder" || message.agent === "coder" ||
message.agent === "reporter" || message.agent === "reporter" ||
message.agent === "researcher" message.agent === "researcher" ||
message.agent === "analyst"
) { ) {
if (!getOngoingResearchId()) { if (!getOngoingResearchId()) {
const id = message.id; const id = message.id;