Windows changing "Default Terminal Application" automatically without asking. #20191

Closed
opened 2026-01-31 07:06:11 +00:00 by claunia · 13 comments
Owner

Originally created by @adithya-s-sekhar on GitHub (Jul 4, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

10.0.22621.1848

Other Software

No response

Steps to reproduce

Change the Default Terminal Application in Windows terminal settings to Windows Console Host because Terminal does not support basic features from conhost yet. All my scripts are breaking and is affecting my personal and professional life.

Expected Behavior

The settings will stay unless the user changed it.

Actual Behavior

Continuing to use the computer normally and without even updating windows, without even restarting, Terminal reset the Default terminal application value to Let Windows decide.

Originally created by @adithya-s-sekhar on GitHub (Jul 4, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 10.0.22621.1848 ### Other Software _No response_ ### Steps to reproduce Change the **Default Terminal Application** in Windows terminal settings to **Windows Console Host** because Terminal does not support basic features from conhost yet. All my scripts are breaking and is affecting my personal and professional life. ### Expected Behavior The settings will stay unless the user changed it. ### Actual Behavior Continuing to use the computer normally and without even updating windows, without even restarting, Terminal reset the Default terminal application value to **Let Windows decide**.
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:06:11 +00:00
Author
Owner

@lhecker commented on GitHub (Jul 5, 2023):

Did you click the "Save" button after changing the default terminal?

@lhecker commented on GitHub (Jul 5, 2023): Did you click the "Save" button after changing the default terminal?
Author
Owner

@adithya-s-sekhar commented on GitHub (Jul 5, 2023):

Did you click the "Save" button after changing the default terminal?

Let me explain the timeline. Yes. I changed and saved it almost a month ago. It's been running in console host all this time.
Yesterday I opened my script it was still running in console host. Then I closed it.

But when I opened it again after a few minutes, it opened in Terminal. I was stumped and I immediately checked the settings, sure enough it defaulted to Let Windows decide.

There were no updates, no restarts, I didn't have anything else running. It was running in console host a few minutes ago and now it opened in Terminal.

@adithya-s-sekhar commented on GitHub (Jul 5, 2023): > Did you click the "Save" button after changing the default terminal? Let me explain the timeline. Yes. I changed and saved it almost a month ago. It's been running in console host all this time. Yesterday I opened my script it was still running in console host. Then I closed it. But when I opened it again after a few minutes, it opened in Terminal. I was stumped and I immediately checked the settings, sure enough it defaulted to **Let Windows decide**. There were no updates, no restarts, I didn't have anything else running. It was running in console host a few minutes ago and now it opened in Terminal.
Author
Owner

@DHowett commented on GitHub (Jul 5, 2023):

The settings will stay unless the user changed it.

Hmm. We've made no changes to overwrite any user preferences here. However, if Windows detects that the terminal it should be launching no longer exists (like, it was uninstalled or the registration was damaged,) it will default to Let Windows Decide.

The registry entries in HKCU\Console\%%Startup are only modified when you Save in Terminal or dismiss the console properties dialog by pressing OK.

This is quite strange!

@DHowett commented on GitHub (Jul 5, 2023): > The settings will stay unless the user changed it. Hmm. We've made no changes to overwrite any user preferences here. _However,_ if Windows detects that the terminal it should be launching no longer exists (like, it was uninstalled or the registration was damaged,) it will default to Let Windows Decide. The registry entries in `HKCU\Console\%%Startup` are only modified when you Save in Terminal or dismiss the console properties dialog by pressing `OK`. This is quite strange!
Author
Owner

@adithya-s-sekhar commented on GitHub (Jul 5, 2023):

Indeed it is. So far this has happened on only one laptop. It is possible it got corrupted in someway. It's just strange when it was working fine just a couple of minutes ago.

@adithya-s-sekhar commented on GitHub (Jul 5, 2023): Indeed it is. So far this has happened on only one laptop. It is possible it got corrupted in someway. It's just strange when it was working fine just a couple of minutes ago.
Author
Owner

@zadjii-msft commented on GitHub (Jul 5, 2023):

I wonder if there's any way for you to run some sort of script that would listen for reg key writes, to try and find out what process is changing the HKCU\Console\%%Startup values. If you haven't hit "Save" (in the terminal), or "Ok" (in the console properties), then I don't think there's anything else that would reset that.

Unless there's something with dynamic profiles deciding to write out the settings file (and writing the defterm setting additionally). But that would also imply that the Terminal determined that the selected "default terminal app" still didn't exist, and reset it to "let windows decide".

What's the output of reg query HKCU\Console\%%Startup before and after this bug occurs/? Maybe there's a bad value in there that we're incorrectly believing is "an uninstalled app", instead of conhost.

@zadjii-msft commented on GitHub (Jul 5, 2023): I wonder if there's any way for you to run some sort of script that would listen for reg key writes, to try and find out what process is changing the `HKCU\Console\%%Startup` values. If you haven't hit "Save" (in the terminal), or "Ok" (in the console properties), then I don't think there's anything else that would reset that. Unless there's something with dynamic profiles deciding to write out the settings file (and writing the defterm setting additionally). But that would also imply that the Terminal determined that the selected "default terminal app" still didn't exist, and reset it to "let windows decide". What's the output of `reg query HKCU\Console\%%Startup` before and after this bug occurs/? Maybe there's a bad value in there that we're incorrectly believing is "an uninstalled app", instead of conhost.
Author
Owner

@adithya-s-sekhar commented on GitHub (Jul 5, 2023):

I have since changed it back to console host and it has stayed that way till now. It hasn't happened again yet.
I wanted to know if this was something intentional by Microsoft or if there are plans to replace conhost entirely and replace with terminal.

This is the output of that command now

HKEY_CURRENT_USER\Console\%%Startup
    DelegationConsole    REG_SZ    {B23D10C0-E52E-411E-9D5B-C09FDF709C7D}
    DelegationTerminal    REG_SZ    {B23D10C0-E52E-411E-9D5B-C09FDF709C7D}

So far it has only happened once, but I was worried if this was intentional, terminal does not have some old features conhost have.

@adithya-s-sekhar commented on GitHub (Jul 5, 2023): I have since changed it back to console host and it has stayed that way till now. It hasn't happened again yet. I wanted to know if this was something intentional by Microsoft or if there are plans to replace conhost entirely and replace with terminal. This is the output of that command now ``` HKEY_CURRENT_USER\Console\%%Startup DelegationConsole REG_SZ {B23D10C0-E52E-411E-9D5B-C09FDF709C7D} DelegationTerminal REG_SZ {B23D10C0-E52E-411E-9D5B-C09FDF709C7D} ``` So far it has only happened once, but I was worried if this was intentional, terminal does not have some old features conhost have.
Author
Owner

@carlos-zamora commented on GitHub (Jul 5, 2023):

Hi @adithya-s-sekhar. Sorry, this isn't intentional. We plan on continuing to ship conhost in-box with windows, however. Additionally, if there are specific features you are missing from the console host that you'd like to see in Windows Terminal, we'd love to hear back from you.

@carlos-zamora commented on GitHub (Jul 5, 2023): Hi @adithya-s-sekhar. Sorry, this isn't intentional. We plan on continuing to ship conhost in-box with windows, however. Additionally, if there are specific features you are missing from the console host that you'd like to see in Windows Terminal, we'd love to hear back from you.
Author
Owner

@zadjii-msft commented on GitHub (Jul 5, 2023):

(if you do see this happen again, I'd love to see what it got changed to! This is certainly curious, but without a way to really repro this on demand, I'm not sure how to investigate more)

@zadjii-msft commented on GitHub (Jul 5, 2023): (if you do see this happen again, I'd love to see what it got changed to! This is certainly curious, but without a way to really repro this on demand, I'm not sure how to investigate more)
Author
Owner

@adithya-s-sekhar commented on GitHub (Jul 6, 2023):

Additionally, if there are specific features you are missing from the console host that you'd like to see in Windows Terminal, we'd love to hear back from you.

The important feature for a lot of us is the ability to change window size and buffer. We can't currently change these on Terminal. A lot of scripts and command line programs use it, there were multiple issues about it already. They were all marked as duplicates of #5094.

#4062, #5079, #5651, #5753, #2630, #6392, #40, #6832, #7082, #7232, #7466, #7623, #7605, #8581, #8673, #9113, #11033, #12929, #13232, #13392, #13375, #13441, #13564, #13006, #13911, #13940, #14487, #14568, #14622, #15297 (I had these saved in a note some time ago.)

Since it's already clear Terminal is not going to support it, we are hoping console host would stay as an option for us. Glad to hear it will be .

(if you do see this happen again, I'd love to see what it got changed to! This is certainly curious, but without a way to really repro this on demand, I'm not sure how to investigate more)

Curious about that as well :) hopefully it was a one time thing, corrupted entries maybe.

@adithya-s-sekhar commented on GitHub (Jul 6, 2023): > Additionally, if there are specific features you are missing from the console host that you'd like to see in Windows Terminal, we'd love to hear back from you. The important feature for a lot of us is the ability to change window size and buffer. We can't currently change these on Terminal. A lot of scripts and command line programs use it, there were multiple issues about it already. They were all marked as duplicates of [#5094](https://github.com/microsoft/terminal/issues/5094). [#4062](https://github.com/microsoft/terminal/issues/4062), [#5079](https://github.com/microsoft/terminal/issues/5079), [#5651](https://github.com/microsoft/terminal/issues/5651), [#5753](https://github.com/microsoft/terminal/issues/5753), [#2630](https://github.com/microsoft/terminal/issues/2630), [#6392](https://github.com/microsoft/terminal/issues/6392), [#40](https://github.com/vladdeSV/scone/issues/40), [#6832](https://github.com/microsoft/terminal/issues/6832), [#7082](https://github.com/microsoft/terminal/issues/7082), [#7232](https://github.com/microsoft/terminal/issues/7232), [#7466](https://github.com/microsoft/terminal/issues/7466), [#7623](https://github.com/microsoft/terminal/issues/7623), [#7605](https://github.com/microsoft/terminal/issues/7605), [#8581](https://github.com/microsoft/terminal/issues/8581), [#8673](https://github.com/microsoft/terminal/issues/8673), [#9113](https://github.com/microsoft/terminal/issues/9113), [#11033](https://github.com/microsoft/terminal/issues/11033), [#12929](https://github.com/microsoft/terminal/issues/12929), [#13232](https://github.com/microsoft/terminal/issues/13232), [#13392](https://github.com/microsoft/terminal/issues/13392), [#13375](https://github.com/microsoft/terminal/issues/13375), [#13441](https://github.com/microsoft/terminal/issues/13441), [#13564](https://github.com/microsoft/terminal/issues/13564), [#13006](https://github.com/microsoft/terminal/issues/13006), [#13911](https://github.com/microsoft/terminal/issues/13911), [#13940](https://github.com/microsoft/terminal/issues/13940), [#14487](https://github.com/microsoft/terminal/issues/14487), [#14568](https://github.com/microsoft/terminal/issues/14568), [#14622](https://github.com/microsoft/terminal/issues/14622), [#15297](https://github.com/microsoft/terminal/issues/15297) (I had these saved in a note some time ago.) Since it's already clear Terminal is not going to support it, we are hoping console host would stay as an option for us. Glad to hear it will be . > (if you do see this happen again, I'd love to see what it got changed to! This is certainly curious, but without a way to really repro this on demand, I'm not sure how to investigate more) Curious about that as well :) hopefully it was a one time thing, corrupted entries maybe.
Author
Owner

