# agent_ui: Make provider-owned terminals read-only \(\#64550\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ca49b5dac8178e87eed4b6af55ebcac73c6d1677

Requested commit: ca49b5dac8178e87eed4b6af55ebcac73c6d1677

Commit: ca49b5dac8178e87eed4b6af55ebcac73c6d1677

Tree: d2c48478f7d219e4f954b582934d6c0d290995a6

Author: Ben Brandt

Committer: GitHub

## Message

```
agent_ui: Make provider-owned terminals read-only (#64550)

Make provider-owned terminal cards read-only for user input while
preserving local inspection. This builds on the explicit terminal
ownership introduced in #64544.

- Add a construction-time `TerminalView::with_read_only` option,
selected from ACP process ownership rather than PTY presence. Existing
views remain interactive by default, including client-owned headless
terminals.
- Reject typing, send actions, paste, file/path drops, IME input,
clear/rerun actions, and focus reports in read-only views.
- Preserve selection, copying, links, scrolling, search, and local Vi
navigation. Leaving Vi mode does not enable terminal input.
- Pass an explicit mouse-routing policy to the existing lower terminal
handlers so provider-requested mouse and alternate-scroll modes cannot
consume inspection gestures. Real modifiers remain unchanged, and
Linux/FreeBSD middle-click paste is suppressed.

Release Notes:

- N/A
```

## Parents

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

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