Cap External Agent Sessions to 30 Days (replace all, enforce ingest/prune retention) - #331635
Conversation
Co-authored-by: benibenj <44439583+benibenj@users.noreply.github.com>
all, enforce ingest/prune retention)
|
Copilot fix merge conflicts |
Co-authored-by: benibenj <44439583+benibenj@users.noreply.github.com>
Fixed and merged main into this branch, resolving the conflicts in commit |
|
Copilot resolve the merge conflicts in this pull request |
…sessions-filter # Conflicts: # src/vs/platform/agentHost/node/agentService.ts Co-authored-by: benibenj <44439583+benibenj@users.noreply.github.com>
Resolved by merging latest |
Co-authored-by: benibenj <44439583+benibenj@users.noreply.github.com>
|
Copilot remove the eslint changes |
This reverts commit 9190dc5. Co-authored-by: benibenj <44439583+benibenj@users.noreply.github.com>
Done in |
|
Copilot fix tests and merge conflict |
|
Copilot resolve the merge conflicts in this pull request |
…sessions-filter # Conflicts: # src/vs/sessions/contrib/providers/agentHost/AGENT_HOST_SESSIONS_PROVIDER.md Co-authored-by: benibenj <44439583+benibenj@users.noreply.github.com>
Co-authored-by: benibenj <44439583+benibenj@users.noreply.github.com>
Fixed in |
I verified this branch against |
32b97f5
into
main
Description
This changes external-session visibility from unbounded to a strict 30-day retention model to reduce slow session surfacing/filtering and keep catalog size bounded. The
allmode is removed from user-facing options and behavior, while legacy persistedallvalues are migrated/treated aslast30Days.Mode and settings surface
ChatExternalSessionsMode.AllwithChatExternalSessionsMode.Last30Days.Backward compatibility for persisted config
chat.agentSessions.showExternal = "all"→"last30Days"."all"is interpreted asLast30Days.Single shared retention constant
EXTERNAL_SESSION_MAX_AGE_MS = 30 * DAY_MSand reused it across:Last30Daysmode),Ingestion hard cap
Deferred stale-row pruning
Targeted coverage updates
All→Last30Days.Last30Daysboundary semantics,