mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-06 15:07:58 +00:00
Annotate the remaining context.Background()/TODO() call sites that are legitimate independent roots with //rubocop:disable Lint/ContextConnectivity. These fall into a few categories that cannot (and should not) derive from the program's root context: - Bubble Tea event-loop handlers (pkg/tui): Update/Init and tea.Cmd callbacks have no context parameter, and appModel deliberately does not store the root ctx — threading it would make persistence writes cancellable at shutdown. - runtime.Runtime / interface implementations with fixed signatures (remote_runtime, LocalRuntime Steer/FollowUp, accessors). - Shutdown/flush paths that must outlive the cancelled parent ctx (otel providers, HTTP server Shutdown, OAuth callback servers). - sync.Once / memoized initializers and deliberately detached subprocesses (gateway catalog, LSP process, sound, event hooks). - Test/e2e helpers (pkg/fake, e2e/binary). No behavior change.