mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
fix(memory): keep index load failures non-destructive
Show a retry-only state when summary index reads fail so transient errors cannot expose the full rebuild action and erase summaries. Also align newly added implementation comments with repository style.
This commit is contained in:
1 parent
ed7360f8ac
commit
d6877c27fd
11 files changed
+88
-15
No files matched your search
@@ -308,7 +308,7 @@ export async function generateSessionSummary(
|
||||
summary = postProcessSummary(summary, lengthLimit)
|
||||
deps.saveSummary(segmentId, summary)
|
||||
|
||||
// 摘要属于用户聊天内容,日志只记录定位故障所需的元数据,避免持久化明文。
|
||||
// Summaries contain private chat data, so persist only diagnostic metadata in logs.
|
||||
log?.info('Summary', `Summary generated for segment ${segmentId} (${summary.length} characters)`)
|
||||
return { success: true, summary }
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user