agent_ui: Truncate long model names in config option selector - #57808
Merged
danilo-leal merged 2 commits intoJun 14, 2026
Conversation
Long model identifiers (e.g., AWS Bedrock ARNs) overflow the bottom toolbar, breaking the layout. Truncate display names to 32 characters with an ellipsis when they exceed 33 characters.
|
We require contributors to sign our Contributor License Agreement, and we don't have @Bitaru 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'. |
Contributor
Author
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
danilo-leal
enabled auto-merge
June 14, 2026 11:22
This was referenced Jun 18, 2026
Closed
This was referenced Jul 1, 2026
This was referenced Jul 10, 2026
jolutz
pushed a commit
to jolutz/zed
that referenced
this pull request
Aug 8, 2026
…dustries#57808) Long model identifiers (e.g., AWS Bedrock ARNs) overflow the bottom toolbar, breaking the layout. Truncate display names to 32 characters with an ellipsis when they exceed 33 characters. ### Before <img width="1128" height="308" alt="after" src="https://github.com/user-attachments/assets/000d5959-3bd5-4349-8f4e-09967ea7b2d8" /> ### After <img width="1010" height="212" alt="before" src="https://github.com/user-attachments/assets/358fff8c-3bce-43ac-aed4-8ef630fc327b" /> 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 Release Notes: - Agent: Improved truncation of long configuration button labels for external agents. Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Long model identifiers (e.g., AWS Bedrock ARNs) overflow the bottom toolbar, breaking the layout. Truncate display names to 32 characters with an ellipsis when they exceed 33 characters.
Before
After
Self-Review Checklist:
Release Notes: