| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Sorry, something went wrong.
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate PRs Found
These PRs appear to target the same memory leak issues, particularly around TUI event listener cleanup. Review their implementation status to ensure no duplicated work. |
Sorry, something went wrong.
|
Rebased onto latest dev and resolved merge conflicts.\n\nChanges:\n- tooltip.tsx: Added imports (children, onCleanup, onMount) and event listener cleanup logic\n- sync.tsx: Auto-merged successfully\n- slack/index.ts: Auto-merged successfully\n\nAll typechecks pass. Ready for review. |
Sorry, something went wrong.
|
Status update: implementation is complete and linked issue coverage remains intact (Fixes #9155). Current blocker is CI only:
No new code changes pending on this PR right now. |
Sorry, something went wrong.
Clean up SDK event listeners on unmount in TUI sync context and improve Slack bot session management to prevent leaks. TUI changes (sync.tsx): - Store unsubscribe function from sdk.event.listen() - Call unsubscribe in onCleanup handler Slack changes: - Add lastUsed timestamp to sessions - Add periodic cleanup of old sessions (1 hour timeout) - Add graceful shutdown handlers for SIGINT/SIGTERM - Limit max sessions to prevent unbounded growth
|
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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)
The sdk.event.listen() call sets up event listeners but the returned unsubscribe function is never called.
2. Tooltip Component (tooltip.tsx)
Mouse event listeners are added to elements but never removed on component unmount.
3. Slack Bot (slack/index.ts)
Solution
TUI Sync Context
Store and call unsubscribe function in onCleanup:
Tooltip Component
Add proper cleanup in onCleanup handler.
Slack Bot
Changes
Testing
Note: Manual TUI and Slack bot testing was not performed. Memory leak verification requires runtime memory profiling.