Preserve selected agent when starting thread in new worktree (#51628)

When the user selected a custom agent (e.g. Codex) and chose "Start
Thread in New Worktree", the new workspace's panel ignored the selection
and defaulted to Zed Agent (NativeAgent).

The fix captures `self.selected_agent()` in
`handle_worktree_creation_requested` before the async task, passes it
through to `setup_new_workspace`, and forwards it to `external_thread`
instead of `None`.

Closes AI-84

(No release notes because it's still feature-flagged.)

Release Notes:

- N/A
c17bc26b3aRichard Feldman committed on 3/16/2026, 9:10:50 PM· committed by GitHubparent9386e20
1 file changedLine totals unavailable