fix: Event listener leaks in TUI and Slack bot #9425

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

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

Originally assigned to: @rekram1-node on GitHub.

The TUI sync context and Slack bot register SDK event listeners that are never removed on unmount/disconnect, causing event listener accumulation over time.

Expected: Event listeners are removed when components unmount or bots disconnect.
Actual: Listeners accumulate, potentially degrading performance in long-running sessions.

Originally created by @sauerdaniel on GitHub (Feb 15, 2026). Originally assigned to: @rekram1-node on GitHub. The TUI sync context and Slack bot register SDK event listeners that are never removed on unmount/disconnect, causing event listener accumulation over time. **Expected:** Event listeners are removed when components unmount or bots disconnect. **Actual:** Listeners accumulate, potentially degrading performance in long-running sessions.
yindo added the perf label 2026-02-16 18:12:25 -05:00
yindo closed this issue 2026-02-16 18:12:25 -05:00
Author
Owner

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

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

  • #13778: SDK event listeners not cleaned up on TUI unmount (nearly identical issue)

You may also want to review these related memory management issues:

  • #13777: Memory leaks in OAuth transport and missing process cleanup on exit
  • #13776: Memory leak in ACP session event streams
  • #13774: Timeout, interval, and subscription leaks in memory management
@github-actions[bot] commented on GitHub (Feb 15, 2026): This issue might be a duplicate of existing issues. Please check: - #13778: SDK event listeners not cleaned up on TUI unmount (nearly identical issue) You may also want to review these related memory management issues: - #13777: Memory leaks in OAuth transport and missing process cleanup on exit - #13776: Memory leak in ACP session event streams - #13774: Timeout, interval, and subscription leaks in memory management
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#9425