#2219·ag-ui

[Feature]: Disable cleanup task and session tracking optionally

Author: lvalladaresCreated Jul 21, 2026Updated Oct 1, 2026
Labelsenhancement

Pre-flight Checklist

  • I have searched existing issues and this hasn't been requested yet.

Problem or Motivation

When the session service is backed by a persistent DB and you want to keep sessions there having a background task that constantly checks for sessions to delete and retrieve the sessions from the DB adds unnecesary stress and load to the DB when no delete is going to be performed.

Proposed Solution

Add a flag to disable the whole session cleanup task and the minimal tracking, leaving just the same-request tracking

Alternatives Considered

No response

Additional Context

No response