From fdfb3df714b8c31ae3232b6ea709bbc3710756dd Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Mon, 9 Feb 2026 12:56:39 +0800 Subject: [PATCH] Improve debug drawer --- web/pages/Assistants.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/web/pages/Assistants.tsx b/web/pages/Assistants.tsx index a44a02b..209a2d9 100644 --- a/web/pages/Assistants.tsx +++ b/web/pages/Assistants.tsx @@ -1598,8 +1598,8 @@ export const DebugDrawer: React.FC<{ setResolvedConfigView(JSON.stringify(localResolved, null, 2)); }, [isOpen, assistant, voices, llmModels, asrModels]); - const TranscriptionLog = () => ( -
+ const TranscriptionLog = ({ className = '' }: { className?: string }) => ( +
{messages.length === 0 &&
暂无转写记录
} {messages.map((m, i) => (
@@ -1699,8 +1699,10 @@ export const DebugDrawer: React.FC<{
{mode === 'text' ? ( textSessionStarted ? ( -
- +
+
+ +
) : wsStatus === 'connecting' ? (
@@ -1772,7 +1774,7 @@ export const DebugDrawer: React.FC<{

通话中...

转写日志

- +
) : (
@@ -1791,7 +1793,7 @@ export const DebugDrawer: React.FC<{
- +
)}
-
+
{mode === 'text' && textSessionStarted && (