# agent: Make the panel's textarea font size be controlled by \`buffer_font_size\` \(\#38726\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3cf6fa8f61a5b99bc02276564658534e57e67113

Requested commit: 3cf6fa8f61a5b99bc02276564658534e57e67113

Commit: 3cf6fa8f61a5b99bc02276564658534e57e67113

Tree: 78c705e5abb65bda2db1de73a4f6837b32d8aebd

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Make the panel's textarea font size be controlled by `buffer_font_size` (#38726)

Closes https://github.com/zed-industries/zed/issues/37882

Previously, every piece of text in the agent panel was controlled by
`agent_font_size`. Although it is nice to only have one setting to tweak
that, it could be a bit misleading particularly because we use
monospaced and sans-serif fonts for different elements in the panel. Any
editor/textarea in the panel, whehter it is the main message editor or
the previous message editor, uses the buffer font. Therefore, I think it
is reasonable to expect that tweaking `buffer_font_size` would also
change the agent panel's usage of buffer fonts.

With this change, regular buffers and the agent panel's message editor
will always have the same size.

Release Notes:

- agent: Made the agent panel's textarea font size follow the font size
of regular buffers. They're now both controlled by the
`buffer_font_size` setting.
```

## Parents

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

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