Default profile can point to one deleted in state.json #18932

Open
opened 2026-01-31 06:28:50 +00:00 by claunia · 4 comments
Owner

Originally created by @carlos-zamora on GitHub (Nov 21, 2022).

Windows Terminal version

1.17.2982.0

Windows build number

25236.1010

Other Software

PowerShell (potentially caused by multiple versions installed?)

Steps to reproduce

  1. Open Windows Terminal (see PowerShell Core profile)
  2. Open new tab (different PowerShell profile appears)

Helpful info

settings.zip

defaultProfile is set to a legacy version of powershell core. However, that profile doesn't exist anymore. It's interesting that...

  1. resolving it on startup results in a different profile than when hitting the new tab button
  2. I can't seem to edit that profile? It doesn't seem like it's hidden. Idk why it still resolves correctly?

Expected Behavior

Both tabs should contain the same profile

Actual Behavior

Both tabs have different profiles.

Originally created by @carlos-zamora on GitHub (Nov 21, 2022). ### Windows Terminal version 1.17.2982.0 ### Windows build number 25236.1010 ### Other Software PowerShell (potentially caused by multiple versions installed?) ### Steps to reproduce 1. Open Windows Terminal (see PowerShell Core profile) 2. Open new tab (different PowerShell profile appears) ### Helpful info [settings.zip](https://github.com/microsoft/terminal/files/10057922/settings.zip) `defaultProfile` is set to a legacy version of powershell core. However, that profile doesn't exist anymore. It's interesting that... 1. resolving it on startup results in a different profile than when hitting the new tab button 2. I can't seem to edit that profile? It doesn't seem like it's `hidden`. Idk why it still resolves correctly? ### Expected Behavior Both tabs should contain the same profile ### Actual Behavior Both tabs have different profiles.
claunia added the Help WantedArea-SettingsIssue-BugPriority-3Product-Terminal labels 2026-01-31 06:28:50 +00:00
Author
Owner

@DHowett commented on GitHub (Nov 22, 2022):

The PowerShell generator finds the "best" version of PowerShell and assigns that one the "PowerShell Core" GUID. If your "best" version of PowerShell is outdated, that indicates either a bug in our algorithm or on your machine. We should debug!

@DHowett commented on GitHub (Nov 22, 2022): The PowerShell generator finds the "best" version of PowerShell and assigns that one the "PowerShell Core" GUID. If your "best" version of PowerShell is outdated, that indicates either a bug in our algorithm or on your machine. We should debug!
Author
Owner

@PankajBhojwani commented on GitHub (Nov 30, 2022):

Initial probable cause: the profile has been deleted. Will live debug this when Carlos gets back.

@PankajBhojwani commented on GitHub (Nov 30, 2022): Initial probable cause: the profile has been deleted. Will live debug this when Carlos gets back.
Author
Owner

@zadjii-msft commented on GitHub (Nov 30, 2022):

oh boy, our logic for "your default profile doesn't exist" might not work for a deleted dynamic profile

@zadjii-msft commented on GitHub (Nov 30, 2022): oh boy, our logic for "your default profile doesn't exist" might not work for a deleted dynamic profile
Author
Owner

@PankajBhojwani commented on GitHub (Nov 30, 2022):

Or, this might be a dup of #14061 or #13916

@PankajBhojwani commented on GitHub (Nov 30, 2022): Or, this might be a dup of #14061 or #13916
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18932