From b1199b3cbf75555e36ce5bff872f22c2cd19cbb8 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Wed, 10 Dec 2025 23:31:21 +0000 Subject: [PATCH] fix(ai): Use context.Background() for forced patrol runs The ForcePatrol() function was using the HTTP request context, which gets cancelled immediately when the API response is sent. This caused LLM analysis to fail with 'context canceled' before it could complete. Now uses context.Background() so the goroutine runs independently of the HTTP request lifecycle. Also fixed dropdown hover gap issue in the dismiss menu. --- frontend-modern/src/pages/Alerts.tsx | 128 ++++++++++++++------------- internal/ai/patrol.go | 3 +- 2 files changed, 67 insertions(+), 64 deletions(-) diff --git a/frontend-modern/src/pages/Alerts.tsx b/frontend-modern/src/pages/Alerts.tsx index 19d47f0..fbf6a69 100644 --- a/frontend-modern/src/pages/Alerts.tsx +++ b/frontend-modern/src/pages/Alerts.tsx @@ -2657,76 +2657,78 @@ function OverviewTab(props: { - {/* Dropdown menu */} -