Files
docker-agent/pkg/memory/database/sqlite
David Gageot 7ed9f788b8 chore: suppress intentional detached-context roots (Lint/ContextConnectivity)
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.
2026-06-29 10:16:55 +02:00
..