@zadjii-msft commented on GitHub (Jul 6, 2023):

Since it's already clear Terminal is not going to support it

Well, that's not really true now. We've got bits of a plan to have Terminal support this at least in a limited fashion (when there's only a single pane). Just need some time to do the engineering work (or for someone to help contribute the fix 😉)

@zadjii-msft commented on GitHub (Jul 6, 2023): > Since it's already clear Terminal is not going to support it Well, that's not really true now. We've got bits of a plan to have Terminal support this at least in a limited fashion (when there's only a single pane). Just need some time to do the engineering work (or for someone to help contribute the fix 😉)
Author
Owner

@NRJank commented on GitHub (Apr 12, 2024):

While messing around on Windows 10 I came across an 'automatic' reset of the Let Windows Decide setting. I don't know if this relates to what triggered the initial report. Tested on Win10 21H2 and 22H2 (the latter with or without Windows Terminal installed). Don't have a Win11 system to test on. I have a console-using application with a Desktop shortcut. Right clicking the shortcut and selecting Properties shows a Properties dialog with all of the Console specific tabs. The Options tab has the option 'Use legacy console'. To reproduce:

1 - open Settings/developers and set default terminal option to Windows Console Host.
2 - close the settings window (reopening and checking verifies it has stayed 'set')
3 - Access the Properties menu by right clicking on the shortcut
4 - Navigate to Options, and toggle (either select or deselect) the use Legacy console option.
5 - close the Properties dialog.
6 - reopen developer Settings. Note that terminal option has been reset to Let Windows Decide.

