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
Just starting OpenCode without doing anything, and it starts eating my RAM (+17 GB)!.
Just starting OpenCode spawn a git processes that eat my 24-thread CPU at 100% usage!.
Open any old session and keep spawn multi git processes.
For some reason it starts a LOT of rustc processes while it is literally not doing anything, just opening an old session! Yes, it's not coming from neovim or vscode. comes from opencode.
One more thing, even if I close the terminal, opencode and git processes are still alive! Killing them manually is necessary!
Your symptoms (RAM spike, git processes at 100% CPU, rustc processes spawning) are consistent with the cascading memory leak and child process management issues already documented in #13230 and #13513.
The team is tracking these under the broader memory leak initiative. Consider subscribing to #13230 or #13513 for updates on the fixes (which include bounding child processes, implementing LSP diagnostics eviction, and addressing unbounded output buffers in the bash tool).
The RAM consumption you're seeing (+17 GB just from starting opencode) is likely caused by bash-language-server's hardcoded --external-sources flag triggering unbounded ShellCheck memory growth. We observed the exact same pattern — individual shellcheck processes growing to 3-5 GB RSS, compounding across sessions.
The upstream root cause fix has been merged: bash-lsp/bash-language-server#1376 adds a shellcheckExternalSources config option. Setting it to false omits --external-sources entirely.
Immediate workaround — set this env var before running opencode:
SHELLCHECK_EXTERNAL_SOURCES=false
See #16269 for the full analysis. The git/rustc CPU issues you mention may be separate problems, but the RAM explosion is very likely this.
Activity
github-actions commentedon Feb 16, 2026
This issue appears to be a duplicate of existing critical memory and performance issues that the team is actively working on:
Potential Duplicates:
Your symptoms (RAM spike, git processes at 100% CPU, rustc processes spawning) are consistent with the cascading memory leak and child process management issues already documented in #13230 and #13513.
Related Issue:
The team is tracking these under the broader memory leak initiative. Consider subscribing to #13230 or #13513 for updates on the fixes (which include bounding child processes, implementing LSP diagnostics eviction, and addressing unbounded output buffers in the bash tool).
marcusquinn commentedon Mar 6, 2026
The RAM consumption you're seeing (+17 GB just from starting opencode) is likely caused by bash-language-server's hardcoded
--external-sourcesflag triggering unbounded ShellCheck memory growth. We observed the exact same pattern — individual shellcheck processes growing to 3-5 GB RSS, compounding across sessions.The upstream root cause fix has been merged: bash-lsp/bash-language-server#1376 adds a
shellcheckExternalSourcesconfig option. Setting it tofalseomits--external-sourcesentirely.Immediate workaround — set this env var before running opencode:
See #16269 for the full analysis. The git/rustc CPU issues you mention may be separate problems, but the RAM explosion is very likely this.
fix: remove dead LSP clients to prevent unbounded memory growth
thdxr commentedon Apr 2, 2026
Closing in favor of #20695 where we're collecting all memory-related problems. Please follow that issue for updates.