sidebar: Use last used agent when creating a new thread from it (#52446)

The "new thread" buttons as well as the `cmd-n` keybinding were
resetting the agent to the Zed one instead of following the agent
panel's behavior to use whatever agent was recently selected, as per the
key-value store.

Release Notes:

- N/A
8315950982Danilo Leal committed on 3/25/2026, 10:19:41 PM· committed by GitHubparente061fba
1 file changedLine totals unavailable