agent: Fix double-lease panic when clicking on thread to jump (#34843)

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
3e50d997ddPiotr Osiewicz committed on 7/21/2025, 6:44:45 PM· committed by GitHubparentda8bf9a
1 file changedLine totals unavailable