fix: The edit button cannot be used after using MCP. 修复对话中使用 MCP 后编辑按钮消失的问题 (#6623)

fix: The edit button cannot be used after using MCP.
This commit is contained in:
Rudbeckia.hirta.L 2025-05-30 15:15:59 +08:00 committed by GitHub
parent 6c394ec375
commit f0335b5aaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,7 +154,7 @@ const MessageMenubar: FC<Props> = (props) => {
) )
const isEditable = useMemo(() => { const isEditable = useMemo(() => {
return findMainTextBlocks(message).length === 1 return findMainTextBlocks(message).length > 0 // 使用 MCP Server 后会有大于一段 MatinTextBlock
}, [message]) }, [message])
const dropdownItems = useMemo( const dropdownItems = useMemo(