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 7794b5e880
commit 0d023ddbdc

View File

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