perf: conversations接口改为纯DB查询,不再实时解析文件 #AI commit##1
Open
htyredc wants to merge 6 commits into
Open
Conversation
改动文件: - src/services/session-info-service.ts - src/services/claude-history-reader.ts - src/routes/conversation.routes.ts - src/cui-server.ts 改动点: - sessions表新增5列(project_path/summary/message_count/total_duration_ms/model),schema v3→v4自动迁移 - 对话启动时(POST /conversations/start)立即将project_path和model写入DB - result消息到达时将summary/message_count/total_duration写入DB - GET /conversations改为listConversationsFromDB()单次SQL查询,不再解析JSONL文件 - 服务启动时后台一次性迁移历史对话数据到DB(parseConversationChains) - 移除每次list请求末尾的syncMissingSessions冗余写入
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
…ommit# 改动文件: - src/services/session-info-service.ts - src/cui-server.ts - src/routes/conversation.routes.ts 改动点: - saveConversationEnd 签名去掉 messageCount 参数 - listConversationsFromDB 返回固定值 messageCount:0, model:'' 而非读DB列 - 历史迁移和新会话调用点同步去掉多余参数
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
…ommit# 改动文件: - src/types/index.ts - src/services/session-info-service.ts - src/services/conversation-status-manager.ts - src/services/claude-history-reader.ts - src/web/chat/components/Home/TaskList.tsx - src/web/chat/components/Home/TaskItem.tsx - tests/unit/* 改动点: - ConversationSummary 类型移除 messageCount 字段 - 所有生产者(DB查询/历史解析/活跃会话)不再产出 messageCount - 会话列表 UI(TaskItem/TaskList)移除消息数显示 - 清理测试中的 messageCount 引用
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动文件:
改动点: