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
Bun process memory exceeds 1GB and grows unboundedly — opencode 1.18.14 on Windows #41026
The Bun process backing opencode consumes over 1 GB of memory (RSS) during normal usage. Memory grows continuously over time and is never released back to the OS, consistent with Bun's mimalloc allocator not returning freed pages.
This appears to be the same class of issue as #35107 (structuredClone heap pressure) and #35847 (12h session memory leak), but is reproducible on the latest version 1.18.14 with shorter sessions — it does not require 12+ hours to manifest.
Environment
Item
Value
opencode
1.18.14
Bun
1.3.14
OS
Windows (win32, x64)
Terminal
Windows Terminal
Plugins
No response
OpenCode version
1.18.14
Steps to reproduce
Install opencode 1.18.14 on Windows (Bun v1.3.14 bundled)
Start a normal interactive session with multiple rounds of conversation
This issue might be a duplicate of existing issues. Please check:
Memory Megathread #20695: Memory Megathread — the central tracking issue for memory growth in opencode; includes instructions for capturing heap snapshots that would directly help triage your report
If your issue is distinct from the above (e.g. it reproduces faster or has a different trigger), it may still be worth filing separately — but please consider adding a heap snapshot via the instructions in #20695, as that's the most actionable data the team can use to diagnose unbounded Bun RSS growth.
Activity
github-actions commentedon Aug 7, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from the above (e.g. it reproduces faster or has a different trigger), it may still be worth filing separately — but please consider adding a heap snapshot via the instructions in #20695, as that's the most actionable data the team can use to diagnose unbounded Bun RSS growth.
github-actions commentedon Oct 8, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.