Bohan Jiang
b77acdf642
fix(comments): cancel triggered tasks when comment is deleted ( #1747 )
...
When a user deletes a comment that triggered an agent task, the agent
would still run with the now-deleted content baked into its prompt
(fetched at task claim time) — manifesting as "the agent still sees the
deleted comment". The FK ON DELETE SET NULL only nullified
trigger_comment_id; the queued task itself was never cancelled.
DeleteComment now cancels any queued/dispatched/running task whose
trigger is the deleted comment, before the comment row is removed.
2026-04-27 18:24:07 +08:00
..
2026-04-20 15:56:16 +08:00
2026-04-16 18:01:56 +08:00
2026-04-17 13:40:02 +08:00
2026-04-24 16:36:04 +08:00
2026-04-21 14:42:52 +08:00
2026-04-21 20:32:33 +08:00
2026-04-24 11:05:33 +08:00
2026-04-23 13:36:55 +08:00
2026-04-27 18:24:07 +08:00
2026-04-22 16:58:42 +08:00
2026-04-23 01:51:59 +08:00
2026-04-25 02:06:00 +08:00
2026-04-25 02:06:00 +08:00
2026-04-23 10:35:55 +08:00
2026-04-23 10:35:55 +08:00
2026-04-16 18:01:56 +08:00
2026-04-16 18:01:56 +08:00
2026-04-26 10:35:47 +08:00
2026-04-23 17:07:34 +08:00
2026-04-16 13:46:39 +08:00
2026-04-21 14:42:52 +08:00
2026-03-30 22:37:59 +08:00
2026-04-27 16:33:34 +08:00
2026-04-27 14:23:42 +08:00
2026-04-27 14:23:42 +08:00
2026-04-21 20:32:33 +08:00
2026-04-22 16:28:08 +08:00
2026-03-26 14:32:30 +08:00
2026-04-22 15:08:16 +08:00
2026-04-16 18:01:56 +08:00
2026-04-16 18:01:56 +08:00
2026-04-23 17:07:34 +08:00
2026-04-25 02:06:00 +08:00
2026-04-23 17:07:34 +08:00
2026-04-25 02:06:00 +08:00
2026-04-25 02:06:00 +08:00
2026-04-25 02:06:00 +08:00
2026-04-16 18:54:12 +08:00
2026-04-11 12:49:23 +08:00
2026-04-18 14:18:42 +08:00
2026-04-10 20:59:32 +08:00
2026-04-22 13:16:51 +08:00
2026-04-25 01:40:23 +08:00
2026-04-25 01:40:23 +08:00
2026-04-17 16:26:00 +08:00
2026-04-17 16:26:00 +08:00
2026-04-22 13:08:37 +08:00
2026-04-14 18:00:29 +08:00
2026-04-16 19:06:49 +08:00
2026-04-24 13:50:24 +08:00
2026-04-24 14:29:39 +08:00
2026-04-24 14:29:39 +08:00