Set Windows Terminal preview as default terminal not working #13981

Closed
opened 2026-01-31 03:57:37 +00:00 by claunia · 10 comments
Owner

Originally created by @mveril on GitHub (May 27, 2021).

Originally assigned to: @miniksa on GitHub.

Windows Terminal version (or Windows build number)

Windows Terminal preview 1.9.1445.0

Other Software

Microsoft Windows insider preview [version 10.0.21390.1]

Steps to reproduce

  • Open Windows Terminal preview settings
  • Set Windows Terminal Preview as default terminal
  • Save change
  • Open cmd or PowerShell from the start menu

Expected Behavior

The shell should be opened inside the Windows Terminal Preview

Actual Behavior

The shell is open inside conhost

Here is the contents of my current registry corresponding to the console and terminal delegation to Windows Terminal Preview

[HKEY_CURRENT_USER\Console\%%Startup]
"DelegationConsole"="{06EC847C-C0A5-46B8-92CB-7C92F6E35CD5}"
"DelegationTerminal"="{86633F1F-6454-40EC-89CE-DA4EBA977EE2}"
Originally created by @mveril on GitHub (May 27, 2021). Originally assigned to: @miniksa on GitHub. ### Windows Terminal version (or Windows build number) Windows Terminal preview 1.9.1445.0 ### Other Software Microsoft Windows insider preview [version 10.0.21390.1] ### Steps to reproduce - Open Windows Terminal preview settings - Set Windows Terminal Preview as default terminal - Save change - Open cmd or PowerShell from the start menu ### Expected Behavior The shell should be opened inside the Windows Terminal Preview ### Actual Behavior The shell is open inside conhost Here is the contents of my current registry corresponding to the console and terminal delegation to Windows Terminal Preview ``` reg [HKEY_CURRENT_USER\Console\%%Startup] "DelegationConsole"="{06EC847C-C0A5-46B8-92CB-7C92F6E35CD5}" "DelegationTerminal"="{86633F1F-6454-40EC-89CE-DA4EBA977EE2}" ```
Author
Owner

@zadjii-msft commented on GitHub (May 27, 2021):

/feedback

@zadjii-msft commented on GitHub (May 27, 2021): /feedback
Author
Owner

@ghost commented on GitHub (May 27, 2021):

Hi there!

Can you please send us feedback with the Feedback Hub with this issue and paste the link here so we can more easily find your crash information on the back end?

Thanks!

image image

@ghost commented on GitHub (May 27, 2021): Hi there!<br><br>Can you please send us feedback with the Feedback Hub with this issue and paste the link here so we can more easily find your crash information on the back end?<br><br>Thanks!<br><br>![image](https://user-images.githubusercontent.com/18221333/62478757-b69d0d00-b760-11e9-9626-1fa33c91e7c5.png) ![image](https://user-images.githubusercontent.com/18221333/62478649-6de55400-b760-11e9-806e-5aab7e085a9f.png)
Author
Owner

@zadjii-msft commented on GitHub (May 27, 2021):

(okay I know it's not a crash, but repro'ing this with the Feedback hub should collect some information that might be useful in tracking down why defterm didn't work)

@zadjii-msft commented on GitHub (May 27, 2021): (okay I know it's not a crash, but repro'ing this with the Feedback hub _should_ collect some information that might be useful in tracking down why defterm didn't work)
Author
Owner

@mveril commented on GitHub (May 27, 2021):

Thank you for your reply.
Please find my feedback here
Just for a little more background if that can help.
When I saw the Windows Terminal preview 1.9 blogpost from @cinnamon-msft , I decided to try this feature and I set it up on my machine before upgrading to build 21390 because the terminal selector was already present in the ConHost settings and I didn't think I needed another build (I was in build 21387). After saving settings, an error message was issued (I can't remember the content sorry) and it did not work. After updating windows to build 21390 it still does not work. Maybe I broke something when I changed the default terminal on build 21387?

@mveril commented on GitHub (May 27, 2021): Thank you for your reply. Please find my feedback [here](https://aka.ms/AAcr3w6) Just for a little more background if that can help. When I saw the [Windows Terminal preview 1.9 blogpost](https://devblogs.microsoft.com/commandline/windows-terminal-preview-1-9-release) from @cinnamon-msft , I decided to try this feature and I set it up on my machine **before** upgrading to build 21390 because the terminal selector was already present in the ConHost settings and I didn't think I needed another build (I was in build 21387). After saving settings, an error message was issued (I can't remember the content sorry) and it did not work. After updating windows to build 21390 it still does not work. Maybe I broke something when I changed the default terminal on build 21387?
Author
Owner

@miniksa commented on GitHub (May 27, 2021):

It will open in conhost still if the chain activation fails into the Terminal. The registered class IDs for the chain activation are correct for Terminal Preview. For some reason, I do not have access to the feedback, so I will have to come back around to this or ask my team if they know why I cannot get access. Do note this is labeled Alpha and the amount of diagnostics I've put in so far isn't great, so you might have to hang on for a bit while I still work on it.

@miniksa commented on GitHub (May 27, 2021): It will open in `conhost` still if the chain activation fails into the Terminal. The registered class IDs for the chain activation are correct for Terminal Preview. For some reason, I do not have access to the feedback, so I will have to come back around to this or ask my team if they know why I cannot get access. Do note this is labeled Alpha and the amount of diagnostics I've put in so far isn't great, so you might have to hang on for a bit while I still work on it.
Author
Owner

@mveril commented on GitHub (May 28, 2021):

Thank you @miniksa.
I am happy to see that conhost is a failback when the redirection not working. So, in any case, we still have access to our command line apps even if there is an error.
Hope you can access to my feedback and it can help you.
Thank you for this unexpected feature! I never thought it would be possible one day!
If you don't mind and if it is possible, I would very much like you to let me know where the problem is coming from when you know it. I'll be interested to know what's wrong.
Thank you

@mveril commented on GitHub (May 28, 2021): Thank you @miniksa. I am happy to see that `conhost` is a failback when the redirection not working. So, in any case, we still have access to our command line apps even if there is an error. Hope you can access to my feedback and it can help you. Thank you for this unexpected feature! I never thought it would be possible one day! If you don't mind and if it is possible, I would very much like you to let me know where the problem is coming from when you know it. I'll be interested to know what's wrong. Thank you
Author
Owner

@miniksa commented on GitHub (May 28, 2021):

I wonder if this is related to #10243....

If I can figure it out, I'll tell you @mveril.

@miniksa commented on GitHub (May 28, 2021): I wonder if this is related to #10243.... If I can figure it out, I'll tell you @mveril.
Author
Owner

@mveril commented on GitHub (May 31, 2021):

Thank you @miniksa

@mveril commented on GitHub (May 31, 2021): Thank you @miniksa
Author
Owner

@miniksa commented on GitHub (Jul 23, 2021):

I am hoping #10415 and #10751 have improved this. I'm not certain as I haven't managed to reproduce it, but both of those improved the stability and reliability of handoffs.

@miniksa commented on GitHub (Jul 23, 2021): I am hoping #10415 and #10751 have improved this. I'm not certain as I haven't managed to reproduce it, but both of those improved the stability and reliability of handoffs.
Author
Owner

@mveril commented on GitHub (Oct 6, 2021):

Thank you @miniksa !
Sorry for the delay, I forgot that I had not closed this issue

@mveril commented on GitHub (Oct 6, 2021): Thank you @miniksa ! Sorry for the delay, I forgot that I had not closed this issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13981