agent: Fix race-condition for LSP tool registration (#56044)

This fixes a race condition where the thread would not get the LSP tools
at startup if the feature flag was not resolved yet.
We now always add the tools, but filter them out when we start a new
turn if the feature flag is not set.

Release Notes:

- N/A
7556cf8cedBennet Bo Fenner committed on 5/7/2026, 1:47:13 PM· committed by GitHubparentbd2fb74
2 files changedLine totals unavailable