GeezerVison is showing github.com — [BUG]: bash tool memory leak · Issue #21319 · anomalyco/opencode
[BUG]: bash tool memory leak #21319
Labels
bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)perfIndicates a performance issue or need for optimization Description
Description
The bash tool has a memory leak.
Plugins
No response
OpenCode version
dev branch
Steps to reproduce
release resource correctly
Screenshot and/or share link
Operating System
No response
Terminal
No response
Activity
added
coreAnything pertaining to core functionality of the application (opencode server stuff) perfIndicates a performance issue or need for optimization on Apr 7, 2026github-actions commented on Apr 7, 2026
This issue might be a duplicate of existing issues. Please check:
- Memory Megathread #20695: Memory Megathread — there is an active centralized issue tracking memory problems. The maintainers are requesting heap snapshots to trace and fix memory issues. Please consider following the instructions there (running with
OPENCODE_AUTO_HEAP_SNAPSHOT=1 or using ctrl+p → heap snapshot) and adding your findings as a comment on that thread.
- High disk writes and memory spike during long opencode sessions on macOS #14876: High disk writes and memory spike during long opencode sessions — similar memory growth symptom.
If your issue is specifically about the bash tool leaking memory, it would be very helpful to provide a heap snapshot as described in #20695.
changed the title
[-]memory leak[/-] [+][BUG]: bash tool memory leak[/+] on Apr 7, 2026
Metadata
Metadata
bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)perfIndicates a performance issue or need for optimization Development
No branches or pull requestsIssue actions