[PR #13514] fix: resolve multiple memory leaks causing unbounded RAM growth #14703

Open
opened 2026-02-16 18:19:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13514

State: open
Merged: No


Bus subscriptions in share, plugin, format, and bootstrap were never unsubscribed. Compaction marked tool outputs as cleared but never actually freed the data. FileTime state had no dispose callback.

This patch stores and calls unsubscribe handles, actually clears tool output during compaction, and adds missing dispose callbacks.

Fixes #13230 #9743 #5363 #9151 #9385 #6213 #3530

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13514 **State:** open **Merged:** No --- Bus subscriptions in share, plugin, format, and bootstrap were never unsubscribed. Compaction marked tool outputs as cleared but never actually freed the data. FileTime state had no dispose callback. This patch stores and calls unsubscribe handles, actually clears tool output during compaction, and adds missing dispose callbacks. Fixes #13230 #9743 #5363 #9151 #9385 #6213 #3530
yindo added the pull-request label 2026-02-16 18:19:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14703