Skip to content

Fix New worktree config clipping in tab config menu#10542

Open
SagarSDagdu wants to merge 3 commits into
warpdotdev:masterfrom
SagarSDagdu:sagar/fix-new-worktree-config-clipping
Open

Fix New worktree config clipping in tab config menu#10542
SagarSDagdu wants to merge 3 commits into
warpdotdev:masterfrom
SagarSDagdu:sagar/fix-new-worktree-config-clipping

Conversation

@SagarSDagdu
Copy link
Copy Markdown
Contributor

@SagarSDagdu SagarSDagdu commented May 9, 2026

Description

Fixes the clipping of New worktree config in the unified new-session/tab config menu opened from the horizontal tab-bar chevron.

The chevron variant used MENU_DEFAULT_WIDTH (186px) while the vertical-tab + variant already used 268px. Both branches render the same unified_new_session_menu_items, and 186px is too narrow for the longer label. Both variants now use 268px.

Linked Issue

Fixes #10269

  • The linked issue is labeled 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

Before

Screenshot 2026-05-09 at 8 40 24 AM

After

Screenshot 2026-05-09 at 8 36 16 AM

Testing

  • cargo check -p warp passes.
  • Local debug build (cargo run -p warp --bin warp-oss) launches; attached before/after screenshots of the chevron menu in horizontal-tab mode with TabConfigs enabled.

Agent Mode

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

CHANGELOG-BUG-FIX: Fix New worktree config clipping in the tab-bar new-session menu.

The horizontal tab-bar chevron menu used the 186px default width while
the vertical-tab variant used 268px. Both render the same
unified_new_session_menu_items, and 186px is too narrow for the
"New worktree config" label. Always use 268px.

Fixes warpdotdev#10269
@cla-bot cla-bot Bot added the cla-signed label May 9, 2026
@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label May 9, 2026
@SagarSDagdu SagarSDagdu marked this pull request as ready for review May 9, 2026 03:11
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 9, 2026

@SagarSDagdu

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: @warpdotdev/oss-maintainers.

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 updates the unified new-session/tab config menu to use the same 268px width for both horizontal chevron and vertical-tab entry points, which addresses clipping for the longer New worktree config label. The removed MENU_DEFAULT_WIDTH import follows from no longer using the narrower default in this path.

Concerns

  • None.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

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

Powered by Oz

@SagarSDagdu
Copy link
Copy Markdown
Contributor Author

@alokedesai could you take a look here? A very small UI change

@alokedesai alokedesai requested a review from moirahuang May 12, 2026 14:56
@alokedesai
Copy link
Copy Markdown
Member

@moirahuang mind reviewing this one? I don't have full context on why the initial change was scoped just for vertical tabs

Copy link
Copy Markdown
Contributor

@moirahuang moirahuang left a comment

Choose a reason for hiding this comment

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

thanks for making this change!

Comment thread app/src/workspace/view.rs Outdated
Comment thread app/src/workspace/view.rs Outdated
Now that both menu variants share the same width, the is_vertical_tabs
field on the ToggleNewSessionMenu action and the parameter threaded
through open_tab_configs_menu / toggle_new_session_dropdown_menu serve
no purpose. Remove them along with the redundant explanatory comment.
@SagarSDagdu SagarSDagdu requested a review from moirahuang May 13, 2026 05:20
@SagarSDagdu
Copy link
Copy Markdown
Contributor Author

@moirahuang Made the necessary changes, please re-review

Copy link
Copy Markdown
Contributor

@moirahuang moirahuang left a comment

Choose a reason for hiding this comment

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

thanks for making this change!

@moirahuang
Copy link
Copy Markdown
Contributor

@SagarSDagdu Please address the formatting CI errors and then I'll merge!

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.

New worktree config menu item is clipped

3 participants