From d2856b9eb40bbdf8c54c241571eea01bb63d433a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Aug 2026 04:45:49 +0000 Subject: [PATCH 1/2] Initial plan From e609241f8a61a3711c728ddfa42f9e473d9256a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Aug 2026 04:51:50 +0000 Subject: [PATCH 2/2] Suppress ctxbackground lint in ctxutil.OrBackground Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/ctxutil/ctxutil.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/ctxutil/ctxutil.go b/pkg/ctxutil/ctxutil.go index 4563e10555b..bf1a65d52db 100644 --- a/pkg/ctxutil/ctxutil.go +++ b/pkg/ctxutil/ctxutil.go @@ -14,7 +14,9 @@ import "context" // pattern at call sites. func OrBackground(ctx context.Context) context.Context { if ctx == nil { - return context.Background() + // The parameter is nil here, so falling back to a fresh background + // context is the intended behavior of this helper. + return context.Background() //nolint:ctxbackground } return ctx }