Repeated this on systems with and without Windows Terminal installed. On windows 10 it seems 'let windows decide' still reverts to conhost.exe. If this also happens on win11, I believe it's expected to chose Windows Terminal. So it seems this could cause users to have their expected terminal switched unknowingly. Note that if I go to the properties menu within the open application to set the Legacy property, this change does not happen. I don't know what's different about accessing the properties from a shortcut vs from within an open application.

@NRJank commented on GitHub (Apr 12, 2024): While messing around on Windows 10 I came across an 'automatic' reset of the Let Windows Decide setting. I don't know if this relates to what triggered the initial report. Tested on Win10 21H2 and 22H2 (the latter with or without Windows Terminal installed). Don't have a Win11 system to test on. I have a console-using application with a Desktop shortcut. Right clicking the shortcut and selecting Properties shows a Properties dialog with all of the Console specific tabs. The Options tab has the option 'Use legacy console'. To reproduce: 1 - open Settings/developers and set default terminal option to Windows Console Host. 2 - close the settings window (reopening and checking verifies it has stayed 'set') 3 - Access the Properties menu _by right clicking on the shortcut_ 4 - Navigate to Options, and toggle (either select or deselect) the use Legacy console option. 5 - close the Properties dialog. 6 - reopen developer Settings. Note that terminal option has been reset to Let Windows Decide. Repeated this on systems with and without Windows Terminal installed. On windows 10 it seems 'let windows decide' still reverts to conhost.exe. If this also happens on win11, I believe it's expected to chose Windows Terminal. So it seems this could cause users to have their expected terminal switched unknowingly. Note that if I go to the properties menu within the open application to set the Legacy property, this change does not happen. I don't know what's different about accessing the properties from a shortcut vs from within an open application.
Author
Owner

