opencode icon indicating copy to clipboard operation
opencode copied to clipboard

LSPs keep accumulating, how do I remove them?

Open mrexodia opened this issue 1 month ago • 3 comments

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.

mrexodia avatar Dec 17 '25 03:12 mrexodia

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] avatar Dec 17 '25 03:12 github-actions[bot]

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

rekram1-node avatar Dec 18 '25 02:12 rekram1-node

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 avatar Dec 19 '25 00:12 mrexodia