Keep context compaction logs to a status line
Verify control plane / verify (push) Canceled after 0s
Verify control plane / verify (pull_request) Canceled after 0s

This commit is contained in:
WebUp Cloud committed 2026-11-08 09:05:23 +08:00
1 parent d04777247b
commit 49fe904626
3 files changed
+9 -7

No files matched your search

@@ -68,7 +68,9 @@ public class TaskController {
@AuthenticationPrincipal SecurityConfig.Identity who, @PathVariable UUID id) {
tasks.find(id, who.id());
return db.queryForList(
"SELECT * FROM (SELECT * FROM ai_task_steps WHERE task_id=? AND event NOT IN"
"SELECT id,task_id,event,created_at,CASE WHEN event='CONTEXT_COMPACTED' THEN"
+ " '压缩上下文中' ELSE detail END AS detail FROM (SELECT * FROM ai_task_steps WHERE"
+ " task_id=? AND event NOT IN"
+ " ('AUTO_SETTLEMENT','MANUAL_SETTLEMENT') ORDER BY created_at DESC,id DESC LIMIT"
+ " 1000) AS recent ORDER BY created_at,id",
id);