Skip to content

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

Open
yeskunall wants to merge 1 commit intomainfrom
fix-issue-53368-4754cbd020016f2a
Open

Fix Agent Panel font size incrementing by 2px instead of 1px#53685
yeskunall wants to merge 1 commit intomainfrom
fix-issue-53368-4754cbd020016f2a

Conversation

@yeskunall
Copy link
Copy Markdown
Member

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:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Closes #53368.

Release Notes:

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

Split the shared AgentFontSize in-memory global into separate
AgentUiFontSize and AgentBufferFontSize 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.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Apr 11, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Buffer font size isn't synced properly in the Agent Panel

1 participant