From 6348ae2af6b613e1eecb46701251024d1339a0c8 Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Wed, 5 Aug 2026 15:38:41 +0800 Subject: [PATCH] fix(frontend): blur debug drawer chat and video behind message dialog Use a contained dialog portal scoped to the workspace and apply direct filter blur so show_message prompts dim transcript and video reliably. Co-authored-by: Cursor --- .../assistant-editor/debug-preview.tsx | 32 +++++++++++++------ .../src/components/client-message-dialog.tsx | 10 ++++-- 2 files changed, 30 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/assistant-editor/debug-preview.tsx b/frontend/src/components/assistant-editor/debug-preview.tsx index 25f3a22..1ed3f37 100644 --- a/frontend/src/components/assistant-editor/debug-preview.tsx +++ b/frontend/src/components/assistant-editor/debug-preview.tsx @@ -775,6 +775,7 @@ function DebugVoicePanel({ const [inputMode, setInputMode] = useState("mic"); const [clientDialogContainer, setClientDialogContainer] = useState(null); + const [messageDialogOpen, setMessageDialogOpen] = useState(false); const inChatView = view === "chat" && (!SHOW_VOICE_VIZ || showTranscript); const idleOrFailed = status === "idle" || status === "failed"; const showIdleHub = @@ -812,17 +813,27 @@ function DebugVoicePanel({ ]); return ( -
+
{/* 后端 TTS 音频经 WebRTC 媒体流过来,挂这里播放 */}