# agent: Fix panic when opening Agent diff from the workspace \(\#28132\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4bcd37a5371ab14387a57b8cda5905018799df36)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4bcd37a5371ab14387a57b8cda5905018799df36

Requested commit: 4bcd37a5371ab14387a57b8cda5905018799df36

Commit: 4bcd37a5371ab14387a57b8cda5905018799df36

Tree: ccb073226d5a038f58401f38de0ea0ae5e7fc8da

Author: Marshall Bowers

Committer: GitHub

## Message

```
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.
```

## Parents

- [e3d212ac60822df55ef9f2ba6fe6651392c33d09](https://git.cafe/gitcafe/zed/commit/e3d212ac60822df55ef9f2ba6fe6651392c33d09?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4bcd37a5371ab14387a57b8cda5905018799df36?format=markdown)
