fix: 移除未使用的变量和导入,修复 tsc 编译错误

This commit is contained in:
hhs
2026-06-14 19:37:16 +08:00
parent 16105f5ac6
commit e11934cf70
2 changed files with 0 additions and 9 deletions

View File

@@ -63,14 +63,6 @@ export function useSessionList() {
saveSessionSummaries(updated);
}, []);
/** 保存当前会话的消息历史 */
const saveCurrentSession = useCallback((messages: ChatMessage[]) => {
const id = sessionsRef.current.length > 0 ? sessionsRef.current[0].id : null;
// 找到 activeSessionId 对应的会话
// 这里不依赖 activeSessionId state而是通过参数传入
return messages;
}, []);
/** 保存指定会话的消息并更新摘要 */
const persistSession = useCallback((sessionId: string, messages: ChatMessage[]) => {
if (!sessionId) return;