Skip to content

agent_ui: Allow selection of commands from tool calls - #50545

Merged
tomhoule merged 1 commit into
mainfrom
fix-issue-50427-2a2462291680b84f
Apr 24, 2026
Merged

agent_ui: Allow selection of commands from tool calls#50545
tomhoule merged 1 commit into
mainfrom
fix-issue-50427-2a2462291680b84f

Conversation

@yeskunall

@yeskunall yeskunall commented Mar 3, 2026

Copy link
Copy Markdown
Member

Closes #50427.

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

The changes respect your current theme + mimic the existing UI when it comes to font size+weight.

image
zed.2026-03-02.19.15.48.mp4

Release Notes:

  • Allow selection of commands from tool calls

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Mar 3, 2026
@yeskunall
yeskunall marked this pull request as draft March 3, 2026 00:13
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Mar 3, 2026
}
}

pub fn with_buffer_font(mut self, cx: &App) -> Self {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@yeskunall yeskunall self-assigned this Mar 3, 2026
@yeskunall
yeskunall marked this pull request as ready for review March 3, 2026 00:24
@tomhoule
tomhoule force-pushed the fix-issue-50427-2a2462291680b84f branch 2 times, most recently from 133c217 to f1a4e20 Compare April 24, 2026 12:58
@tomhoule

Copy link
Copy Markdown
Contributor

I rebased this and did a round of manual testing. As far as I can tell it's working great!

@tomhoule
tomhoule force-pushed the fix-issue-50427-2a2462291680b84f branch from f1a4e20 to 9a83a0b Compare April 24, 2026 13:29
@tomhoule
tomhoule added this pull request to the merge queue Apr 24, 2026
Merged via the queue into main with commit 280f8b1 Apr 24, 2026
31 checks passed
@tomhoule
tomhoule deleted the fix-issue-50427-2a2462291680b84f branch April 24, 2026 13:57
@zed-zippy zed-zippy Bot added the PR state:needs review Used to label PRs that are in need of a post-merge approval label Apr 24, 2026
@tredondo

Copy link
Copy Markdown
Contributor

Thanks @tomhoule ! Did this make it into v0.233.10+stable.250.350f33871e84d5ed83a403523e9490b9bf014a94? I still can't select text from agent tool call blocks.

@MrSubidubi

Copy link
Copy Markdown
Member

@zed-industries/approved

@tredondo It did not make the stable cut

@zed-zippy zed-zippy Bot removed the PR state:needs review Used to label PRs that are in need of a post-merge approval label Apr 29, 2026
ebaah46 pushed a commit to ebaah46/zed that referenced this pull request May 6, 2026
…#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
kathbigra pushed a commit to kathbigra/zed that referenced this pull request May 10, 2026
…#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
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…#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
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.

Can't copy text from shell commands in the Agent Panel

4 participants