Skip to content

Fix file picker truncating paths within available width#9885

Merged
vorporeal merged 1 commit intowarpdotdev:masterfrom
bradleyjames:brad/BRAD-file-picker
May 5, 2026
Merged

Fix file picker truncating paths within available width#9885
vorporeal merged 1 commit intowarpdotdev:masterfrom
bradleyjames:brad/BRAD-file-picker

Conversation

@bradleyjames
Copy link
Copy Markdown
Contributor

@bradleyjames bradleyjames commented May 2, 2026

The file picker capped combined filename + path length at 55 characters, leaving significant horizontal space unused in wider popovers. Drops that cap for the command palette file picker and switches the path text to render a leading (instead of a fade) when overflow does happen.

Also fixes a latent paint bug in Start + Ellipsis text clipping: the ellipsis-reservation shifted glyphs leftward without compensating their origin, so the leftmost visible glyph overlapped the ellipsis at the same x. Adds regression-protection unit tests for the start-clipping paint path.

Fixes #8709

Description

What is a design buddy?

Linked Issue

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Screenshots / Videos

Screenshot_redacted_2

Testing

Look at the PR.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

Used claude code.

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 2, 2026

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Brad Reynolds.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email [email protected]
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label May 2, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 2, 2026

@bradleyjames

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I reviewed this pull request and requested human review from: @vorporeal.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR removes the command palette file picker's fixed combined name/path cap, changes overflowed path text to leading ellipsis clipping, and adjusts start-ellipsis glyph painting in WarpUI.

Concerns

  • The new unit test documents that the test FontDB gives the ellipsis a zero-width advance, so it does not exercise the newly added nonzero ellipsis offset path.

Verdict

Found: 0 critical, 0 important, 1 suggestions

Approve with nits

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

&mut scene,
);

// The platform test FontDB returns `glyph_advance == 0` for the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 [SUGGESTION] Because the test FontDB makes ellipsis_width zero, this regression test never executes the new start_ellipsis_offset = ellipsis_width path; use a nonzero ellipsis advance or a smaller unit seam so it fails without the production fix.

@oz-for-oss oz-for-oss Bot requested a review from vorporeal May 2, 2026 03:47
Copy link
Copy Markdown
Contributor

@vorporeal vorporeal left a comment

Choose a reason for hiding this comment

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

looks way better. thanks for the fix!

@vorporeal
Copy link
Copy Markdown
Contributor

@bradleyjames you'll need to modify your commit (and re-push it) so the author information matches your github account, and then sign our CLA - this is a requirement for us to accept contributions.

you can use the following to do so:

git commit --amend --author="New Name <[email protected]>" --no-edit

where [email protected] is an email address associated with your GitHub account.

The file picker capped combined filename + path length at 55 characters,
leaving significant horizontal space unused in wider popovers. Drops
that cap for the command palette file picker and switches the path text
to render a leading `…` (instead of a fade) when overflow does happen.

Also fixes a latent paint bug in `Start + Ellipsis` text clipping: the
ellipsis-reservation shifted glyphs leftward without compensating their
origin, so the leftmost visible glyph overlapped the ellipsis at the
same x. Adds regression-protection unit tests for the start-clipping
paint path.

Fixes warpdotdev#8709
@bradleyjames bradleyjames force-pushed the brad/BRAD-file-picker branch from 21c4293 to 085f8da Compare May 5, 2026 01:21
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 5, 2026

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @bradleyjames on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@bradleyjames
Copy link
Copy Markdown
Contributor Author

@vorporeal , done

@vorporeal
Copy link
Copy Markdown
Contributor

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label May 5, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 5, 2026

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

@vorporeal vorporeal merged commit 1d1c06d into warpdotdev:master May 5, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File chooser doesn't use available space

2 participants