# agent_ui: Fix panic when restoring an agent terminal in a remote project \(\#58533\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 44fb295593d5e1c10b61a64bc0be2fc43e49f5b1

Requested commit: 44fb295593d5e1c10b61a64bc0be2fc43e49f5b1

Commit: 44fb295593d5e1c10b61a64bc0be2fc43e49f5b1

Tree: 9b45dc9f60e86c23b740aa23f5f333760c175015

Author: Smit Barmase

Committer: GitHub

## Message

```
agent_ui: Fix panic when restoring an agent terminal in a remote project (#58533)

Closes FR-61

To reproduce:
- you should be on a remote project
- terminal’s working directory is set to home

Release Notes:

- Fixed a crash that could occur when restoring an agent terminal in a
remote project.
```

## Parents

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

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