You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unbounded caches in Instance and Provider modules cause memory growth #13788
Several places in the codebase use unbounded Map objects for caching:
Instance cache in project/instance.ts
Provider SDK cache in provider/provider.ts
In long-running processes or when handling many directories/providers, these maps can grow without limit, causing steady memory growth.
Expected behavior
Caches should have a maximum size with LRU eviction so memory remains bounded, with optional cleanup callbacks for evicted entries.
Related
This is distinct from #9143 (LSP diagnostics/files cleanup, already fixed in f936043dd). This issue is about the broader pattern of unbounded Map caches elsewhere in the codebase.
Please review #9140 in particular, as it describes the exact same problem with the same proposed solution (LRU cache with eviction). If you have additional context or reproduction steps beyond what's in #9140, please add them as a comment there.
Activity
github-actions commentedon Feb 16, 2026
This issue might be a duplicate of existing issues. Please check:
Please review #9140 in particular, as it describes the exact same problem with the same proposed solution (LRU cache with eviction). If you have additional context or reproduction steps beyond what's in #9140, please add them as a comment there.
sauerdaniel commentedon Feb 16, 2026
Closing as duplicate of #9140 to keep one issue per problem/PR scope. PR #9141 now references #9140 directly.