# agent: Move focus to the panel after dismissing a user message edit \(\#31611\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e12106e025b3fa09bf65284e57d5cca5fab1772f

Requested commit: e12106e025b3fa09bf65284e57d5cca5fab1772f

Commit: e12106e025b3fa09bf65284e57d5cca5fab1772f

Tree: cd8a53f84aadffe43e801b5fe5fda3dc2eddca90

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Move focus to the panel after dismissing a user message edit (#31611)

Previously, when you clicked on a previous message to edit it and then
dismissed it, your focus would jump to the buffer. This caught me
several times as the most obvious place to return to for me was the
agent panel main message editor, so I can continue prompting something
else. And this is what this PR changes.

Release Notes:

- agent: Improved previous message editing UX by returning focus to the
main panel's text area after dismissing it.
```

## Parents

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

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