sidebar: Fix click flicker on empty draft thread (#59342)

Closes AI-404

This PR fixes a flicker that was happening when clicking on an empty
draft thread item in the sidebar, given we were going through the whole
regular activation flow despite the thread already being active. So, the
fix here was just extracting a boolean so we can identify whether the
thread is active in the workspace and if so, not doing nothing in the
on_click handler of the thread item.

Release Notes:

- Sidebar: Fixed a flicker when clicking on an empty draft thread.
50b2f63cfeDanilo Leal committed on 6/15/2026, 9:19:16 PM· committed by GitHubparentc8faadd
1 file changedLine totals unavailable