chore: update release notes and fix various issues

- Updated release notes to include new DMXAPI service and fixed knowledge base search results issue.
- Enhanced drag-and-drop functionality for message selection and resolved memory exceptions in translation replies.
- Added styling adjustments for context menu and improved layout in CodeBlockView and MessageGroup components.
This commit is contained in:
kangfenmao 2025-05-26 14:55:47 +08:00
parent 2dc81ab8c8
commit 13d440b0b6
6 changed files with 23 additions and 24 deletions

View File

@ -95,13 +95,9 @@ artifactBuildCompleted: scripts/artifact-build-completed.js
releaseInfo: releaseInfo:
releaseNotes: | releaseNotes: |
⚠️ 注意:升级前请备份数据,否则将无法降级 ⚠️ 注意:升级前请备份数据,否则将无法降级
增加 TokenFlux 服务商 文生图新增服务商 DMXAPI限时免费
增加 Claude 4 模型支持 输入框按钮支持拖拽排序
Grok 模型增加联网能力 修复知识库搜索结果 100% 问题
小程序支持前进和后退 修复拖拽多选消息相关问题
修复 Windows 用户 MCP 无法启动问题 修复翻译回复内容导致内存异常问题
修复无法搜索历史消息问题 常规错误修复和优化
修复 MCP 代理问题
修复精简备份恢复覆盖文件问题
修复@模型回复插入位置错误问题
修复搜索小程序崩溃问题

View File

@ -245,7 +245,7 @@ class McpService {
const loginShellEnv = await this.getLoginShellEnv() const loginShellEnv = await this.getLoginShellEnv()
// Bun not support proxy https://github.com/oven-sh/bun/issues/16812 // Bun not support proxy https://github.com/oven-sh/bun/issues/16812
if (cmd.endsWith('bun')) { if (cmd.includes('bun')) {
this.removeProxyEnv(loginShellEnv) this.removeProxyEnv(loginShellEnv)
} }

View File

@ -4,3 +4,9 @@
border-top-left-radius: 10px; border-top-left-radius: 10px;
border-left: 0.5px solid var(--color-border); border-left: 0.5px solid var(--color-border);
} }
.group-container {
.context-menu-container {
width: 100%;
}
}

View File

@ -250,7 +250,6 @@ const CodeBlockView: React.FC<Props> = ({ children, language, onSave }) => {
const CodeBlockWrapper = styled.div<{ $isInSpecialView: boolean }>` const CodeBlockWrapper = styled.div<{ $isInSpecialView: boolean }>`
/* FIXME: 在 bubble style 中撑开一些宽度*/ /* FIXME: 在 bubble style 中撑开一些宽度*/
min-width: min(calc(60vw - var(--sidebar-width)), 700px);
position: relative; position: relative;
.code-toolbar { .code-toolbar {

View File

@ -74,7 +74,7 @@ const ContextMenu: React.FC<ContextMenuProps> = ({ children, onContextMenu }) =>
] ]
return ( return (
<ContextContainer onContextMenu={handleContextMenu}> <ContextContainer onContextMenu={handleContextMenu} className="context-menu-container">
{contextMenuPosition && ( {contextMenuPosition && (
<Dropdown <Dropdown
overlayStyle={{ position: 'fixed', left: contextMenuPosition.x, top: contextMenuPosition.y, zIndex: 1000 }} overlayStyle={{ position: 'fixed', left: contextMenuPosition.x, top: contextMenuPosition.y, zIndex: 1000 }}

View File

@ -190,16 +190,6 @@ const MessageGroup = ({ messages, topic, hidePresetMessages, registerMessageElem
</MessageWrapper> </MessageWrapper>
) )
const wrappedMessage = (
<SelectableMessage
key={`selectable-${message.id}`}
messageId={message.id}
topic={topic}
isClearMessage={message.type === 'clear'}>
{messageContent}
</SelectableMessage>
)
if (isGridGroupMessage) { if (isGridGroupMessage) {
return ( return (
<Popover <Popover
@ -221,7 +211,15 @@ const MessageGroup = ({ messages, topic, hidePresetMessages, registerMessageElem
) )
} }
return wrappedMessage return (
<SelectableMessage
key={`selectable-${message.id}`}
messageId={message.id}
topic={topic}
isClearMessage={message.type === 'clear'}>
{messageContent}
</SelectableMessage>
)
}, },
[ [
isGrid, isGrid,