try to fix fast reload

This commit is contained in:
2025-12-18 09:41:42 +08:00
parent 739c019404
commit f1b331d923
3 changed files with 6 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ export interface ChatOverlayProps {
isVisible: boolean;
position: { x: number; y: number };
onPositionChange: (position: { x: number; y: number }) => void;
containerRef: React.RefObject<HTMLDivElement>;
containerRef: React.RefObject<HTMLDivElement | null>;
onToggle: () => void;
}

View File

@@ -1179,7 +1179,7 @@ export function PhoneSimulator({
<ChatOverlay
agentAudioTrack={voiceAssistant.audioTrack}
accentColor={config.settings.theme_color}
inputDisabled={phoneMode === "important_message" || phoneMode === "hand_off"}
inputDisabled={phoneMode === "hand_off"}
isVisible={showChatOverlay}
position={chatOverlayPosition}
onPositionChange={setChatOverlayPosition}