fix: Memory leak in ACP session event streams #9427

Closed
opened 2026-02-16 18:12:26 -05:00 by yindo · 2 comments
Owner

Originally created by @sauerdaniel on GitHub (Feb 15, 2026).

Originally assigned to: @rekram1-node on GitHub.

ACP session event streams are not properly closed when sessions end, causing memory to grow over time in the server process.

Expected: Event streams are cleaned up when the associated session ends.
Actual: Stream resources persist, leading to increasing memory usage.

Originally created by @sauerdaniel on GitHub (Feb 15, 2026). Originally assigned to: @rekram1-node on GitHub. ACP session event streams are not properly closed when sessions end, causing memory to grow over time in the server process. **Expected:** Event streams are cleaned up when the associated session ends. **Actual:** Stream resources persist, leading to increasing memory usage.
yindo added the perf label 2026-02-16 18:12:26 -05:00
yindo closed this issue 2026-02-16 18:12:26 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 15, 2026):

This issue might be a duplicate of an existing issue. Please check:

  • #9154: Memory leak: ACP session event streams never aborted
@github-actions[bot] commented on GitHub (Feb 15, 2026): This issue might be a duplicate of an existing issue. Please check: - #9154: Memory leak: ACP session event streams never aborted
Author
Owner

@sauerdaniel commented on GitHub (Feb 15, 2026):

Duplicate — closing in favor of the original issue.

@sauerdaniel commented on GitHub (Feb 15, 2026): Duplicate — closing in favor of the original issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9427