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
Memory leak: Unbounded caches grow without limit #9140
Several internal caches in OpenCode use standard Map objects without size limits. Over long-running sessions, these caches can grow without bound, contributing to memory issues like those reported in #5363.
Affected Caches
Instance cache (project/instance.ts) - Caches project instances by directory
The unbounded cache pattern described in this issue is a root cause of the memory issues mentioned in #5363 and #8947, and similar patterns appear in the snapshot and test infrastructure.
Activity
github-actions commentedon Jan 17, 2026
This issue might be a duplicate of or closely related to existing issues. Please check:
The unbounded cache pattern described in this issue is a root cause of the memory issues mentioned in #5363 and #8947, and similar patterns appear in the snapshot and test infrastructure.
[-]Unbounded caches cause memory growth over time[/-][+]Memory leak: Unbounded caches grow without limit[/+]fix: memory leak - unbounded virtual memory growth during active usage
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.