# agent_ui: Improve UX when pasting code into message editor \(\#45254\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 886de8f54bb8fae99a7c6215802d1714c30d4bb7

Requested commit: 886de8f54bb8fae99a7c6215802d1714c30d4bb7

Commit: 886de8f54bb8fae99a7c6215802d1714c30d4bb7

Tree: 9eaedb5f592348c67b6158292a0375b48cc26e31

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
agent_ui: Improve UX when pasting code into message editor (#45254)

Follow up to #42982

Release Notes:

- agent: Allow pasting code without formatting via ctrl/cmd-shift-v.
- agent: Fixed an issue where pasting a single line of code would always
insert an @mention
```

## Parents

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

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