From 00736d5719281b7af6e3e4af5d2b47a08780a600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 21 May 2026 17:45:29 -0400 Subject: [PATCH] Fix unused thread prop in ThreadPanel --- AgentCompany-New/src/renderer/src/pages/ChatPage.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx b/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx index 9f67a238..8dde3f46 100644 --- a/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx +++ b/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx @@ -1,7 +1,7 @@ import { useState, type FormEvent, type ReactNode } from "react"; import { Avatar, Button, Field, Icon, IconButton } from "../shared/ui"; import { Dialog } from "../shared/Dialog"; -import type { ChatAttachmentRecord, ChatSpaceRecord, ChatThreadRecord, FileObjectRecord } from "../../../shared/domain"; +import type { ChatAttachmentRecord, ChatSpaceRecord, FileObjectRecord } from "../../../shared/domain"; import type { PageProps } from "./types"; import { activeOrgId } from "./types"; @@ -156,7 +156,6 @@ export function ChatPage({ snapshot, actions }: PageProps) { {selectedThread && ( m.id === selectedThread.rootMessageId) ?? null} employees={employees} @@ -192,7 +191,6 @@ export function ChatPage({ snapshot, actions }: PageProps) { } function ThreadPanel({ - thread, threadMessages, rootMessage, employees, @@ -203,7 +201,6 @@ function ThreadPanel({ onClose, onSubmit, }: { - thread: ChatThreadRecord; threadMessages: Array<{ id: string; bodyMd: string; createdAt: string; senderType: string; senderId: string | null; threadId: string | null }>; rootMessage: { id: string; bodyMd: string; createdAt: string; senderType: string; senderId: string | null } | null; employees: Array<{ id: string; displayName: string }>;