# agent_ui: Fix scrolling in context server configuration modal \(\#42502\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b9ce52dc95697fea479c678a518f6e1d84f9cc66

Requested commit: b9ce52dc95697fea479c678a518f6e1d84f9cc66

Commit: b9ce52dc95697fea479c678a518f6e1d84f9cc66

Tree: 84ea2a85f450d69a9ef3331cca8ead89ddfe54ed

Author: R.Amogh

Committer: GitHub

## Message

```
agent_ui: Fix scrolling in context server configuration modal (#42502)

## Summary

Fixes #42342

When installing a dev extension with long installation instructions, the
configuration modal would overflow and users couldn't scroll to see the
full content or interact with buttons at the bottom.

## Solution

This PR adds a `ScrollHandle` to the `ConfigureContextServerModal` and
passes it to the `Modal` component, enabling the built-in modal
scrolling capability. This ensures all content remains accessible
regardless of length.

## Changes

- Added `ScrollHandle` import to the ui imports
- Added `scroll_handle: ScrollHandle` field to
`ConfigureContextServerModal` struct
- Initialize `scroll_handle` with `ScrollHandle::new()` when creating
the modal
- Pass the scroll handle to `Modal::new()` instead of `None`

## Testing

- Built the changes locally
- Tested with extensions that have long installation instructions
- Verified scrolling works and all content is accessible
- Confirmed no regression for extensions with short descriptions

Release Notes:

- Fixed scrolling issue in extension configuration modal when
installation instructions overflow the viewport

---------

Co-authored-by: Finn Evers <finn.evers@outlook.de>
```

## Parents

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

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