From e11934cf705005a940c03152c00f93daff26d8f0 Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Sun, 14 Jun 2026 19:37:16 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E6=9C=AA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E5=8F=98=E9=87=8F=E5=92=8C=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8D=20tsc=20=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/hooks/useSessionList.ts | 8 -------- frontend/src/lib/errors.ts | 1 - 2 files changed, 9 deletions(-) diff --git a/frontend/src/hooks/useSessionList.ts b/frontend/src/hooks/useSessionList.ts index 2ab76c3..0a49c89 100644 --- a/frontend/src/hooks/useSessionList.ts +++ b/frontend/src/hooks/useSessionList.ts @@ -63,14 +63,6 @@ export function useSessionList() { saveSessionSummaries(updated); }, []); - /** 保存当前会话的消息历史 */ - const saveCurrentSession = useCallback((messages: ChatMessage[]) => { - const id = sessionsRef.current.length > 0 ? sessionsRef.current[0].id : null; - // 找到 activeSessionId 对应的会话 - // 这里不依赖 activeSessionId state,而是通过参数传入 - return messages; - }, []); - /** 保存指定会话的消息并更新摘要 */ const persistSession = useCallback((sessionId: string, messages: ChatMessage[]) => { if (!sessionId) return; diff --git a/frontend/src/lib/errors.ts b/frontend/src/lib/errors.ts index 4bad345..44be571 100644 --- a/frontend/src/lib/errors.ts +++ b/frontend/src/lib/errors.ts @@ -3,7 +3,6 @@ // 来源:docs/03-接口文档.md §五 错误码 // ============================================================ -import type { ErrorCode } from "../types"; /** 将错误码转为用户友好文案(需要传入翻译函数) */ export function getErrorMessage(code: string, translate: (key: string) => string): string { From ffc9b4a320959f6a5e9ff3dc0715bb0ebda16ae7 Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Sun, 14 Jun 2026 19:51:15 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E6=9B=B4=E6=8D=A2=20PostgreSQL=20?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=BA=90=E4=B8=BA=E8=BD=A9=E8=BE=95=E9=95=9C?= =?UTF-8?q?=E5=83=8F=EF=BC=8C=E4=BF=AE=E5=A4=8D=E9=98=BF=E9=87=8C=E4=BA=91?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=8B=89=E5=8F=96=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index acbb3c9..009c14a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,8 +29,8 @@ services: restart: unless-stopped postgres: - # 阿里云镜像,避免从 Docker Hub 拉取超时 - image: registry.cn-hangzhou.aliyuncs.com/library/postgres:15-alpine + # 轩辕镜像加速,避免 Docker Hub 拉取超时 + image: docker.xuanyuan.me/library/postgres:15-alpine container_name: camtalk-postgres environment: POSTGRES_USER: camtalk From 668da26e23e18640b23ff96416719993c29dd993 Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Sun, 14 Jun 2026 19:58:22 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20=E6=9B=B4=E6=8D=A2=20PostgreSQL=20?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 009c14a..55ccdcb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -30,7 +30,7 @@ services: postgres: # 轩辕镜像加速,避免 Docker Hub 拉取超时 - image: docker.xuanyuan.me/library/postgres:15-alpine + image: docker.m.daocloud.io/library/postgres:15-alpine container_name: camtalk-postgres environment: POSTGRES_USER: camtalk From 92e47718bc43b62025267eabe2bf52892efb92bb Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Sun, 14 Jun 2026 20:10:31 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20ChatPanel=20vad?= =?UTF-8?q?Error=20=E5=B1=9E=E6=80=A7=E7=B1=BB=E5=9E=8B=E4=B8=8D=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E5=AF=BC=E8=87=B4=E6=9E=84=E5=BB=BA=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/ChatPanel/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/ChatPanel/index.tsx b/frontend/src/components/ChatPanel/index.tsx index f4515c9..0007bda 100644 --- a/frontend/src/components/ChatPanel/index.tsx +++ b/frontend/src/components/ChatPanel/index.tsx @@ -15,7 +15,7 @@ interface ChatPanelProps { connectionStatus: ConnectionStatus; isProcessing?: boolean; isVADReady?: boolean; - vadError?: string; + vadError?: string | null; isMicOn?: boolean; isSpeaking?: boolean; onSendText?: (text: string) => void;