@fenjen commented on GitHub (Sep 11, 2025):

However, if Windows detects that the terminal it should be launching no longer exists (like, it was uninstalled or the registration was damaged,) it will default to Let Windows Decide.

This is (mostly) correct. It must be part of an error handling routine. But it doesn’t just fall back to 'Let Windows Decide' (which would be okay); Windows resets the setting entirely whenever a problem occurs. I was able to reproduce this just by modifying the shortcut (!) to a terminal window.

I hate this because it pushes users away from the better-performing Windows Console Host, which then ends up receiving even fewer new features.

@fenjen commented on GitHub (Sep 11, 2025): > However, if Windows detects that the terminal it should be launching no longer exists (like, it was uninstalled or the registration was damaged,) it will default to Let Windows Decide. This is (mostly) correct. It must be part of an error handling routine. But it doesn’t just fall back to 'Let Windows Decide' (which would be okay); Windows resets the setting entirely whenever a problem occurs. I was able to reproduce this just by modifying the shortcut (!) to a terminal window. I hate this because it pushes users away from the better-performing Windows Console Host, which then ends up receiving even fewer new features.
Author
Owner

@DHowett commented on GitHub (Sep 11, 2025):

just by modifying the shortcut (!) to a terminal window.

That just sounds like a bug. Don't not ascribe malice to what is clearly just a bug.

receiving even fewer new features

We have continued adding features to the Windows Console. The code for the console host is present in this repository as well, and that code flows back into Windows. Thanks to our contributors it supports Sixels and MIDI-like audio and thanks to our team it also has regular expression search and a bunch more.

@DHowett commented on GitHub (Sep 11, 2025): > just by modifying the shortcut (!) to a terminal window. That just sounds like a bug. Don't not ascribe malice to what is clearly just a bug. > receiving even fewer new features We have continued adding features to the Windows Console. The code for the console host is present in this repository as well, and that code flows back into Windows. Thanks to our contributors it supports Sixels and MIDI-like audio and thanks to our team it also has regular expression search and a bunch more.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20191