LSPs keep accumulating, how do I remove them? #3609

Open
opened 2026-02-16 17:40:51 -05:00 by yindo · 3 comments
Owner

Originally created by @mrexodia on GitHub (Dec 16, 2025).

Originally assigned to: @rekram1-node on GitHub.

Question

I have been working in the same workspace across different sessions for a while and the amount of LSPs keeps increasing:

Image

How do I get rid of old ones? The documentation was rather unclear on where they are stored and clearing the session doesn't remove them.

Originally created by @mrexodia on GitHub (Dec 16, 2025). Originally assigned to: @rekram1-node on GitHub. ### Question I have been working in the same workspace across different sessions for a while and the amount of LSPs keeps increasing: <img width="305" height="312" alt="Image" src="https://github.com/user-attachments/assets/4abb464a-bb55-4b20-883b-bad591e22482" /> How do I get rid of old ones? The documentation was rather unclear on where they are stored and clearing the session doesn't remove them.
yindo added the docs label 2026-02-16 17:40:51 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 16, 2025):

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

  • #3526: Performance issue: session-child-cycle becomes extremely slow with many sessions

The issue you're experiencing with LSPs accumulating over time in the same workspace is related to how sessions persist. Session #3526 discusses performance degradation when workspaces have many sessions. While not directly about LSP cleanup, managing old sessions may help reduce accumulated LSPs.

Feel free to ignore if these don't address your specific case.

@github-actions[bot] commented on GitHub (Dec 16, 2025): This issue might be a duplicate of existing issues. Please check: - #3526: Performance issue: session-child-cycle becomes extremely slow with many sessions The issue you're experiencing with LSPs accumulating over time in the same workspace is related to how sessions persist. Session #3526 discusses performance degradation when workspaces have many sessions. While not directly about LSP cleanup, managing old sessions may help reduce accumulated LSPs. Feel free to ignore if these don't address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 17, 2025):

wdym by remove? What are you expecting to happen / want?

@rekram1-node commented on GitHub (Dec 17, 2025): wdym by remove? What are you expecting to happen / want?
Author
Owner

@mrexodia commented on GitHub (Dec 18, 2025):

I would expect that starting a new session clears the LSPs instead of accumulating more and more of them. However, after updating it looks like they are gone again. Just was a bit confused since I did not configure any of these LSPs myself and I couldn't find where they were stored...

@mrexodia commented on GitHub (Dec 18, 2025): I would expect that starting a new session clears the LSPs instead of accumulating more and more of them. However, after updating it looks like they are gone again. Just was a bit confused since I did not configure any of these LSPs myself and I couldn't find where they were stored...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3609