agent: Fix panic when opening Agent diff from the workspace (#28132)

This PR fixes a panic that could occur when opening the Agent diff from
the workspace (with the agent panel closed).

Release Notes:

- agent: Fixed a panic when running the `agent: open agent diff` command
with the Agent Panel closed.
4bcd37a537Marshall Bowers committed on 4/4/2025, 11:09:52 PM· committed by GitHubparente3d212a
2 files changedLine totals unavailable