Skip to content

Fix defterm in wake of auto-elevation#12272

Merged
3 commits merged intomainfrom
dev/migrie/b/12267-i-broke-defterm
Jan 27, 2022
Merged

Fix defterm in wake of auto-elevation#12272
3 commits merged intomainfrom
dev/migrie/b/12267-i-broke-defterm

Conversation

@zadjii-msft
Copy link
Member

There are a couple places where we now bail immediately on startup, if we think the window is going to get created without any tabs. We do that to prevent a blank window from flashing on the screen when launching auto-elevate profiles. Unfortunately, those broke defterm in a particularly hard to debug way. In the defterm invocation, there actually aren't any tabs when the app completes initialization. We use the initialization to actually accept the defterm handoff. So what would happen is that the window would immediately close itself gracefully, never accepting the handoff.

In my defense, #8514, the original auto-elevated PR, predates defterm merging (906edf7) by a few months, so I totally forgot to test this when rolling it into the subsequent iterations of that PR.

Includes a semi-related code fix to #10922 to make that quieter. That is perpetually noisy, and when trying to debug defterm, you've only got about 30s to do that before it bails, so the sxe eh breaks in there are quite annoying.

  We're still hanging, then just dying "gracefully" on startup. More investigation needed.
  Seriously this just needs to be in main
@ghost ghost added Area-DefApp Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-0 Bugs that we consider release-blocking/recall-class (P0) Product-Terminal The new Windows Terminal. labels Jan 27, 2022
Copy link
Member

@miniksa miniksa left a comment

Choose a reason for hiding this comment

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

Great find. Looks good to me. Sorry we got in each other's way on this one.

@zadjii-msft zadjii-msft added the Needs-Second It's a PR that needs another sign-off label Jan 27, 2022
@DHowett
Copy link
Member

DHowett commented Jan 27, 2022

@msftbot merge this in 1 minute

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jan 27, 2022
@ghost
Copy link

ghost commented Jan 27, 2022

Hello @DHowett!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Thu, 27 Jan 2022 23:29:53 GMT, which is in 1 minute

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@ghost ghost merged commit 48d79c7 into main Jan 27, 2022
@ghost ghost deleted the dev/migrie/b/12267-i-broke-defterm branch January 27, 2022 23:31
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-DefApp AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Second It's a PR that needs another sign-off Priority-0 Bugs that we consider release-blocking/recall-class (P0) Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DefTerm handoff does not work in NON glomming mode

3 participants