Repository navigation
Skip the duplicate-profile menu row when focus has no profile - #20771
Closed
Sebastien Tardif (SebTardif) wants to merge 1 commit into
Closed
Sebastien Tardif (SebTardif) wants to merge 1 commit into
Sebastien Tardif (SebTardif) wants to merge 1 commit into
Conversation
GetFocusedProfile() returns null when the focused pane is not a terminal. The context menu called Name() on that profile, so the menu threw before it opened. The rest of the menu does not need that profile. Build the "duplicate this profile" row only when a profile is present.
Member
|
I would have been much happier to reactivate your original pull request rather than have you submit two copies. Don't be an antisocial LLM weirdo. You could have just, like, asked. |
Dustin L. Howett (DHowett)
requested changes
Oct 6, 2026
Dustin L. Howett (DHowett)
left a comment
Member
There was a problem hiding this comment.
the app was not launched.
This is unacceptable. Make sure your human is following the AI usage policy on this repository. If you use drafts to work around our 2-unmerged-PR-per-contributor rule again, I'll ban your human operator.
Member
Hold up. How the hell do you click on a pane without focusing it? Is it possible that it being impossible is why we haven't gotten any reports of it? Just by chance? |
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.
Same change as #20724. That pull request stayed a draft because accounts without write access can only have two non-draft pull requests open. #20696 and #20697 were those two. #20697 has merged. #20724 was closed while it was still a draft, and GitHub refused a reopen, so this is the ready copy.
Right-clicking a terminal while focus is on a pane with no profile (snippets, settings, or markdown) threw before the context menu opened. GetFocusedProfile() returns null in that case, and the menu called Name() on it.
The duplicate-this-profile row is now built only when that profile exists. Duplicate tab, the profile list, and the other menu items are unchanged.
No existing issue turned up for this crash. #18126 reworked the pane context menu. This is the null profile on the terminal context menu.
The same file already skips a null profile before using it, at the background-image path.
Release x64 TerminalAppLib compiled, including TerminalPage.cpp. There is no unit test that builds this flyout, and the app was not launched.