Skip to content

feat: implement on-demand Chrome lifecycle and fix tab leaks#31

Merged
sonesuke merged 3 commits intomainfrom
feature/ondemand-chrome-lifecycle
Feb 21, 2026
Merged

feat: implement on-demand Chrome lifecycle and fix tab leaks#31
sonesuke merged 3 commits intomainfrom
feature/ondemand-chrome-lifecycle

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

Refactored ArxivClient to use a lazy BrowserManager that:

  1. Only launches Chrome when a search or fetch request is actually made, rather than at MCP startup.
  2. Automatically shuts down the Chrome process after 5 minutes of inactivity.
  3. Explicitly closes CdpPage tabs after they are used to prevent memory leaks during long-running server sessions.

@sonesuke sonesuke merged commit 70d5921 into main Feb 21, 2026
4 checks passed
@sonesuke sonesuke deleted the feature/ondemand-chrome-lifecycle branch February 21, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants