workspace: Fix panic when discarding a draft workspace (#60279)

To reproduce:

1. Open a git project with the agent sidebar, ideally with no other
threads in the sidebar.
2. Create a thread in a new git worktree and type into it without
sending.
3. While still in that worktree workspace, hit New Thread. The parked
draft must now be the last activatable entry in the sidebar.
4. Hover the parked draft → click Discard Draft
5. 💥

Release Notes:

- Fixed a panic when discarding a draft workspace.
7eb4cb2bfaSmit Barmase committed on 7/2/2026, 1:13:46 PM· committed by GitHubparent969c6c7
2 files changedLine totals unavailable