# Fix Agent Panel font size incrementing by 2px instead of 1px \(\#53685\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9cb8d97f6119705d14b804edc6ddf54c30000b2b

Requested commit: 9cb8d97f6119705d14b804edc6ddf54c30000b2b

Commit: 9cb8d97f6119705d14b804edc6ddf54c30000b2b

Tree: dcdb2a97f6a3e653fdf0d86ab74fddc84f802632

Author: Kunall Banerjee

Committer: GitHub

## Message

```
Fix Agent Panel font size incrementing by 2px instead of 1px (#53685)

Split the shared `AgentFontSize` in-memory global into separate
`AgentBufferFontSize` and `AgentUiFontSize` globals. Previously, both
`adjust_agent_ui_font_size` and `adjust_agent_buffer_font_size` read
from and wrote to the same global, so calling them back-to-back in
`handle_font_size_action` applied the delta twice.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #53368.

Release Notes:

- Fixed Agent Panel font size incrementing by 2px instead of 1px
```

## Parents

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

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