# assistant2: Use composer for editing inline messages \(\#11222\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f11a7811f363d7c69b54e934be5cdc179581053d

Requested commit: f11a7811f363d7c69b54e934be5cdc179581053d

Commit: f11a7811f363d7c69b54e934be5cdc179581053d

Tree: efb533960611f664c6e0de23fddc6f3639f24642

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant2: Use composer for editing inline messages (#11222)

This PR updates the assistant to render historical user messages the
same as ones from the assistant.

Double-clicking on a message will open a composer inline for editing.
Pressing `Esc` will cancel the edit.

We don't yet restore the previous state of the message upon canceling.

<img width="401" alt="Screenshot 2024-04-30 at 4 04 01 PM"
src="https://github.com/zed-industries/zed/assets/1486634/5f253fa8-6578-4054-be30-c495e326d700">

<img width="401" alt="Screenshot 2024-04-30 at 4 04 28 PM"
src="https://github.com/zed-industries/zed/assets/1486634/edf25cea-d97e-44d2-8772-3690eac017a4">


Release Notes:

- N/A
```

## Parents

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

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