fix: hide project memory refresh notice

This commit is contained in:
john
2026-07-02 18:35:35 +08:00
parent 30ef609eba
commit 50929940cc
+2 -6
View File
@@ -377,12 +377,8 @@ export function useTKMindChat(
setMemoryLoading(true);
try {
const result = await bootstrapProjectMemory(sessionId, appConfig.memoryQuery, force);
if (force) {
setNotice(
result.summary
? `项目记忆已刷新(${result.source}`
: '未找到可用的项目记忆,当前会话仍可正常使用',
);
if (force && !result.summary) {
setNotice('未找到可用的项目记忆,当前会话仍可正常使用');
}
return result;
} catch (err) {