# settings_ui: Fix env var name input for local MCPs \(\#59690\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e8e479c3c59376c01b03956939458b56a50819a8

Requested commit: e8e479c3c59376c01b03956939458b56a50819a8

Commit: e8e479c3c59376c01b03956939458b56a50819a8

Tree: e00e1ad21fad8c851be6cf773a5b203f03958b61

Author: Tom Houlé

Committer: GitHub

## Message

```
settings_ui: Fix env var name input for local MCPs (#59690)

I wanted to add env vars to a local MCP server from the settings UI, and
notices the variable name input does not work. This fixes it.

The key input was wrapped in `div().flex_1().min_w_0()` while the value
was rendered directly. A single-line editor asks for `width: 100%`,
which needs a parent with a definite width to resolve against;
`flex-basis: 0` together with `min-width: 0` collapses that width to
zero, and a zero-width editor paints no hitbox and so never receives
focus or input. Removing the wrapper so the key renders like the value
(matching the equivalent inputs on the external agents form) fixes it.
The key/value section is shared, so this also restores header editing
for remote servers, not just env vars for local ones.

Current Nightly:


https://github.com/user-attachments/assets/f6419785-69e4-482d-9cd5-3e60abafb431

This branch:


https://github.com/user-attachments/assets/b9a85be5-208c-4779-9b48-154f08c7fd04

Release Notes:

- N/A
```

## Parents

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

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