agent_ui: Allow selection of commands from tool calls - #50545
Conversation
| } | ||
| } | ||
|
|
||
| pub fn with_buffer_font(mut self, cx: &App) -> Self { |
There was a problem hiding this comment.
Didn’t notice an existing helper for this combo and also didn’t like writing isolated styles like that. The MarkdownStyle::themed() always uses the UI font for base text and the buffer font settings in themed() are only applied to the code_block style, not to paragraph text.
The following is from Opus 4.6:
The manual code is needed because of a GPUI quirk: font family/weight/features propagate through TextRuns (so they go on base_text_style), but font size and line height only cascade through the div tree (so they must go on container_style). That's why the overrides are split across two places.
133c217 to
f1a4e20
Compare
|
I rebased this and did a round of manual testing. As far as I can tell it's working great! |
f1a4e20 to
9a83a0b
Compare
|
Thanks @tomhoule ! Did this make it into v0.233.10+stable.250.350f33871e84d5ed83a403523e9490b9bf014a94? I still can't select text from agent tool call blocks. |
|
@zed-industries/approved @tredondo It did not make the stable cut |
…#50545) Closes zed-industries#50427. Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) The changes respect your current theme + mimic the existing UI when it comes to font size+weight. <img width="437" height="131" alt="image" src="https://github.com/user-attachments/assets/89f6c5d0-d1a3-478a-88e9-7d203240416d" /> https://github.com/user-attachments/assets/a5fb6c82-fffd-494f-a374-9296d1690736 Release Notes: - Allow selection of commands from tool calls
…#50545) Closes zed-industries#50427. Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) The changes respect your current theme + mimic the existing UI when it comes to font size+weight. <img width="437" height="131" alt="image" src="https://github.com/user-attachments/assets/89f6c5d0-d1a3-478a-88e9-7d203240416d" /> https://github.com/user-attachments/assets/a5fb6c82-fffd-494f-a374-9296d1690736 Release Notes: - Allow selection of commands from tool calls
…#50545) Closes zed-industries#50427. Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) The changes respect your current theme + mimic the existing UI when it comes to font size+weight. <img width="437" height="131" alt="image" src="https://github.com/user-attachments/assets/89f6c5d0-d1a3-478a-88e9-7d203240416d" /> https://github.com/user-attachments/assets/a5fb6c82-fffd-494f-a374-9296d1690736 Release Notes: - Allow selection of commands from tool calls
Closes #50427.
Before you mark this PR as ready for review, make sure that you have:
The changes respect your current theme + mimic the existing UI when it comes to font size+weight.
zed.2026-03-02.19.15.48.mp4
Release Notes: