修复:会话详情接口 MSG_COLS 漏选 usage 列,重进会话不渲染 In/Out/缓存命中行
数据本已落库(messages.usage JSON),前端 aiMsgHtml/summaryMsgHtml 也已按 m.usage 渲染,仅接口 SELECT 白名单缺列导致重进后恒为空;分页与全量两条查询共用该常量,一处修复两处生效
This commit is contained in:
@@ -151,7 +151,7 @@ function attachToolCallMap(row, toolCallMsgMap) {
|
||||
return row;
|
||||
}
|
||||
|
||||
const MSG_COLS = 'id, role, content, reasoning, tool_calls, tool_call_id, name, type, is_error, created_at';
|
||||
const MSG_COLS = 'id, role, content, reasoning, tool_calls, tool_call_id, name, type, is_error, usage, created_at';
|
||||
|
||||
router.get('/:id', wrap((req, res) => {
|
||||
const session = engine.getSession(req.params.id);
|
||||
|
||||
Reference in New Issue
Block a user