Skip to content

Add agent panel font family settings - #59629

Merged
MrSubidubi merged 2 commits into
zed-industries:mainfrom
lholden:agent-panel-font-family-settings
Jul 27, 2026
Merged

Add agent panel font family settings#59629
MrSubidubi merged 2 commits into
zed-industries:mainfrom
lholden:agent-panel-font-family-settings

Conversation

@lholden

@lholden lholden commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Objective:

Allow users to configure the font families used by agent panel content separately from the main UI and buffer fonts.

Solution:

  • Add agent_ui_font_family for agent responses in the agent panel.
  • Add agent_buffer_font_family for the agent panel message editor and user messages.
  • Keep context menus on the primary UI font family.
  • Document the new settings and expose them in the settings UI.

Testing:

  • Ran cargo fmt.
  • Ran cargo check -p settings_content -p theme_settings -p markdown -p agent_ui -p settings_ui -p ui.
  • Ran git diff --check.
  • Manually tested the agent panel font behavior in a dev build.

Release Notes:

  • Added settings for configuring agent panel UI and buffer font families.

@cla-bot

cla-bot Bot commented Jun 20, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @lholden on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Jun 20, 2026
@lholden

lholden commented Jun 20, 2026

Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 20, 2026
@cla-bot

cla-bot Bot commented Jun 20, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

@lholden
lholden force-pushed the agent-panel-font-family-settings branch from fb944f3 to 9657774 Compare June 20, 2026 18:42
@MrSubidubi

Copy link
Copy Markdown
Member

Thanks for this!

Unfortunately, I will close this at this time: Please see our repository contribution guidelines for more context, but I think this PR would warrant a discussion first - code-wise this looks very good, but for the configuration this adds, we'd first like to see whether there is actual demand for this, which (at least so far) does not seem to be the case.

Will close with this, but feel free to open a discussion/find and link one and we might eventually go with this. Thanks!

@MrSubidubi MrSubidubi closed this Jun 21, 2026
@lholden

lholden commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Unfortunately, I will close this at this time: Please see our repository contribution guidelines for more context, but I think this PR would warrant a discussion first - code-wise this looks very good, but for the configuration this adds, we'd first like to see whether there is actual demand for this, which (at least so far) does not seem to be the case.

I understand, if unfortunate. This has been one of those things I've been wanting for a while. I generally like having a monospace font for my agents output, but right now in Zed the only way to do so at present is to set the entire UI to using a monospace font... which looks bad.

But I can add/find a feature request in the discussions.

@lholden

lholden commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Please see these following existing discussions:

#55433 <-- agent font face
#56450 <-- user input font face

Thanks!

@MrSubidubi MrSubidubi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is enough traction for me to warrant this and we also have it for the markdown preview nowadays, so let's go with it. Thank you!

@MrSubidubi
MrSubidubi enabled auto-merge July 27, 2026 10:25
@MrSubidubi
MrSubidubi added this pull request to the merge queue Jul 27, 2026
Merged via the queue into zed-industries:main with commit 1ca8f83 Jul 27, 2026
36 checks passed
@0arm

0arm commented Jul 27, 2026

Copy link
Copy Markdown

@MrSubidubi this PR has a regression:

image

The ui elements use the same font size as the agent response font size. When they should actually follow the global ui font size for consistency. It doesn't make sense why these drop-downs should become bigger, when the point of the PR is to change the font and size of the agent responses.

The pr also does not let us set a monospaced font for inline code.

I believe #61672 takes both of these issues into consideration.

Would you like me to make a PR fixing this, I could also just redo my other PR with a tighter scope focusing just on the agent panel fonts.

@MrSubidubi

Copy link
Copy Markdown
Member

@0arm Thanks for spotting this, feel free to open a follow-up PR

jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
Objective:

Allow users to configure the font families used by agent panel content
separately from the main UI and buffer fonts.

Solution:

- Add `agent_ui_font_family` for agent responses in the agent panel.
- Add `agent_buffer_font_family` for the agent panel message editor and
user messages.
- Keep context menus on the primary UI font family.
- Document the new settings and expose them in the settings UI.

Testing:

- Ran `cargo fmt`.
- Ran `cargo check -p settings_content -p theme_settings -p markdown -p
agent_ui -p settings_ui -p ui`.
- Ran `git diff --check`.
- Manually tested the agent panel font behavior in a dev build.

Release Notes:

- Added settings for configuring agent panel UI and buffer font
families.

Co-authored-by: Finn Evers <finn@zed.dev>
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 first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants