修复:终止会话无审计痕迹——/stop 路由补记「用户终止」日志(此前唯一不打日志的交互路由,误触/他人终止无法追溯);本轮汇总 aborted 细分来源:cancel=取消标志置位,stream=未取消但流被 AbortError 掐断

This commit is contained in:
2026-09-11 07:45:05 +08:00
parent 24c8298884
commit 6262b09800
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -29,7 +29,9 @@ router.post('/:id/messages', wrap((req, res) => {
router.post('/:id/stop', wrap((req, res) => {
res.json(engine.stop(req.params.id));
const r = engine.stop(req.params.id);
log.info('msg', (req.user || '-') + ' ' + req.params.id + ' 用户终止');
res.json(r);
}));
// 断开:held 会话主动放弃模型保持租约,结版为已完成(非终止)