# agent_ui: Clear original agent prompt when creating a new worktree \(\#51839\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7b9df57a354b31f10fdeee25e643d47da65dadc8

Requested commit: 7b9df57a354b31f10fdeee25e643d47da65dadc8

Commit: 7b9df57a354b31f10fdeee25e643d47da65dadc8

Tree: f2a32edb862c39e3b3953f85e3aa948f100663b9

Author: Anthony Eid

Committer: GitHub

## Message

```
agent_ui: Clear original agent prompt when creating a new worktree (#51839)

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A
```

## Parents

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

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