ji ruo
ea49ba0a3a
fix(intercept): avoid full-history polling and full-table counts
...
- Add partial covering index on intercept_pending(task_id, created_at DESC) INCLUDE (agent_name) WHERE status = 'pending'.
- Add GET /api/intercept/pending/summary (global count or per-task count + agent_names) and ?task_id= filtering on GET /api/intercept/pending.
- Cap unpaginated GET /api/intercept/task/{taskID} at 200 rows and remove unused tasks JOIN from non-search approval queries.
- Replace unbounded SELECT COUNT(*) in paginated approval queries with end-of-list shortcut, pg_class/pg_stat catalog estimate for large unfiltered tables, and bounded counting (10,000 cap) for large filtered sets.
- Deduplicate task detail and sessions-tab polling via single pending summary poll, switch sidebar badge to summary count, and guard approval polling against background tabs, overlapping requests, and deep-page/search churn.
Fixes #186
2026-11-26 00:54:26 +08:00
..
2026-10-24 21:46:03 +08:00
2026-10-30 09:18:31 +08:00
2026-09-19 07:58:23 -04:00
2026-08-31 11:22:34 -04:00
2026-09-11 11:59:46 -04:00
2026-10-07 07:45:28 -04:00
2026-11-10 20:03:14 +08:00
2026-10-27 13:07:09 +08:00
2026-11-10 16:28:23 +08:00
2026-11-10 20:12:16 +08:00
2026-07-26 04:27:45 -04:00
2026-10-19 15:09:17 +08:00
2026-10-19 08:57:50 +08:00
2026-10-09 23:50:05 +08:00
2026-10-31 16:23:28 +08:00
2026-08-24 11:55:50 -04:00
2026-11-10 20:03:14 +08:00
2026-11-10 20:03:14 +08:00
2026-08-24 19:29:00 +08:00
2026-08-28 14:03:07 +08:00
2026-08-24 14:14:15 +08:00
2026-09-10 16:06:08 +08:00
2026-10-31 15:56:02 +08:00
2026-08-24 19:31:16 +08:00
2026-10-20 13:01:03 +08:00
2026-10-30 09:18:31 +08:00
2026-09-29 10:09:23 -04:00
2026-11-11 18:56:33 +08:00
2026-11-19 17:26:51 +08:00
2026-11-05 16:00:07 +08:00
2026-11-11 19:13:38 +08:00
2026-11-11 18:56:33 +08:00
2026-11-11 14:07:39 +08:00
2026-09-10 10:49:11 -04:00
2026-08-24 19:28:18 +08:00
2026-11-11 14:07:39 +08:00
2026-11-11 15:20:58 +08:00
2026-11-23 18:28:50 +08:00
2026-10-26 09:36:03 +08:00
2026-11-19 17:26:51 +08:00
2026-11-19 17:26:51 +08:00
2026-11-19 17:26:51 +08:00
2026-11-11 14:14:37 +08:00
2026-10-24 23:17:26 +08:00
2026-10-24 23:17:26 +08:00
2026-10-09 10:43:53 +08:00
2026-10-24 23:37:58 +08:00
2026-10-24 23:37:58 +08:00
2026-10-30 12:19:43 +08:00
2026-09-10 16:06:08 +08:00
2026-09-10 16:06:08 +08:00
2026-10-29 01:25:32 +08:00
2026-09-11 00:54:51 +08:00
2026-09-10 10:15:24 -04:00
2026-09-15 00:43:20 +08:00
2026-10-09 12:23:11 +08:00
2026-11-09 16:11:15 +08:00
2026-11-23 18:20:33 +08:00
2026-11-11 15:20:58 +08:00
2026-10-27 14:25:36 +08:00
2026-11-02 15:45:28 +08:00
2026-11-23 18:24:43 +08:00
2026-08-24 14:14:15 +08:00
2026-08-24 19:29:00 +08:00
2026-11-11 14:07:39 +08:00
2026-11-03 14:56:39 +08:00
2026-11-11 19:13:38 +08:00
2026-08-24 19:29:00 +08:00
2026-08-24 19:29:00 +08:00
2026-10-27 12:33:53 +08:00
2026-10-20 11:16:04 +08:00
2026-09-16 22:36:07 +08:00
2026-10-31 18:16:49 +08:00
2026-09-15 23:51:37 +08:00
2026-11-26 00:54:26 +08:00
2026-09-15 23:51:37 +08:00
2026-10-12 11:06:38 +08:00
2026-11-26 00:54:26 +08:00
2026-11-03 15:53:24 +08:00
2026-08-24 19:28:18 +08:00
2026-08-24 19:28:18 +08:00
2026-08-25 09:40:05 -04:00
2026-09-09 13:35:04 -04:00
2026-09-10 10:49:11 -04:00
2026-07-26 04:27:45 -04:00
2026-08-24 19:29:00 +08:00
2026-11-19 17:26:51 +08:00
2026-11-19 17:26:51 +08:00
2026-11-14 14:32:39 +08:00
2026-11-14 14:32:39 +08:00
2026-11-14 14:08:07 +08:00
2026-11-14 14:32:39 +08:00
2026-09-15 00:56:16 +08:00
2026-08-11 10:56:39 -04:00
2026-10-01 06:43:29 -04:00
2026-10-01 06:43:29 -04:00
2026-09-30 16:25:06 +08:00
2026-11-11 14:07:39 +08:00
2026-07-26 04:27:45 -04:00
2026-09-15 00:56:16 +08:00
2026-11-10 20:03:14 +08:00
2026-11-10 20:03:14 +08:00
2026-08-24 14:14:15 +08:00
2026-10-31 19:30:38 +08:00
2026-11-05 16:00:07 +08:00
2026-11-02 17:57:19 +08:00
2026-11-05 16:00:07 +08:00
2026-10-19 09:58:32 +08:00
2026-10-24 21:46:03 +08:00
2026-11-23 18:17:45 +08:00
2026-11-23 18:17:45 +08:00
2026-10-15 14:53:33 +08:00
2026-10-09 23:05:44 +08:00
2026-10-10 09:16:28 +08:00
2026-11-23 18:24:43 +08:00
2026-11-26 00:54:26 +08:00
2026-10-31 11:18:45 +08:00
2026-10-31 11:18:45 +08:00
2026-10-19 08:50:06 +08:00
2026-08-24 19:30:14 +08:00
2026-08-31 11:37:44 -04:00
2026-09-11 11:37:56 -04:00
2026-11-20 17:00:24 +08:00
2026-11-20 17:00:24 +08:00
2026-10-29 10:41:04 -07:00
2026-10-29 10:41:04 -07:00
2026-10-29 10:41:04 -07:00
2026-10-29 10:41:04 -07:00
2026-08-24 14:14:15 +08:00
2026-09-19 11:08:15 -04:00
2026-11-19 23:34:02 +08:00
2026-08-28 12:56:29 +08:00
2026-09-11 00:54:51 +08:00
2026-10-29 16:20:11 +08:00
2026-08-24 19:29:14 +08:00
2026-08-24 09:16:44 -04:00
2026-08-24 09:16:44 -04:00
2026-08-24 19:29:00 +08:00
2026-10-31 18:23:40 +08:00
2026-08-24 19:29:00 +08:00
2026-11-11 14:14:37 +08:00
2026-11-11 14:14:37 +08:00
2026-09-19 09:06:22 -04:00
2026-09-17 09:40:06 -04:00
2026-11-02 15:45:28 +08:00
2026-11-19 17:26:51 +08:00
2026-11-19 17:26:51 +08:00
2026-08-24 14:14:15 +08:00
2026-10-27 13:37:43 +08:00
2026-11-11 14:07:39 +08:00
2026-08-24 19:29:46 +08:00
2026-10-24 22:31:54 +08:00
2026-07-26 04:27:45 -04:00
2026-08-25 12:05:26 +08:00
2026-08-25 12:05:26 +08:00
2026-10-24 21:46:03 +08:00
2026-09-12 09:26:38 -04:00
2026-08-09 02:19:29 -04:00
2026-10-15 15:44:55 +08:00
2026-10-15 15:44:55 +08:00
2026-10-15 15:44:55 +08:00
2026-10-15 15:44:55 +08:00
2026-07-26 04:27:45 -04:00
2026-07-26 04:27:45 -04:00
2026-08-31 09:00:21 -04:00
2026-11-19 17:26:51 +08:00
2026-11-11 14:14:37 +08:00