Daniel Sauer
Daniel Sauer
## Summary Fix memory leak in the TUI App component where SDK event listeners (onStdout, onStderr, onMessage, onFinished) are never unsubscribed. ## Problem In `packages/tui/src/app.tsx`, the `useEffect` hook sets up...
## Problem Several internal caches in OpenCode use standard `Map` objects without size limits. Over long-running sessions, these caches can grow without bound, contributing to memory issues like those reported...
## Problem The TUI `App` component subscribes to 6 SDK events but never unsubscribes from them: - `TuiEvent.CommandExecute` - `TuiEvent.ToastShow` - `TuiEvent.SessionSelect` - `SessionApi.Event.Deleted` - `SessionApi.Event.Error` - `Installation.Event.UpdateAvailable` The `sdk.event.on()`...
## Problem When an LSP client shuts down, the `diagnostics` Map and `files` object are not cleared in the `shutdown()` method of `LSPClient`. This can cause: 1. **Memory retention** -...
## Summary Add proper cleanup for MCP (Model Context Protocol) OAuth transports and process lifecycle management to prevent resource leaks. Fixes #9153 Relates to #5363 ## Problem When MCP OAuth...
## Summary Properly clean up LSP client resources when the underlying LSP server process disconnects or exits. Fixes #9143 Relates to #5363 ## Problem When an LSP client shuts down,...
## Summary Add proper cleanup for ACP (Agent Communication Protocol) sessions to prevent resource leaks from orphaned sessions. Fixes #9154 Relates to #5363 ## Problem When ACP sessions are created:...
## Summary Complete the Instance disposal chain to ensure plugins and cached resources are properly cleaned up when instances are disposed. Fixes #9157 Depends on #9141 (LRU cache utility) >...
## Summary Fix various small memory leaks from uncleaned timeouts, intervals, and event subscriptions across the codebase. Fixes #9156 ## Problems ### 1. WebFetch Timeout (`webfetch.ts`) When fetch throws an...
## Summary Fix memory leaks from event listeners not being properly cleaned up in TUI components and the Slack bot. Fixes #9155 ## Problems ### 1. TUI Sync Context (`sync.tsx`)...