fix: 移除未使用的变量和导入,修复 tsc 编译错误
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user