diff --git a/app/components/chat.tsx b/app/components/chat.tsx index d736d18d5..80c6655d7 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -121,9 +121,13 @@ export function SessionConfigModel(props: { onClose: () => void }) { icon={<ResetIcon />} bordered text={Locale.Chat.Config.Reset} - onClick={() => - confirm(Locale.Memory.ResetConfirm) && chatStore.resetSession() - } + onClick={() => { + if (confirm(Locale.Memory.ResetConfirm)) { + chatStore.updateCurrentSession( + (session) => (session.memoryPrompt = ""), + ); + } + }} />, <IconButton key="copy" diff --git a/app/locales/cn.ts b/app/locales/cn.ts index ce0108f2f..c164603be 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -31,8 +31,8 @@ const cn = { }, Send: "发送", Config: { - Reset: "重置默认", - SaveAs: "另存为面具", + Reset: "清除记忆", + SaveAs: "存为面具", }, }, Export: { @@ -47,8 +47,8 @@ const cn = { EmptyContent: "对话内容过短,无需总结", Send: "自动压缩聊天记录并作为上下文发送", Copy: "复制摘要", - Reset: "重置对话", - ResetConfirm: "重置后将清空当前对话记录以及历史摘要,确认重置?", + Reset: "[unused]", + ResetConfirm: "确认清空历史摘要?", }, Home: { NewChat: "新的聊天",