# agent_ui: Restore last active agent panel entry \(\#57150\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 589dc95c87e8a39c4a7d1f146df393bd2ef6d639

Requested commit: 589dc95c87e8a39c4a7d1f146df393bd2ef6d639

Commit: 589dc95c87e8a39c4a7d1f146df393bd2ef6d639

Tree: 59992ca40d0cd678b1f51ad648142ec93d6f1291

Author: Ben Brandt

Committer: GitHub

## Message

```
agent_ui: Restore last active agent panel entry (#57150)

Makes sure we can reload the last terminal, and also keeps track more
globally what your last agent type was so we can carry that over to new
workspaces

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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