fix(chat): hide actions while streaming
This commit is contained in:
@@ -39,6 +39,7 @@ import StopRounded from "@mui/icons-material/StopRounded";
|
||||
|
||||
type AgentTurnProps = {
|
||||
message: Message;
|
||||
isStreaming: boolean;
|
||||
messageSpeechState: SpeechState;
|
||||
onSpeak: (messageId: string, text: string) => void;
|
||||
onPause: () => void;
|
||||
@@ -54,6 +55,7 @@ type AgentTurnProps = {
|
||||
export const AgentTurn = React.memo(
|
||||
({
|
||||
message,
|
||||
isStreaming,
|
||||
messageSpeechState,
|
||||
onSpeak,
|
||||
onPause,
|
||||
@@ -277,7 +279,7 @@ export const AgentTurn = React.memo(
|
||||
</Stack>
|
||||
|
||||
<AnimatePresence>
|
||||
{isHovered && (
|
||||
{isHovered && !isStreaming && (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, scale: 0.9, y: 5 }}
|
||||
animate={{ opacity: 1, scale: 1, y: 0 }}
|
||||
|
||||
Reference in New Issue
Block a user