sidebar: Use last used agent when creating a new thread from it (#52446)
Danilo Leal
created
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