# agent_ui: Surface pending tool call permission when scrolled out of view \(\#57632\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7ef1fa13809ea1fd018b76eceb693151bedda6cc

Requested commit: 7ef1fa13809ea1fd018b76eceb693151bedda6cc

Commit: 7ef1fa13809ea1fd018b76eceb693151bedda6cc

Tree: fd79c89c9db5ac3b194b8d198c2f377ea4b82ca8

Author: Smit Barmase

Committer: GitHub

## Message

```
agent_ui: Surface pending tool call permission when scrolled out of view (#57632)

Closes #53266

When a tool call awaiting permission is below the viewport, it’s easy to
miss why the agent has stopped working. This PR adds a floating row at
the bottom of the panel that mirrors the pending permission request.

It reuses the same permission prompt, so you can allow or deny it and
see the raw input without scrolling to the end of the thread. It offers
a "Scroll to" button to jump back to the inline prompt in the thread.
Once the inline prompt is in view, the floating row disappears. If
multiple tool calls need permission, including a subagent’s, they’re
shown one at a time so rows don’t stack on top of each other.

<img width="508" height="181" alt="image"
src="https://github.com/user-attachments/assets/7d5fedd6-bc4d-4674-8ea2-5c8f2ed3aff6"
/>

Release Notes:

- Improved visibility of pending tool call confirmations in the Agent
Panel when its scrolled out of view.

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
```

## Parents

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

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