Move threads sidebar into agent panel (#51241)

* [x] Put back persistence of sidebar open state
* [x] when agent panel is docked right, put sidebar on the right side
* [x] remove stale entries from `SidebarsByWindow`

Release Notes:

- N/A

---------

Co-authored-by: Eric Holk <eric@zed.dev>
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
Co-authored-by: Anthony Eid <hello@anthonyeid.me>
b5666319b4Max Brunsfeld committed on 3/11/2026, 6:45:55 AM· committed by GitHubparentf0e301c
22 files changedLine totals unavailable