feat: 在消息查询中添加工具执行时长字段,增强消息记录功能

This commit is contained in:
oudecheng 2026-06-02 17:27:29 +08:00
parent 590ea9abb0
commit 025c355c7d

View File

@ -1416,7 +1416,7 @@ impl SessionStore {
let conn = self.conn.lock().expect("session db mutex poisoned");
let mut stmt = conn.prepare(
"
SELECT id, role, content, system_context, reasoning_content, media_refs_json, created_at, tool_call_id, tool_name, tool_calls_json
SELECT id, role, content, system_context, reasoning_content, media_refs_json, created_at, tool_call_id, tool_name, tool_calls_json, tool_duration_ms
FROM messages
WHERE topic_id = ?1
ORDER BY seq ASC