# acp: Stay in edit mode when current completion ends \(\#36413\) · gitcafe/zed

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

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

Visibility: public

Requested revision: db31fa67f301b0b22f029e455ddad86b28b28371

Requested commit: db31fa67f301b0b22f029e455ddad86b28b28371

Commit: db31fa67f301b0b22f029e455ddad86b28b28371

Tree: 916bc2e12807c3973f6bc6d0575f0f71eb0cdcb0

Author: Agus Zubiaga

Committer: GitHub

## Message

```
acp: Stay in edit mode when current completion ends (#36413)

When a turn ends and the checkpoint is updated, `AcpThread` emits
`EntryUpdated` with the index of the user message. This was causing the
message editor to be recreated and, therefore, lose focus.

Release Notes:

- N/A
```

## Parents

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

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