# terminal: Forward Ctrl\+V when clipboard contains images \(\#42258\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0c9992c5e9f40bac63b8a11b047b7792b6b23155

Requested commit: 0c9992c5e9f40bac63b8a11b047b7792b6b23155

Commit: 0c9992c5e9f40bac63b8a11b047b7792b6b23155

Tree: b8a8ac2530dc2f5e553cb9772b2733b767f3d1c8

Author: Kingsword

Committer: GitHub

## Message

```
terminal: Forward Ctrl+V when clipboard contains images (#42258)

When running Codex CLI, Claude Code, or other TUI agents in Zed’s
terminal, pasting images wasn’t supported — Zed
treated all clipboard content as plain text and simply pushed it into
the PTY, so the agent never saw the image data.
This change makes terminal pastes behave like they do in a native
terminal: if the clipboard contains an image, Zed now emits a raw Ctrl+V
to the PTY so the agent can read the system clipboard itself.

Release Notes:

- Fixed terminal-launched Codex/Claude sessions by forwarding Ctrl+V for
clipboard images so agents can attach them
```

## Parents

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

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